-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #248 from silinternational/develop
Release 11.0.0
- Loading branch information
Showing
12 changed files
with
20,371 additions
and
33,871 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,26 @@ | ||
const path = require('path') | ||
|
||
module.exports = { | ||
"stories": [ | ||
/** @type { import('@storybook/svelte-vite').StorybookConfig } */ | ||
const config = { | ||
stories: [ | ||
"../**/*.stories.mdx", | ||
"../**/*.stories.@(js|jsx|ts|tsx|svelte)" | ||
], | ||
"addons": [ | ||
addons: [ | ||
"@storybook/addon-links", | ||
"@storybook/addon-essentials", | ||
"@storybook/addon-interactions", | ||
"@storybook/addon-svelte-csf", | ||
"@storybook/preset-scss", | ||
"@storybook/addon-postcss" | ||
"@storybook/addon-mdx-gfm", | ||
], | ||
"svelteOptions": { | ||
"emitCss": true, | ||
"preprocess": require("svelte-preprocess")() | ||
}, | ||
"core": { | ||
"builder": "webpack5" | ||
}, | ||
babel: async (options) => { | ||
options.presets[0][1].loose = true | ||
return options | ||
}, | ||
webpackFinal: async (config, { configType }) => { | ||
// `configType` has a value of 'DEVELOPMENT' or 'PRODUCTION' | ||
// You can change the configuration based on that. | ||
// 'PRODUCTION' is used when building the static version of storybook. | ||
|
||
// Make whatever fine-grained changes you need | ||
config.resolve.fallback.crypto = false; | ||
config.resolve.alias.svelte = path.resolve('node_modules', 'svelte') | ||
|
||
// config.module.rules[0].use[0].options.presets[0][1].loose = true | ||
// console.log('!!!!!!!!!!!!', JSON.stringify(config.module.rules[0].use[0].options, null, 4)) | ||
// = [ | ||
// '@babel/plugin-proposal-class-properties', | ||
// { loose: true } | ||
// ] | ||
|
||
return config; | ||
framework: { | ||
name: '@storybook/svelte-vite', | ||
options: { | ||
emitCss: true, | ||
}, | ||
}, | ||
docs: { | ||
autodocs: true, | ||
}, | ||
} | ||
} | ||
export default config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.