We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b773fd commit 5d1302fCopy full SHA for 5d1302f
1 file changed
package/configExporter/cli.ts
@@ -532,6 +532,12 @@ async function autoDetectBundler(
532
const config: any = loadYaml(readFileSync(configPath, "utf8"))
533
const envConfig = config[env] || config.default || {}
534
const bundler = envConfig.assets_bundler || "webpack"
535
+ if (bundler !== "webpack" && bundler !== "rspack") {
536
+ console.warn(
537
+ `[Config Exporter] Invalid bundler '${bundler}' in shakapacker.yml, defaulting to webpack`
538
+ )
539
+ return "webpack"
540
+ }
541
console.log(`[Config Exporter] Auto-detected bundler: ${bundler}`)
542
return bundler
543
}
0 commit comments