Skip to content

Commit

Permalink
Merge pull request #18799 from storybookjs/benmccann-patch-1
Browse files Browse the repository at this point in the history
Svelte: don't add `svelte-loader` nor `svelte` when initializing Svelte projects
  • Loading branch information
JReinhold authored Jan 13, 2023
2 parents 858aa9d + ef83526 commit 67e2899
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions code/lib/cli/src/generators/SVELTE/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
import { CoreBuilder } from '../../project_types';
import { baseGenerator } from '../baseGenerator';
import type { Generator } from '../types';

const generator: Generator = async (packageManager, npmOptions, options) => {
const extraPackages = options.builder === CoreBuilder.Webpack5 ? ['svelte', 'svelte-loader'] : [];

await baseGenerator(packageManager, npmOptions, options, 'svelte', {
extraPackages,
extensions: ['js', 'jsx', 'ts', 'tsx', 'svelte'],
commonJs: true,
});
Expand Down

0 comments on commit 67e2899

Please sign in to comment.