I made new Javascript library with Webpack. I want to import class from this library directly. However, I need to put '.default' to run MyClass. I don't want to use '.default'. I just want to use MyClass directly. What should I do to solve it?
//index.js
export default class Myclass {
//...}
//webpack.config.js
output: {
library: 'MyClass',
libraryTarget: 'umd',
libraryExport : "default",
filename: 'index.js',
path: path.resolve(__dirname, 'dist'),
},
Thanks for your help.