Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ const ENABLE_CACHING = isLocal ? config.options.caching : false;
// Handle the "all" option in externals
// And add the forceExclude packages to it because they shouldn't be Webpacked
const computedExternals = (
externals === "all" ? [nodeExternals()] : externals
externals === "all"
? [nodeExternals({ additionalModuleDirs: [path.resolve(process.cwd(), "../../node_modules")] })]
: externals
).concat(forceExclude);

const extensions = [
Expand Down
2 changes: 1 addition & 1 deletion tests/externals-all/externals-all.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ test("externals all option", async () => {
/*
Ensure that array-first is packaged as a part of the "all" externals option
*/
expect(result).toMatch(/Packing external modules: array-first@\^[\d\\.]+/);
expect(result).toMatch(/Packing external modules: source-map-support, array-first@\^[\d\\.]+/);
});