Skip to content

Commit

Permalink
FIX the babel6 test, MAYBE?
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen committed Nov 9, 2018
1 parent 0f29f20 commit 6b0a885
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 54 deletions.
53 changes: 0 additions & 53 deletions .babelrc

This file was deleted.

46 changes: 46 additions & 0 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
module.exports = {
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',
},
},
],
],
},
],
};
4 changes: 3 additions & 1 deletion lib/core/src/server/manager/manager-webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import { excludePaths, loadEnv, getBabelRuntimePath } from '../config/utils';
export default ({ configDir, entries, outputDir }) => {
const { raw, stringified } = loadEnv();

const exclude = /node_modules/;

return {
name: 'manager',
mode: 'production',
Expand Down Expand Up @@ -51,7 +53,7 @@ export default ({ configDir, entries, outputDir }) => {
loader: 'babel-loader',
},
],
exclude: excludePaths,
exclude,
},
{
test: /\.md$/,
Expand Down

0 comments on commit 6b0a885

Please sign in to comment.