Skip to content

Commit 62725b1

Browse files
committed
party like it's 2017
1 parent aa685c7 commit 62725b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ for (let i = 0; i < process.argv.length; i++) {
2525

2626
try {
2727
const config = require(path.resolve(process.cwd(), config_file));
28-
if (!config.resolve?.conditionNames?.includes('svelte')) {
28+
if (!config.resolve || !config.resolve.conditionNames || !config.resolve.conditionNames.includes('svelte')) {
2929
console.warn('\n\u001B[1m\u001B[31mWARNING: You should add "svelte" to the "resolve.conditionNames" array in your webpack config.\u001B[39m\u001B[22m\n');
3030
}
3131
} catch {

0 commit comments

Comments
 (0)