mirror of
https://github.com/MercuryWorkshop/adrift.git
synced 2025-05-12 22:00:02 -04:00
fix broken packages, part 2
This commit is contained in:
parent
f63588cd78
commit
2b32ab71bc
20 changed files with 6 additions and 19705 deletions
|
@ -4,6 +4,8 @@ const { build } = require("esbuild");
|
|||
let makeAllPackagesExternalPlugin = {
|
||||
name: 'make-all-packages-external',
|
||||
setup(build) {
|
||||
|
||||
build.onResolve({ filter: /protocol/ }, args => ({ external: false }))
|
||||
let filter = /^[^.\/]|^\.[^.\/]|^\.\.[^\/]/ // Must not start with "/" or "./" or "../"
|
||||
build.onResolve({ filter }, args => ({ path: args.path, external: true }))
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue