diff --git a/README.md b/README.md index 61d5a0a1..012d6c86 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,14 @@ Configure inside your `webpack.config.js`: test: /\.(html|svelte)$/, exclude: /node_modules/, use: 'svelte-loader' - } + }, + // Only include this when using Webpack 5+ + { + test: /node_modules\/svelte\/.*\.mjs$/, + resolve: { + fullySpecified: false // load Svelte correctly + } + }, ... ] }