@@ -51,6 +51,7 @@ export interface BuildCommandOptions extends BaseCommandOptions {
5151 clientConfig : string | false ;
5252 wrapperEnvs : string | false ;
5353 noCodegen : boolean ;
54+ noWasm : boolean ;
5455 codegenDir : string | false ;
5556 watch : boolean ;
5657 strategy : `${SupportedStrategies } `;
@@ -80,6 +81,7 @@ export const build: Command = {
8081 `${ intlMsg . commands_common_options_config ( ) } `
8182 )
8283 . option ( `-n, --no-codegen` , `${ intlMsg . commands_build_options_codegen ( ) } ` )
84+ . option ( `--no-wasm` , `${ intlMsg . commands_build_options_no_wasm ( ) } ` )
8385 . option (
8486 `--codegen-dir` ,
8587 `${ intlMsg . commands_build_options_codegen_dir ( {
@@ -117,6 +119,7 @@ export const build: Command = {
117119 outputDir : parseDirOption ( options . outputDir , defaultOutputDir ) ,
118120 bindgen : options . bindgen || false ,
119121 noCodegen : ! options . codegen || false ,
122+ noWasm : ! options . wasm || false ,
120123 codegenDir : parseDirOptionNoDefault ( options . codegenDir ) ,
121124 strategy : options . strategy || defaultStrategy ,
122125 watch : options . watch || false ,
@@ -174,6 +177,7 @@ async function run(options: Required<BuildCommandOptions>) {
174177 bindgen,
175178 strategy,
176179 noCodegen,
180+ noWasm,
177181 codegenDir,
178182 verbose,
179183 quiet,
@@ -220,7 +224,7 @@ async function run(options: Required<BuildCommandOptions>) {
220224
221225 const isInterface = language === "interface" ;
222226
223- if ( isInterface ) {
227+ if ( isInterface || noWasm ) {
224228 buildStrategy = new NoopBuildStrategy ( {
225229 project : project as PolywrapProject ,
226230 outputDir,
0 commit comments