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 }))
}
},
},
Upvote & Fund
We're using Polar.sh so you can upvote and help fund this issue.
We receive the funding once the issue is completed & confirmed by you.
Thank you in advance for helping prioritize & fund our backlog.
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.
Upvote & Fund