mirror of
https://github.com/MercuryWorkshop/adrift.git
synced 2025-05-12 22:00:02 -04:00
add standalone binary build step
This commit is contained in:
parent
dda5302931
commit
b06e0a85ab
4 changed files with 18 additions and 8 deletions
|
@ -2,7 +2,7 @@ let makeAllPackagesExternalPlugin = {
|
|||
name: 'make-all-packages-external',
|
||||
setup(build) {
|
||||
let filter = /^[^.\/]|^\.[^.\/]|^\.\.[^\/]/ // Must not start with "/" or "./" or "../"
|
||||
let ignored = []
|
||||
let ignored = ["wrtc"]
|
||||
build.onResolve({ filter }, args => (ignored.includes(args.path) ? { path: args.path, external: true } : null))
|
||||
},
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ build({
|
|||
platform: "node",
|
||||
// format: "esm",
|
||||
bundle: true,
|
||||
outfile: "dist/dist.js",
|
||||
outfile: "dist/main.js",
|
||||
plugins: [
|
||||
makeAllPackagesExternalPlugin
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue