mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-28 05:10:17 +08:00
54 lines
1.0 KiB
Plaintext
54 lines
1.0 KiB
Plaintext
{
|
|
"presets": [
|
|
"@babel/preset-env",
|
|
"@babel/preset-react",
|
|
"@babel/preset-flow"
|
|
],
|
|
"plugins": [
|
|
"babel-plugin-emotion",
|
|
"babel-plugin-macros",
|
|
"@babel/plugin-proposal-class-properties",
|
|
"@babel/plugin-proposal-export-default-from",
|
|
[
|
|
"@babel/plugin-transform-runtime",
|
|
{
|
|
"regenerator": true
|
|
}
|
|
]
|
|
],
|
|
"env": {
|
|
"test": {
|
|
"plugins": ["babel-plugin-require-context-hook"]
|
|
}
|
|
},
|
|
"overrides": [
|
|
{
|
|
"test": "./examples/vue-kitchen-sink",
|
|
"presets": [
|
|
"@babel/preset-env",
|
|
"babel-preset-vue"
|
|
]
|
|
},
|
|
{
|
|
"test": [
|
|
"./lib/core/src/server",
|
|
"./lib/node-logger",
|
|
"./lib/codemod",
|
|
"./addons/storyshots",
|
|
"./addons/storysource/src/loader",
|
|
"./app/**/src/server/**"
|
|
],
|
|
"presets": [
|
|
[
|
|
"@babel/preset-env",
|
|
{
|
|
"targets": {
|
|
"node": "8.11"
|
|
}
|
|
}
|
|
]
|
|
]
|
|
}
|
|
]
|
|
}
|