Can't figure out how to get the npm package to work within a es6 module.
e.g.,
import 'jquery-ui/ui/widget';
import 'selectboxit/src/javascripts/jquery.selectBoxIt';
import 'selectboxit/src/stylesheets/jquery.selectBoxIt.css';
$.widget( 'qubit.selectBox', $.selectBox.selectBoxIt, {
} );
produces 'Cannot read property 'selectBoxIt' of undefined'
I'm also providing the jquery plugin to the module via:
plugins: [
new webpack.ProvidePlugin( {
$: 'jquery',
jQuery: 'jquery',
//'window.jQuery': 'jquery',
//'global.jQuery': 'jquery',
//"window.$": "jquery",
} ),
],
Can't figure out how to get the npm package to work within a es6 module.
e.g.,
produces 'Cannot read property 'selectBoxIt' of undefined'
I'm also providing the jquery plugin to the module via: