Skip to content
This repository has been archived by the owner on Apr 12, 2020. It is now read-only.

Official webpack-template broken with svero by default #23

Closed
shortjared opened this issue Jun 6, 2019 · 2 comments
Closed

Official webpack-template broken with svero by default #23

shortjared opened this issue Jun 6, 2019 · 2 comments

Comments

@shortjared
Copy link

By default, the webpack-template svelte projet excludes node_modules from the Svelte loader. This means svero breaks as it cannot be loaded. Removing the exclude rule makes everything work great.

	module: {
		rules: [
			{
				test: /\.svelte$/,
				exclude: /node_modules/,
				use: {
					loader: 'svelte-loader',
					options: {
						emitCss: true,
						hotReload: true
					}
				}
			},
@eugenjj
Copy link

eugenjj commented Jun 10, 2019

@shortjared you can use this regex

exclude: /node_modules\/(?!(svero)\/).*/,

more can find here webpack/webpack#2031 (comment)

@shortjared
Copy link
Author

Yep, I would suggest this is somehow documented in the repository for those using webpack. Took me a bit to figure it out being new to svelte in general

kazzkiq referenced this issue Nov 1, 2019
Adding details on #8 in the readme.
@kazzkiq kazzkiq closed this as completed Nov 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants