diff --git a/index.js b/index.js index 10a2246f..50816535 100644 --- a/index.js +++ b/index.js @@ -28,7 +28,7 @@ try { if (!config.resolve || !config.resolve.conditionNames || !config.resolve.conditionNames.includes('svelte')) { 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'); } -} catch { +} catch (e) { // do nothing and hope for the best }