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 8c5be8f
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 55 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',
},
},
],
],
},
],
};
6 changes: 4 additions & 2 deletions lib/core/src/server/manager/manager-webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ import CaseSensitivePathsPlugin from 'case-sensitive-paths-webpack-plugin';

import { version } from '../../../package.json';
import { getManagerHeadHtml } from '../utils/template';
import { excludePaths, loadEnv, getBabelRuntimePath } from '../config/utils';
import { 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 8c5be8f

Please sign in to comment.