Skip to content

Commit cda2209

Browse files
committed
add suggestion of package if not installed
1 parent 27b3f31 commit cda2209

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

lib/WebpackConfig.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ class WebpackConfig {
172172
eslint: () => {},
173173
typescript: () => {},
174174
handlebars: () => {},
175+
svelte: () => {},
175176
};
176177

177178
// Plugins options

lib/config-generator.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,8 @@ class ConfigGenerator {
400400
}
401401

402402
if (this.webpackConfig.useSvelte) {
403+
loaderFeatures.ensurePackagesExistAndAreCorrectVersion('svelte');
404+
403405
rules.push(applyRuleConfigurationCallback('svelte', {
404406
resolve: {
405407
mainFields: ['svelte', 'browser', 'module', 'main'],

0 commit comments

Comments
 (0)