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
431431- [ Easy Mahaffey] ( https://github.com/easymaahffey )
432432- [ Pamela Augustine] ( https://github.com/pamelaAugustine )
433433- [ 宋时旺] ( 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) {
123123export async function build ( ) {
124124 // Configure build options from command line arguments.
125125 const minify = argv . minify ?? false ;
126- const removePragmas = argv . pragmas ?? false ;
126+ const removePragmas = argv . removePragmas ?? false ;
127127 const sourcemap = argv . sourcemap ?? true ;
128128 const node = argv . node ?? true ;
129129
Original file line number Diff line number Diff line change @@ -387,6 +387,9 @@ export async function bundleWorkers(options) {
387387 workerConfig . logOverride = {
388388 "empty-import-meta" : "silent" ,
389389 } ;
390+ workerConfig . plugins = options . removePragmas
391+ ? [ stripPragmaPlugin ]
392+ : undefined ;
390393 } else {
391394 workerConfig . format = "esm" ;
392395 workerConfig . splitting = true ;
You can’t perform that action at this time.
0 commit comments