parent
d1d1293b3d
commit
0595929613
File diff suppressed because it is too large
Load Diff
@ -1,20 +1,23 @@ |
||||
const path = require("path") |
||||
|
||||
const EsmWebpackPlugin = require("@purtuga/esm-webpack-plugin") |
||||
|
||||
const clientFiles = [ |
||||
'common-client-plugin.js' |
||||
] |
||||
|
||||
let config = clientFiles.map(f => ({ |
||||
entry: "./client/" + f, |
||||
|
||||
experiments: { |
||||
outputModule: true |
||||
}, |
||||
|
||||
output: { |
||||
path: path.resolve(__dirname, "./dist"), |
||||
filename: "./" + f, |
||||
library: "script", |
||||
libraryTarget: "var" |
||||
}, |
||||
plugins: [ new EsmWebpackPlugin() ] |
||||
library: { |
||||
type: "module" |
||||
} |
||||
} |
||||
})) |
||||
|
||||
module.exports = config |
||||
|
Loading…
Reference in new issue