parent
65bf82a2be
commit
6b92524ab9
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,20 @@ |
||||
const path = require('path') |
||||
const esbuild = require('esbuild') |
||||
|
||||
const clientFiles = [ |
||||
'common-client-plugin.js' |
||||
] |
||||
|
||||
const configs = clientFiles.map(f => ({ |
||||
entryPoints: [ path.resolve(__dirname, '..', 'client', f) ], |
||||
bundle: true, |
||||
minify: true, |
||||
format: 'esm', |
||||
target: 'safari11', |
||||
outfile: path.resolve(__dirname, '..', 'dist', f), |
||||
})) |
||||
|
||||
const promises = configs.map(c => esbuild.build(c)) |
||||
|
||||
Promise.all(promises) |
||||
.catch(() => process.exit(1)) |
@ -1,23 +0,0 @@ |
||||
const path = require("path") |
||||
|
||||
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: { |
||||
type: "module" |
||||
} |
||||
} |
||||
})) |
||||
|
||||
module.exports = config |
Loading…
Reference in new issue