File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 12
12
"sideEffects" : false ,
13
13
"scripts" : {
14
14
"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" ,
16
16
"prepublishOnly" : " run-p 'test:dist:*' && npm run test:browser" ,
17
17
"clean" : " rimraf build dist dist.*" ,
18
18
"test" : " mocha 'test/**/*.test.ts'" ,
84
84
"tsconfig-paths" : " latest" ,
85
85
"typescript" : " latest" ,
86
86
"web-streams-polyfill" : " latest" ,
87
- "webpack" : " ^4 " ,
87
+ "webpack" : " latest " ,
88
88
"webpack-cli" : " latest"
89
89
},
90
90
"dependencies" : {},
Original file line number Diff line number Diff line change 1
1
import path from "path" ;
2
- // @ts -expect-error
3
2
import webpack from "webpack" ;
4
3
import _ from "lodash" ;
5
4
// @ts -expect-error
@@ -9,6 +8,7 @@ const config = {
9
8
mode : "production" ,
10
9
11
10
entry : "./src/index.ts" ,
11
+ target : [ "web" , "es5" ] ,
12
12
output : {
13
13
path : path . resolve ( __dirname , "dist.es5+umd" ) ,
14
14
library : "MessagePack" ,
@@ -42,7 +42,6 @@ const config = {
42
42
] ,
43
43
44
44
optimization : {
45
- noEmitOnErrors : true ,
46
45
minimize : undefined as boolean | undefined ,
47
46
} ,
48
47
You can’t perform that action at this time.
0 commit comments