Skip to content

Commit

Permalink
FIX paths
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen committed Feb 7, 2020
1 parent d489e65 commit 997c224
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 10 deletions.
2 changes: 1 addition & 1 deletion addons/actions/src/manager.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
1 change: 1 addition & 0 deletions lib/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
24 changes: 15 additions & 9 deletions lib/core/src/server/manager/babel-loader-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
],
},
},
Expand Down

0 comments on commit 997c224

Please sign in to comment.