We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5523494 + 68412eb commit 05862e6Copy full SHA for 05862e6
frontend/webpack.common.single.js
@@ -20,10 +20,15 @@ module.exports = {
20
path: path.resolve(rootPath, 'build'),
21
filename: '[name].js',
22
chunkFilename: '[name].js',
23
- library: 'appengine',
24
- libraryTarget: 'umd',
+ library: {
+ type: 'module',
25
+ },
26
assetModuleFilename: 'assets/images/[name][ext]',
27
},
28
+ experiments: {
29
+ outputModule: true
30
31
+ externalsType: 'module',
32
module: {
33
rules: [{
34
test: /\.(png|jpe?g|gif|svg|eot|ttf|woff|woff2)$/i,
@@ -145,6 +150,7 @@ module.exports = {
145
150
template: path.resolve(rootPath, 'src/index.html'),
146
151
publicPath: '',
147
152
chunks: ['main'],
153
+ scriptLoading: 'module'
148
154
}),
149
155
156
new CopyWebpackPlugin({
0 commit comments