Skip to content

Commit

Permalink
[deps] Upgrade to @babel V7 🎉 (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
jessestuart authored Sep 11, 2018
1 parent 6d60ca7 commit ed33838
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 46 deletions.
17 changes: 0 additions & 17 deletions .babelrc

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/*.js
/types/*.js
yarn.lock
!babel.config.js
23 changes: 9 additions & 14 deletions .babelrc.js → babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,34 +22,29 @@ function preset(context, options = {}) {
},
}

context.cache(true)

return {
presets: [
r('@babel/preset-flow'),
[
r('babel-preset-env'),
r('@babel/preset-env'),
Object.assign(
{
loose: true,
debug: !!debug,
useBuiltIns: true,
useBuiltIns: 'usage',
modules: 'commonjs',
},
browser ? browserConfig : nodeConfig
),
],
r('babel-preset-react'),
r('babel-preset-flow'),
r('@babel/preset-react'),
],
plugins: [
r('babel-plugin-transform-object-rest-spread'),
[
r('babel-plugin-transform-runtime'),
{
// we are only polyfilling the node environment
// so we need to enable the runtime replacements for the browser preset
polyfill: !!browser,
},
],
r(`babel-plugin-transform-flow-strip-types`),
r('@babel/plugin-transform-flow-strip-types'),
r('@babel/plugin-proposal-object-rest-spread'),
r('@babel/plugin-transform-runtime'),
],
}
}
Expand Down
30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "gatsby-source-s3-image",
"description": "GatsbyJS plugin to source images from S3-compliant APIs, with EXIF-extracting superpowers.",
"version": "0.0.4",
"version": "0.1.0",
"author": "Jesse Stuart <hi@jessestuart.com>",
"homepage": "https://github.com/jessestuart/gatsby-source-s3-image#readme",
"repository": {
Expand All @@ -10,25 +10,25 @@
},
"dependencies": {
"aws-sdk": "2.298.0",
"babel-cli": "6.26.0",
"babel-eslint": "8.2.6",
"babel-jest": "23.6.0",
"babel-plugin-add-module-exports": "0.2.1",
"babel-plugin-lodash": "3.3.4",
"babel-plugin-transform-async-to-generator": "6.24.1",
"babel-plugin-transform-flow-strip-types": "6.22.0",
"babel-plugin-transform-runtime": "6.23.0",
"babel-preset-env": "1.7.0",
"babel-preset-flow": "6.23.0",
"babel-preset-react": "6.24.1",
"babel-preset-stage-0": "6.24.1",
"babel-register": "6.26.0",
"babel-runtime": "6.26.0",
"bluebird": "3.5.1",
"lodash": "4.17.10",
"luxon": "1.3.3"
},
"devDependencies": {
"@babel/cli": "^7.0.0",
"@babel/core": "^7.0.0",
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
"@babel/plugin-transform-async-to-generator": "^7.0.0",
"@babel/plugin-transform-flow-strip-types": "^7.0.0",
"@babel/plugin-transform-runtime": "^7.0.0",
"@babel/polyfill": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@babel/preset-flow": "^7.0.0",
"@babel/preset-react": "^7.0.0",
"babel-eslint": "9.0.0",
"babel-jest": "23.4.2",
"babel-plugin-add-module-exports": "0.2.1",
"babel-plugin-lodash": "3.3.4",
"eslint-config-prettier": "3.0.1",
"eslint-config-standard": "12.0.0",
"eslint-friendly-formatter": "4.0.1",
Expand Down

0 comments on commit ed33838

Please sign in to comment.