question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Option to mark all node_modules as externals

See original GitHub issue

Referring to this issue (https://github.com/AnomalyInnovations/serverless-nodejs-starter/issues/61) created by @OBrown92.

There are some cases (like when using ejs) when you need to explicitly exclude pretty much all packages.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jugglingjsonscommented, Oct 20, 2020

Just an easy way to do stage 0 and newer syntax admittedly, it’s not always that I do it , I am happy with excluding the way I can do it now. This would just be a handy helper.

0reactions
jayaircommented, Oct 20, 2020

On the flip side, if everything is excluded, then whats the point of using Webpack?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Option to treat all node modules as external · Issue #619
I think what is desirable for this proposed option would be if ESBuild treated every package in node_modules/ as an external (or perhaps ......
Read more >
webpack-node-externals
This library creates an externals function that ignores node_modules when bundling in Webpack.
Read more >
Externals
The externals configuration option provides a way of excluding dependencies from the output bundles. Instead, the created bundle relies on that dependency ...
Read more >
How to set as external all node modules in rollup?
I want to have all modules imported from node_modules as external. What is the configuration for this? import multiEntry from "rollup-plugin- ...
Read more >
node_modules/webpack-node-externals · master - PLMlab
This library scans the node_modules folder for all node_modules names, and builds an externals function that tells Webpack not to bundle those modules, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found