Skip to content

Commit

Permalink
remove babel stuff that was added in #15657
Browse files Browse the repository at this point in the history
  • Loading branch information
sidharthachatterjee committed Jul 12, 2019
1 parent 62a29dd commit cc44f29
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 106 deletions.
5 changes: 1 addition & 4 deletions jest-transformer.js
@@ -1,5 +1,2 @@
const babelPreset = require(`babel-preset-gatsby-package`)()
module.exports = require(`babel-jest`).createTransformer({
...babelPreset,
plugins: [...babelPreset.plugins, `babel-plugin-dynamic-import-node`],
})
module.exports = require(`babel-jest`).createTransformer(babelPreset)
3 changes: 0 additions & 3 deletions jest.config.js
Expand Up @@ -33,9 +33,6 @@ module.exports = {
`/node_modules/`,
`__tests__/fixtures`,
],
// gatsby-image includes a dynamic import in the IE polyfill
// that Node doesn't understand and needs `babel-plugin-dynamic-import-node`
// transformIgnorePatterns: [`/node_modules/`],
transform: { "^.+\\.js$": `<rootDir>/jest-transformer.js` },
moduleNameMapper: {
"^highlight.js$": `<rootDir>/node_modules/highlight.js/lib/index.js`,
Expand Down
1 change: 0 additions & 1 deletion package.json
Expand Up @@ -5,7 +5,6 @@
"@babel/runtime": "^7.0.0",
"babel-eslint": "^10.0.1",
"babel-jest": "^24.0.0",
"babel-plugin-dynamic-import-node": "^2.3.0",
"chokidar": "^1.7.0",
"cross-env": "^5.1.4",
"eslint": "^5.16.0",
Expand Down
3 changes: 1 addition & 2 deletions packages/babel-preset-gatsby-package/index.js
Expand Up @@ -42,8 +42,7 @@ function preset(context, options = {}) {
plugins: [
r(`@babel/plugin-proposal-class-properties`),
r(`@babel/plugin-proposal-optional-chaining`),
r(`@babel/plugin-transform-runtime`),
r(`@babel/plugin-syntax-dynamic-import`)
r(`@babel/plugin-transform-runtime`)
],
}
}
Expand Down
5 changes: 1 addition & 4 deletions packages/babel-preset-gatsby-package/package.json
Expand Up @@ -12,8 +12,5 @@
"@babel/preset-react": "^7.0.0"
},
"license": "MIT",
"main": "index.js",
"devDependencies": {
"babel-plugin-dynamic-import-node": "^2.3.0"
}
"main": "index.js"
}
92 changes: 0 additions & 92 deletions packages/gatsby-remark-graphviz/__tests__/index.js

This file was deleted.

0 comments on commit cc44f29

Please sign in to comment.