fix broken packages, part 2

This commit is contained in:
CoolElectronics 2024-01-08 20:30:03 -05:00
parent f63588cd78
commit 2b32ab71bc
No known key found for this signature in database
GPG key ID: F63593D168636C50
20 changed files with 6 additions and 19705 deletions

View file

@ -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 }))
},