mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 22:11:15 +08:00
FIX paths
This commit is contained in:
parent
d489e651a3
commit
997c224d55
@ -1,4 +1,4 @@
|
||||
import * as React from 'react';
|
||||
import React from 'react';
|
||||
import addons from '@storybook/addons';
|
||||
import ActionLogger from './containers/ActionLogger';
|
||||
import { ADDON_ID, PANEL_ID, PARAM_KEY } from './constants';
|
||||
|
@ -48,6 +48,7 @@
|
||||
"airbnb-js-shims": "^2.2.1",
|
||||
"ansi-to-html": "^0.6.11",
|
||||
"autoprefixer": "^9.7.2",
|
||||
"babel-loader": "^8.0.6",
|
||||
"babel-plugin-add-react-displayname": "^0.0.5",
|
||||
"babel-plugin-emotion": "^10.0.20",
|
||||
"babel-plugin-macros": "^2.8.0",
|
||||
|
@ -4,20 +4,26 @@ export default () => ({
|
||||
test: /\.(mjs|tsx?|jsx?)$/,
|
||||
use: [
|
||||
{
|
||||
loader: 'babel-loader',
|
||||
loader: require.resolve('babel-loader'),
|
||||
options: {
|
||||
sourceType: 'unambiguous',
|
||||
presets: [
|
||||
['@babel/preset-env', { shippedProposals: true, useBuiltIns: 'usage', corejs: '3' }],
|
||||
'@babel/preset-typescript',
|
||||
'@babel/preset-react',
|
||||
[
|
||||
require.resolve('@babel/preset-env'),
|
||||
{ shippedProposals: true, useBuiltIns: 'usage', corejs: '3' },
|
||||
],
|
||||
require.resolve('@babel/preset-typescript'),
|
||||
require.resolve('@babel/preset-react'),
|
||||
],
|
||||
plugins: [
|
||||
['@babel/plugin-proposal-class-properties', { loose: true }],
|
||||
'@babel/plugin-proposal-export-default-from',
|
||||
'@babel/plugin-syntax-dynamic-import',
|
||||
['@babel/plugin-proposal-object-rest-spread', { loose: true, useBuiltIns: true }],
|
||||
'babel-plugin-macros',
|
||||
[require.resolve('@babel/plugin-proposal-class-properties'), { loose: true }],
|
||||
require.resolve('@babel/plugin-proposal-export-default-from'),
|
||||
require.resolve('@babel/plugin-syntax-dynamic-import'),
|
||||
[
|
||||
require.resolve('@babel/plugin-proposal-object-rest-spread'),
|
||||
{ loose: true, useBuiltIns: true },
|
||||
],
|
||||
require.resolve('babel-plugin-macros'),
|
||||
],
|
||||
},
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user