Compare commits
No commits in common. '5a22d3f977c6cc59c9daa03df5a66e43878c884d' and '346b3c1534004c9e053db1290e7c51f88d1ab5a4' have entirely different histories.
5a22d3f977
...
346b3c1534
File diff suppressed because it is too large
Load Diff
@ -1,20 +0,0 @@ |
|||||||
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)) |
|
@ -0,0 +1,16 @@ |
|||||||
|
const path = require("path") |
||||||
|
|
||||||
|
const EsmWebpackPlugin = require("@purtuga/esm-webpack-plugin") |
||||||
|
|
||||||
|
let config = { |
||||||
|
entry: "./client/common-client-plugin.js", |
||||||
|
output: { |
||||||
|
path: path.resolve(__dirname, "./dist"), |
||||||
|
filename: "./common-client-plugin.js", |
||||||
|
library: "script", |
||||||
|
libraryTarget: "var" |
||||||
|
}, |
||||||
|
plugins: [new EsmWebpackPlugin()] |
||||||
|
} |
||||||
|
|
||||||
|
module.exports = config |
Loading…
Reference in new issue