File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 99 "url" : " https://github.com/MercuryWorkshop/scramjet"
1010 },
1111 "scripts" : {
12- "build" : " rspack build --mode production" ,
13- "build:types" : " rslib build && rm -rf dist/temp" ,
12+ "build" : " cd ../.. && rspack build --mode production" ,
13+ "build:types" : " cd ../.. && rslib build && rm -rf packages/core/ dist/temp" ,
1414 "build:all" : " npm run build && npm run build:types" ,
1515 "rewriter:build" : " cd rewriter/wasm/ && bash build.sh && cd ../../" ,
1616 "dev" : " node server.js" ,
Original file line number Diff line number Diff line change @@ -130,6 +130,15 @@ const createScramjetConfig = (options) => {
130130 / C r i t i c a l d e p e n d e n c y : t h e r e q u e s t o f a d e p e n d e n c y i s a n e x p r e s s i o n / ,
131131 } ,
132132 ] ,
133+ optimization : {
134+ minimizer : [
135+ new rspack . SwcJsMinimizerRspackPlugin ( {
136+ minimizerOptions : {
137+ module : output . libraryTarget === "module" ,
138+ } ,
139+ } ) ,
140+ ] ,
141+ } ,
133142 ...extraConfig ,
134143 } ) ;
135144} ;
You can’t perform that action at this time.
0 commit comments