I have a monorepo that depends on an external npm package called @elastic/synthetics. This package cannot be bundled by webpack because it have many files that are not handled by default (e.g .exe, .apk...) and for my purposes it can be download directly from NPM with no problem.
So in order to create a bundle file from some of the internal packages, I'm using this webpack-node-externals tool. The problem is that even with the configuration, webpack is trying to include the package in the bundled output. Here are my config files:
Hi there,
I have a monorepo that depends on an external npm package called
@elastic/synthetics
. This package cannot be bundled by webpack because it have many files that are not handled by default (e.g .exe, .apk...) and for my purposes it can be download directly from NPM with no problem.So in order to create a bundle file from some of the internal packages, I'm using this
webpack-node-externals
tool. The problem is that even with the configuration, webpack is trying to include the package in the bundled output. Here are my config files:package.json
webpack.js