What am I doing wrong to extend this? Trying to mimic example provided in OP.
composer.json has it as dependency
"require": {
"flarum/core": "^1.0.0",
"acpl/mobile-tab": "^1.1"
},
webpack comfig declares it (and build confirms it is found in node_modules)
module.exports = require('flarum-webpack-config')({
useExtensions: ['acpl-mobile-tab']
});
build log
external "flarum.extensions['acpl-mobile-tab']" 42 bytes [built] [code generated]
My forum.js gets an error Cannot read properties of undefined (reading 'components')
import { components } from '@acpl-mobile-tab';
import { extend } from 'flarum/common/extend';
const { MobileTab, MobileTabItem } = components;