diff --git a/README.md b/README.md index 61d5a0a1..018b3baa 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' - } + }, + { + // load Svelte correctly + test: /node_modules\/svelte\/.*\.mjs$/, + resolve: { + fullySpecified: false + } + }, ... ] }