File tree Expand file tree Collapse file tree 3 files changed +13
-16
lines changed Expand file tree Collapse file tree 3 files changed +13
-16
lines changed Original file line number Diff line number Diff line change @@ -12,3 +12,4 @@ test/workers/*.js
12
12
.DS_Store
13
13
Thumbs.db
14
14
* .log
15
+ .parcel-cache
Original file line number Diff line number Diff line change 5
5
"license" : " MIT" ,
6
6
"main" : " dist/index.js" ,
7
7
"module" : " dist-esm/index.js" ,
8
+ "bundle" : " bundle/worker.js" ,
8
9
"scripts" : {
9
10
"prebuild" : " rimraf dist/ dist-esm/" ,
10
11
"build" : " run-p build:cjs build:es" ,
11
12
"build:cjs" : " tsc -p tsconfig.json" ,
12
13
"build:es" : " tsc -p tsconfig-esm.json" ,
13
14
"postbuild" : " run-s bundle" ,
14
- "bundle" : " rollup -c -f umd --file= bundle/worker.js --name=threads --silent -- dist-esm /worker/bundle-entry.js " ,
15
+ "bundle" : " parcel build --target bundle src /worker/bundle-entry.ts " ,
15
16
"test" : " run-s test:ava test:puppeteer:basic test:puppeteer:webpack" ,
16
17
"test:ava" : " cross-env TS_NODE_FILES=true ava" ,
17
18
"test:puppeteer:basic" : " puppet-run --plugin=mocha --bundle=./test/workers/:/workers/ --serve=./bundle/worker.js:/worker.js ./test/*.chromium*.ts" ,
82
83
"execa" : " ^4.0.3" ,
83
84
"mocha" : " ^5.2.0" ,
84
85
"npm-run-all" : " ^4.1.5" ,
86
+ "parcel" : " ^2.0.0-beta.1" ,
85
87
"puppet-run" : " ^0.11.1" ,
86
88
"puppet-run-plugin-mocha" : " ^0.10.0-alpha" ,
87
89
"raw-loader" : " ^4.0.1" ,
138
140
" *.js" ,
139
141
" *.mjs" ,
140
142
" *.ts"
141
- ]
143
+ ],
144
+ "targets" : {
145
+ "bundle" : {
146
+ "context" : " browser" ,
147
+ "includeNodeModules" : true ,
148
+ "outputFormat" : " global" ,
149
+ "isLibrary" : true
150
+ }
151
+ }
142
152
}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments