Skip to content

Commit

Permalink
add suggestion of package if not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
zairigimad committed May 30, 2020
1 parent 27b3f31 commit cda2209
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/WebpackConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ class WebpackConfig {
eslint: () => {},
typescript: () => {},
handlebars: () => {},
svelte: () => {},
};

// Plugins options
Expand Down
2 changes: 2 additions & 0 deletions lib/config-generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,8 @@ class ConfigGenerator {
}

if (this.webpackConfig.useSvelte) {
loaderFeatures.ensurePackagesExistAndAreCorrectVersion('svelte');

rules.push(applyRuleConfigurationCallback('svelte', {
resolve: {
mainFields: ['svelte', 'browser', 'module', 'main'],
Expand Down

0 comments on commit cda2209

Please sign in to comment.