File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1212 "sideEffects" : false ,
1313 "scripts" : {
1414 "build" : " npm publish --dry-run" ,
15- "prepare" : " npm run clean && webpack && tsc --build tsconfig.dist.json tsconfig.dist.es5+esm.json && ts-node tools/esmify.ts dist.es5+esm/*.js dist.es5+esm/*/*.js" ,
15+ "prepare" : " npm run clean && webpack --bail && tsc --build tsconfig.dist.json tsconfig.dist.es5+esm.json && ts-node tools/esmify.ts dist.es5+esm/*.js dist.es5+esm/*/*.js" ,
1616 "prepublishOnly" : " run-p 'test:dist:*' && npm run test:browser" ,
1717 "clean" : " rimraf build dist dist.*" ,
1818 "test" : " mocha 'test/**/*.test.ts'" ,
8484 "tsconfig-paths" : " latest" ,
8585 "typescript" : " latest" ,
8686 "web-streams-polyfill" : " latest" ,
87- "webpack" : " ^4 " ,
87+ "webpack" : " latest " ,
8888 "webpack-cli" : " latest"
8989 },
9090 "dependencies" : {},
Original file line number Diff line number Diff line change 11import path from "path" ;
2- // @ts -expect-error
32import webpack from "webpack" ;
43import _ from "lodash" ;
54// @ts -expect-error
@@ -9,6 +8,7 @@ const config = {
98 mode : "production" ,
109
1110 entry : "./src/index.ts" ,
11+ target : [ "web" , "es5" ] ,
1212 output : {
1313 path : path . resolve ( __dirname , "dist.es5+umd" ) ,
1414 library : "MessagePack" ,
@@ -42,7 +42,6 @@ const config = {
4242 ] ,
4343
4444 optimization : {
45- noEmitOnErrors : true ,
4645 minimize : undefined as boolean | undefined ,
4746 } ,
4847
You can’t perform that action at this time.
0 commit comments