File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -431,3 +431,4 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to contribute to Cesiu
431
431
- [ Easy Mahaffey] ( https://github.com/easymaahffey )
432
432
- [ Pamela Augustine] ( https://github.com/pamelaAugustine )
433
433
- [ 宋时旺] ( https://github.com/BlockCnFuture )
434
+ - [ Marco Zhan] ( https://github.com/marcoYxz )
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ function handleBuildWarnings(result) {
123
123
export async function build ( ) {
124
124
// Configure build options from command line arguments.
125
125
const minify = argv . minify ?? false ;
126
- const removePragmas = argv . pragmas ?? false ;
126
+ const removePragmas = argv . removePragmas ?? false ;
127
127
const sourcemap = argv . sourcemap ?? true ;
128
128
const node = argv . node ?? true ;
129
129
Original file line number Diff line number Diff line change @@ -387,6 +387,9 @@ export async function bundleWorkers(options) {
387
387
workerConfig . logOverride = {
388
388
"empty-import-meta" : "silent" ,
389
389
} ;
390
+ workerConfig . plugins = options . removePragmas
391
+ ? [ stripPragmaPlugin ]
392
+ : undefined ;
390
393
} else {
391
394
workerConfig . format = "esm" ;
392
395
workerConfig . splitting = true ;
You can’t perform that action at this time.
0 commit comments