When I run build I get "The entry point cannot be marked as external" with this being the resolver plugin, only on windows machines, it works fine for wsl and posix.
{
name: 'make-all-packages-external',
setup(build) {
// iife files should be fully bundled.
if (build.initialOptions.outExtension?.['.js'].startsWith('.iife.js')) {
const filter = /^vue$/
build.onResolve({ filter }, () => {
return {
path: 'Vue',
external: true,
}
})
} else {
// It fails here!
const filter = /^[^.\/]|^\.[^.\/]|^\.\.[^\/]/ // Must not start with "/" or "./" or "../"
build.onResolve({ filter }, args => ({ path: args.path, external: true }))
}
},
},
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too