Skip to content
This repository has been archived by the owner on May 17, 2019. It is now read-only.

Commit

Permalink
babel@7
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinGrandon committed Mar 16, 2018
1 parent d3754dd commit f388fa5
Show file tree
Hide file tree
Showing 12 changed files with 618 additions and 519 deletions.
2 changes: 1 addition & 1 deletion build/babel-plugins/babel-plugin-asseturl/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* eslint-env node */
const fs = require('fs');
const test = require('tape');
const {transformFileSync} = require('babel-core');
const {transformFileSync} = require('@babel/core');
const plugin = require('../');

test('import assetURL', t => {
Expand Down
2 changes: 1 addition & 1 deletion build/babel-plugins/babel-plugin-chunkid/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* eslint-env node */
const fs = require('fs');
const test = require('tape');
const {transformFileSync} = require('babel-core');
const {transformFileSync} = require('@babel/core');
const plugin = require('../');

test('import assetURL', t => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env node */
const {transform} = require('babel-core');
const {transform} = require('@babel/core');
const plugin = require('../');
const babelPluginSyntaxJsx = require('babel-plugin-syntax-jsx');
const babelPluginSyntaxJsx = require('@babel/plugin-syntax-jsx');

module.exports = function doTransform(inputString) {
return (
Expand Down
4 changes: 2 additions & 2 deletions build/babel-plugins/babel-plugin-i18n/test/transform.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env node */
const {transform} = require('babel-core');
const {transform} = require('@babel/core');
const plugin = require('../');
const babelPluginSyntaxJsx = require('babel-plugin-syntax-jsx');
const babelPluginSyntaxJsx = require('@babel/plugin-syntax-jsx');

module.exports = function doTransform(inputString) {
return (
Expand Down
2 changes: 1 addition & 1 deletion build/babel-plugins/babel-plugin-sw/test/transform.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const {transform} = require('babel-core');
const {transform} = require('@babel/core');
const plugin = require('../');
/* eslint-env node */
module.exports = function doTransform(inputString) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* eslint-env node */
const fs = require('fs');
const test = require('tape');
const {transformFileSync} = require('babel-core');
const {transformFileSync} = require('@babel/core');
const plugin = require('../');

test('import syncChunkIds', t => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* eslint-env node */
const fs = require('fs');
const test = require('tape');
const {transformFileSync} = require('babel-core');
const {transformFileSync} = require('@babel/core');
const plugin = require('../');

test('import syncChunkPaths', t => {
Expand Down
2 changes: 1 addition & 1 deletion build/babel-plugins/babel-plugin-utils/test/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @flow
/* eslint-env node */
const test = require('tape');
const {transform} = require('babel-core');
const {transform} = require('@babel/core');
const createNamedModuleVisitor = require('../visit-named-module');
const replaceImportDeclaration = require('../replace-import-declaration');

Expand Down
10 changes: 5 additions & 5 deletions build/babel-preset.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,20 @@ module.exports = function buildPreset(
return {
presets: [
[
require('babel-preset-env'),
require('@babel/preset-env'),
{
targets: targets,
modules: modules,
exclude: ['transform-regenerator', 'transform-async-to-generator'],
},
],
require('babel-preset-react'),
require('@babel/preset-react'),
],
plugins: [
require('babel-plugin-transform-async-generator-functions'),
require('babel-plugin-transform-class-properties'),
require('@babel/plugin-proposal-async-generator-functions'),
require('@babel/plugin-proposal-class-properties'),
[
require('babel-plugin-transform-object-rest-spread'),
require('@babel/plugin-proposal-object-rest-spread'),
{
useBuiltIns: true,
},
Expand Down
4 changes: 2 additions & 2 deletions build/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ function getConfig({target, env, dir, watch, cover}) {
? fusionConfig.babel.plugins
: []),
//cup-globals works with webpack.EnvironmentPlugin(['NODE_ENV']) to implement static conditionals
require.resolve('babel-plugin-syntax-dynamic-import'),
require.resolve('@babel/plugin-syntax-dynamic-import'),
require.resolve('./babel-plugins/babel-plugin-asseturl'),
require.resolve(
'./babel-plugins/babel-plugin-sync-chunk-ids'
Expand All @@ -238,7 +238,7 @@ function getConfig({target, env, dir, watch, cover}) {
// TODO(#8): sw implementation is totally busted.
// require.resolve('./babel-plugins/babel-plugin-sw'),
pragma && [
require.resolve('babel-plugin-transform-react-jsx'),
require.resolve('@babel/plugin-transform-react-jsx'),
{pragma},
],
env === 'development' &&
Expand Down
29 changes: 16 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,26 @@
"test": "node test/index.js"
},
"dependencies": {
"@babel/core": "7.0.0-beta.40",
"@babel/plugin-external-helpers": "7.0.0-beta.40",
"@babel/plugin-proposal-async-generator-functions": "7.0.0-beta.40",
"@babel/plugin-proposal-class-properties": "7.0.0-beta.40",
"@babel/plugin-proposal-object-rest-spread": "7.0.0-beta.40",
"@babel/plugin-syntax-dynamic-import": "7.0.0-beta.40",
"@babel/plugin-syntax-jsx": "7.0.0-beta.40",
"@babel/plugin-transform-react-jsx": "7.0.0-beta.40",
"@babel/preset-env": "7.0.0-beta.40",
"@babel/preset-flow": "7.0.0-beta.40",
"@babel/preset-react": "7.0.0-beta.40",
"@babel/template": "7.0.0-beta.40",
"@nadiia/file-loader": "^2.0.0",
"babel-core": "^6.26.0",
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "^22.4.1",
"babel-loader": "^7.1.4",
"babel-loader": "^8.0.0-beta.0",
"babel-plugin-dynamic-import-node": "^1.2.0",
"babel-plugin-external-helpers": "^6.22.0",
"babel-plugin-istanbul": "^4.1.5",
"babel-plugin-syntax-dynamic-import": "^6.18.0",
"babel-plugin-syntax-jsx": "^6.18.0",
"babel-plugin-transform-async-generator-functions": "^6.24.1",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-cup-globals": "^1.0.0",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-plugin-transform-react-jsx": "^6.24.1",
"babel-preset-env": "^1.6.1",
"babel-preset-flow": "^6.23.0",
"babel-preset-jest": "^22.4.1",
"babel-preset-react": "^6.24.1",
"babel-template": "^6.26.0",
"browser-unhandled-rejection": "^1.0.1",
"case-sensitive-paths-webpack-plugin": "^2.1.2",
"chalk": "^2.3.2",
Expand Down Expand Up @@ -87,6 +88,8 @@
"yargs": "^11.0.0"
},
"devDependencies": {
"@babel/core": "7.0.0-beta.40",
"@babel/preset-flow": "7.0.0-beta.40",
"babel-eslint": "8.2.2",
"chrome-remote-interface": "^0.25.5",
"enzyme": "3.3.0",
Expand Down
Loading

0 comments on commit f388fa5

Please sign in to comment.