Skip to content

Commit 406f8ed

Browse files
committed
Add separate build for web target
1 parent cb10619 commit 406f8ed

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
"main": "dist/index.js",
66
"repository": "developit/workerize-loader",
77
"scripts": {
8-
"build": "microbundle --target node --format cjs --no-compress src/*.js",
8+
"build": "npm run build-loader && npm run build-rpc",
9+
"build-loader": "microbundle --target node --format cjs --no-compress src/index.js ",
10+
"build-rpc": "microbundle --target web --format cjs --no-compress src/rpc-*.js",
911
"prepublishOnly": "npm run build",
1012
"dev": "karmatic watch --no-headless",
1113
"test": "npm run build && karmatic && NODE_ENV=production karmatic -p",

0 commit comments

Comments
 (0)