bundle-require
bundle-require copied to clipboard
The entry point `C:\\Users\\...\\node_modules\\...\\index.ts` cannot be marked as external
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
})