mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 23:01:16 +08:00
Default sb init w/ "web components" to use cjs
This commit is contained in:
parent
b59d90c3b4
commit
69f523d782
@ -206,7 +206,10 @@ const installStorybook = (projectType: ProjectType, options: CommandOptions): Pr
|
||||
.then(end);
|
||||
|
||||
case ProjectType.WEB_COMPONENTS:
|
||||
return webComponentsGenerator(packageManager, npmOptions, generatorOptions)
|
||||
return webComponentsGenerator(packageManager, npmOptions, {
|
||||
...generatorOptions,
|
||||
commonJs: true,
|
||||
})
|
||||
.then(commandLog('Adding Storybook support to your "web components" app'))
|
||||
.then(end);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user