Skip to content

Commit

Permalink
fix(deps): Pin @babel/plugin-transform-modules-commonjs to 7.18.6 (#…
Browse files Browse the repository at this point in the history
…37660)

Co-authored-by: pieh <misiek.piechowiak@gmail.com>
  • Loading branch information
LekoArts and pieh committed Feb 16, 2023
1 parent 306c4bb commit 389b100
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 10 deletions.
11 changes: 11 additions & 0 deletions e2e-tests/contentful/cypress/integration/engines.js
@@ -0,0 +1,11 @@
describe(`Engines (SSR)`, () => {
beforeEach(() => {
cy.visit("/ssr").waitForRouteChange()
})
it(`should work`, () => {
cy.get('[data-cy-id="getserverdata-result"]').should(
"have.text",
"getServerData used in contentful E2E test"
)
})
})
18 changes: 18 additions & 0 deletions e2e-tests/contentful/src/pages/ssr.js
@@ -0,0 +1,18 @@
import React from "react"
import Layout from "../components/layout"

const SSRPage = ({ serverData }) => (
<Layout>
<div data-cy-id="getserverdata-result">{serverData.test}</div>
</Layout>
)

export default SSRPage

export function getServerData() {
return {
props: {
test: "getServerData used in contentful E2E test",
},
}
}
5 changes: 4 additions & 1 deletion package.json
Expand Up @@ -127,5 +127,8 @@
},
"workspaces": [
"packages/*"
]
],
"resolutions": {
"@babel/plugin-transform-modules-commonjs": "7.18.6"
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 9 additions & 8 deletions yarn.lock
Expand Up @@ -483,7 +483,7 @@
"@babel/traverse" "^7.20.7"
"@babel/types" "^7.20.7"

"@babel/helper-simple-access@^7.20.2":
"@babel/helper-simple-access@^7.18.6", "@babel/helper-simple-access@^7.20.2":
version "7.20.2"
resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.20.2.tgz#0ab452687fe0c2cfb1e2b9e0015de07fc2d62dd9"
integrity sha512-+0woI/WPq59IrqDYbVGfshjT5Dmk/nnbdpcF8SnMhhXObpTq2KNBdLFRFrkVdbDOyUmHBCxzm5FHV1rACIkIbA==
Expand Down Expand Up @@ -1018,14 +1018,15 @@
"@babel/helper-module-transforms" "^7.20.11"
"@babel/helper-plugin-utils" "^7.20.2"

"@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":
version "7.20.11"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.20.11.tgz#8cb23010869bf7669fd4b3098598b6b2be6dc607"
integrity sha512-S8e1f7WQ7cimJQ51JkAaDrEtohVEitXjgCGAS2N8S31Y42E+kWwfSz83LYz57QdBm7q9diARVqanIaH2oVgQnw==
"@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":
version "7.18.6"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.18.6.tgz#afd243afba166cca69892e24a8fd8c9f2ca87883"
integrity sha512-Qfv2ZOWikpvmedXQJDSbxNqy7Xr/j2Y8/KfijM0iJyKkBTmWuvCA1yeH1yDM7NJhBW/2aXxeucLj6i80/LAJ/Q==
dependencies:
"@babel/helper-module-transforms" "^7.20.11"
"@babel/helper-plugin-utils" "^7.20.2"
"@babel/helper-simple-access" "^7.20.2"
"@babel/helper-module-transforms" "^7.18.6"
"@babel/helper-plugin-utils" "^7.18.6"
"@babel/helper-simple-access" "^7.18.6"
babel-plugin-dynamic-import-node "^2.3.3"

"@babel/plugin-transform-modules-systemjs@^7.19.6":
version "7.20.11"
Expand Down

0 comments on commit 389b100

Please sign in to comment.