Skip to content

Commit 389b100

Browse files
LekoArtspieh
andauthored
fix(deps): Pin @babel/plugin-transform-modules-commonjs to 7.18.6 (#37660)
Co-authored-by: pieh <[email protected]>
1 parent 306c4bb commit 389b100

File tree

5 files changed

+43
-10
lines changed

5 files changed

+43
-10
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
describe(`Engines (SSR)`, () => {
2+
beforeEach(() => {
3+
cy.visit("/ssr").waitForRouteChange()
4+
})
5+
it(`should work`, () => {
6+
cy.get('[data-cy-id="getserverdata-result"]').should(
7+
"have.text",
8+
"getServerData used in contentful E2E test"
9+
)
10+
})
11+
})

e2e-tests/contentful/src/pages/ssr.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import React from "react"
2+
import Layout from "../components/layout"
3+
4+
const SSRPage = ({ serverData }) => (
5+
<Layout>
6+
<div data-cy-id="getserverdata-result">{serverData.test}</div>
7+
</Layout>
8+
)
9+
10+
export default SSRPage
11+
12+
export function getServerData() {
13+
return {
14+
props: {
15+
test: "getServerData used in contentful E2E test",
16+
},
17+
}
18+
}

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,5 +127,8 @@
127127
},
128128
"workspaces": [
129129
"packages/*"
130-
]
130+
],
131+
"resolutions": {
132+
"@babel/plugin-transform-modules-commonjs": "7.18.6"
133+
}
131134
}

packages/babel-preset-gatsby-package/lib/__tests__/fixtures/keep-dynamic-import/default/output.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

yarn.lock

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@
483483
"@babel/traverse" "^7.20.7"
484484
"@babel/types" "^7.20.7"
485485

486-
"@babel/helper-simple-access@^7.20.2":
486+
"@babel/helper-simple-access@^7.18.6", "@babel/helper-simple-access@^7.20.2":
487487
version "7.20.2"
488488
resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.20.2.tgz#0ab452687fe0c2cfb1e2b9e0015de07fc2d62dd9"
489489
integrity sha512-+0woI/WPq59IrqDYbVGfshjT5Dmk/nnbdpcF8SnMhhXObpTq2KNBdLFRFrkVdbDOyUmHBCxzm5FHV1rACIkIbA==
@@ -1018,14 +1018,15 @@
10181018
"@babel/helper-module-transforms" "^7.20.11"
10191019
"@babel/helper-plugin-utils" "^7.20.2"
10201020

1021-
"@babel/plugin-transform-modules-commonjs@^7.0.0", "@babel/plugin-transform-modules-commonjs@^7.13.8", "@babel/plugin-transform-modules-commonjs@^7.19.6", "@babel/plugin-transform-modules-commonjs@^7.20.11":
1022-
version "7.20.11"
1023-
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.20.11.tgz#8cb23010869bf7669fd4b3098598b6b2be6dc607"
1024-
integrity sha512-S8e1f7WQ7cimJQ51JkAaDrEtohVEitXjgCGAS2N8S31Y42E+kWwfSz83LYz57QdBm7q9diARVqanIaH2oVgQnw==
1021+
"@babel/plugin-transform-modules-commonjs@7.18.6", "@babel/plugin-transform-modules-commonjs@^7.0.0", "@babel/plugin-transform-modules-commonjs@^7.13.8", "@babel/plugin-transform-modules-commonjs@^7.19.6", "@babel/plugin-transform-modules-commonjs@^7.20.11":
1022+
version "7.18.6"
1023+
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.18.6.tgz#afd243afba166cca69892e24a8fd8c9f2ca87883"
1024+
integrity sha512-Qfv2ZOWikpvmedXQJDSbxNqy7Xr/j2Y8/KfijM0iJyKkBTmWuvCA1yeH1yDM7NJhBW/2aXxeucLj6i80/LAJ/Q==
10251025
dependencies:
1026-
"@babel/helper-module-transforms" "^7.20.11"
1027-
"@babel/helper-plugin-utils" "^7.20.2"
1028-
"@babel/helper-simple-access" "^7.20.2"
1026+
"@babel/helper-module-transforms" "^7.18.6"
1027+
"@babel/helper-plugin-utils" "^7.18.6"
1028+
"@babel/helper-simple-access" "^7.18.6"
1029+
babel-plugin-dynamic-import-node "^2.3.3"
10291030

10301031
"@babel/plugin-transform-modules-systemjs@^7.19.6":
10311032
version "7.20.11"

0 commit comments

Comments
 (0)