bundle-require icon indicating copy to clipboard operation
bundle-require copied to clipboard

The entry point `C:\\Users\\...\\node_modules\\...\\index.ts` cannot be marked as external

Open timheerwagen opened this issue 1 year ago • 0 comments

Since ^4.0.3 it is no longer possible to bundle files from the node_modules. This can happen because the path is marked as external by args.path.match(PATH_NODE_MODULES_RE), even if it has been declared as non-external with the external option.

I use the default configuration:

await bundleRequire({
        filepath: indexPath, // Absolute path, something like C:\\Users\\...\\node_modules\\...\\index.ts
})

timheerwagen avatar Apr 27 '24 13:04 timheerwagen