Skip to content

Commit d28e57c

Browse files
zairigimadweaverryan
authored andcommitted
add suggestion of package if not installed
1 parent bc15bb8 commit d28e57c

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
@@ -151,6 +151,7 @@ class WebpackConfig {
151151
eslint: () => {},
152152
typescript: () => {},
153153
handlebars: () => {},
154+
svelte: () => {},
154155
};
155156

156157
// Plugins options

lib/config-generator.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,8 @@ class ConfigGenerator {
404404
}
405405

406406
if (this.webpackConfig.useSvelte) {
407+
loaderFeatures.ensurePackagesExistAndAreCorrectVersion('svelte');
408+
407409
rules.push(applyRuleConfigurationCallback('svelte', {
408410
resolve: {
409411
mainFields: ['svelte', 'browser', 'module', 'main'],

0 commit comments

Comments
 (0)