Skip to content

Commit 58e5dd1

Browse files
jesseskinnerConduitry
authored andcommitted
Fix hotReload example
Webpack gave me an error when I tried the hotReload example: ``` Error: options/query provided without loader (use loader + options) in { "test": {}, "exclude": {}, "use": [ "svelte-loader" ], "options": { "hotReload": true } } ``` I've fixed it so it'll work, with `loader` and `options` inside a `use` block.
1 parent 3f8178f commit 58e5dd1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,11 @@ Hot reloading is turned off by default, you can turn it on using the `hotReload`
141141
{
142142
test: /\.(html|svelte)$/,
143143
exclude: /node_modules/,
144-
use: 'svelte-loader',
145-
options: {
146-
hotReload: true
144+
use: {
145+
loader: 'svelte-loader',
146+
options: {
147+
hotReload: true
148+
}
147149
}
148150
}
149151
...

0 commit comments

Comments
 (0)