We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd9ea5b commit 19ca39fCopy full SHA for 19ca39f
jest-transformer.js
@@ -2,4 +2,11 @@ const babelJest = require(`babel-jest`)
2
3
module.exports = babelJest.default.createTransformer({
4
presets: [`babel-preset-gatsby-package`],
5
+ babelrcRoots: [
6
+ // Keep the root as a root
7
+ `.`,
8
+
9
+ // Also consider monorepo packages "root" and load their .babelrc files.
10
+ `./packages/*`,
11
+ ],
12
})
packages/gatsby-sharp/.babelrc renamed to packages/gatsby-sharp/.babelrc.js
@@ -1,4 +1,5 @@
1
-{
+console.log('hi there');
+module.exports = {
"presets": [["babel-preset-gatsby-package"]],
"plugins": ["babel-plugin-replace-ts-export-assignment"]
}
0 commit comments