Skip to content

Commit

Permalink
Merge pull request #2959 from petschki/module-federation-version
Browse files Browse the repository at this point in the history
Fix for webpack module federation "No version" error
  • Loading branch information
jgonggrijp committed May 23, 2022
2 parents da06656 + 46d77d3 commit 75d257f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions modules/package.json
@@ -1,3 +1 @@
{
"type": "module"
}
{"type":"module","version":"1.13.3"}
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -82,8 +82,9 @@
"prepare-tests": "npm run bundle && npm run bundle-treeshake",
"minify-umd": "terser underscore-umd.js -c \"evaluate=false\" --comments \"/ .*/\" -m",
"minify-esm": "terser underscore-esm.js -c \"evaluate=false\" --comments \"/ .*/\" -m",
"module-package-json": "node -e 'console.log(`{\"type\":\"module\",\"version\":\"${process.env.npm_package_version}\"}`)' > modules/package.json",
"build-umd": "npm run minify-umd -- --source-map content=underscore-umd.js.map --source-map-url \" \" -o underscore-umd-min.js",
"build-esm": "npm run minify-esm -- --source-map content=underscore-esm.js.map --source-map-url \" \" -o underscore-esm-min.js",
"build-esm": "npm run module-package-json && npm run minify-esm -- --source-map content=underscore-esm.js.map --source-map-url \" \" -o underscore-esm-min.js",
"alias-bundle": "cpy --rename=underscore.js underscore-umd.js . && cpy --rename=underscore-min.js underscore-umd-min.js . && cpy --rename=underscore-min.js.map underscore-umd-min.js.map .",
"build": "npm run bundle && npm run build-umd && npm run build-esm && npm run alias-bundle",
"doc": "docco underscore-esm.js && docco modules/*.js -c docco.css -t docs/linked-esm.jst",
Expand Down

0 comments on commit 75d257f

Please sign in to comment.