Skip to content

Commit 075c797

Browse files
authored
fix: remove devServer config when using the bundle command (#1272)
1 parent ece451c commit 075c797

4 files changed

Lines changed: 14 additions & 0 deletions

File tree

.changeset/rotten-drinks-join.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@callstack/repack": patch
3+
---
4+
5+
Unset DevServer configuration when using the bundle command

biome.jsonc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@
4141
"noUnusedImports": "error",
4242
"noUnusedVariables": "error"
4343
},
44+
"performance": {
45+
"noDelete": "off"
46+
},
4447
"style": {
4548
"noNonNullAssertion": "off",
4649
"useTemplate": "off"

packages/repack/src/commands/rspack/bundle.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ export async function bundle(
3434
reactNativePath: cliConfig.reactNativePath,
3535
});
3636

37+
// remove devServer configuration to avoid schema validation errors
38+
delete config.devServer;
39+
3740
// expose selected args as environment variables
3841
setupEnvironment(args);
3942

packages/repack/src/commands/webpack/bundle.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ export async function bundle(
3030
reactNativePath: cliConfig.reactNativePath,
3131
});
3232

33+
// remove devServer configuration to avoid schema validation errors
34+
delete config.devServer;
35+
3336
// expose selected args as environment variables
3437
setupEnvironment(args);
3538

0 commit comments

Comments
 (0)