webpack-node-externals icon indicating copy to clipboard operation
webpack-node-externals copied to clipboard

Easily exclude node modules in Webpack

Results 56 webpack-node-externals issues
Sort by recently updated
recently updated
newest added

External dependencies seem to always be resolved from the context of the entrypoint package rather than the package that imports the external dependencies. For example consider ```js // packages/main/src/index.js require('a')...

Bumps [terser](https://github.com/terser/terser) from 4.8.0 to 4.8.1. Changelog Sourced from terser's changelog. v4.8.1 (backport) Security fix for RegExps that should not be evaluated (regexp DDOS) Commits See full diff in compare...

dependencies

```coffeescript # when i use this config: externals:[nodeExternals()] # i got this error, when i browser localhost:8080, with webpack serve and chrome interopRequireWildcard":1 Uncaught ReferenceError: require is not defined at...

Change the module from CommonJS to [ECMAScript Module (ESM)](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c#how-can-i-move-my-commonjs-project-to-esm). Some JS Frameworks support ESM now and importing CommonJS modules may get complicated.

While using this externals package I ran into an issue where packages weren't bundled that were suppose too. It turned out to be a mistake by me, but it was...

I can't seem to get this working with `import` statements. The modules are still bundled if I use `import` in my code. However, if I use `require()`, it works fine....

Fixes #105 Adds JSDoc to allow declaration files to be generated by `tsc`. TypeScript users would no longer be required to install `@types/webpack-node-externals`.

Regarding this part of the docs: https://github.com/liady/webpack-node-externals/blob/fc082618f98c564c92f3467523618dfcf4de2084/README.md#L32-L44 When `target: 'node'` I suspect the default for `externalsPresets` will be `{ node: true }`: https://github.com/webpack/webpack/blob/88978167ea2ee438761179dbbe2e21233dc9d34d/lib/config/defaults.js#L905 Therefore I'm not sure we need to...

**Background** When bundling for server-less environment, cost of doing multiple `require` is too high. This plugin allows me to bundle code as a single file. I would like to bundle...

In Yarn 2 PnP mode, there is no `node_modules` folder. Everything is in `.yarn` cache and kept loaded in memory. Would it be possible to add support for this in...