Skip to content

Commit

Permalink
Merge pull request #13745 from webpack/bugfix/node-commonjs
Browse files Browse the repository at this point in the history
fix #13744
  • Loading branch information
sokra committed Jul 8, 2021
2 parents 6a5766b + 9f84be0 commit b171a15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ExternalModuleFactoryPlugin.js
Expand Up @@ -12,7 +12,7 @@ const { resolveByProperty, cachedSetProperty } = require("./util/cleverMerge");
/** @typedef {import("../declarations/WebpackOptions").Externals} Externals */
/** @typedef {import("./NormalModuleFactory")} NormalModuleFactory */

const UNSPECIFIED_EXTERNAL_TYPE_REGEXP = /^[a-z0-9]+ /;
const UNSPECIFIED_EXTERNAL_TYPE_REGEXP = /^[a-z0-9-]+ /;
const EMPTY_RESOLVE_OPTIONS = {};

// TODO webpack 6 remove this
Expand Down
Expand Up @@ -5,7 +5,7 @@ module.exports = {
other: "./other"
},
externals: {
fs: "commonjs fs",
fs: "node-commonjs fs",
external: "1+2",
external2: "3+4",
external3: "5+6"
Expand Down

0 comments on commit b171a15

Please sign in to comment.