Skip to content

Commit c843555

Browse files
authored
include regenerator runtime babel runtime vars (#116)
1 parent f796b73 commit c843555

File tree

7 files changed

+24
-1
lines changed

7 files changed

+24
-1
lines changed

.changeset/gold-phones-unite.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@web3-ui/components': patch
3+
'@web3-ui/core': patch
4+
'@web3-ui/hooks': patch
5+
---
6+
7+
Add babel-runtime to deps so we can have regenerator runtime at runtime

packages/components/.babelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@
33
"@babel/preset-env",
44
"@babel/preset-typescript",
55
"@babel/preset-react"
6+
],
7+
"plugins": [
8+
"@babel/plugin-transform-runtime"
69
]
710
}

packages/components/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"module": "dist/web3-ui-components.esm.js",
2929
"types": "dist/web3-ui-components.cjs.d.ts",
3030
"dependencies": {
31+
"@babel/runtime": "^7.16.3",
3132
"@chakra-ui/react": "^1.7.2",
3233
"@emotion/core": "^11.0.0",
3334
"@emotion/react": "^11",

packages/core/.babelrc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
{
2-
"presets": ["@babel/preset-env", "@babel/preset-typescript", "@babel/preset-react"]
2+
"presets": [
3+
"@babel/preset-env",
4+
"@babel/preset-typescript",
5+
"@babel/preset-react"
6+
],
7+
"plugins": [
8+
"@babel/plugin-transform-runtime"
9+
]
310
}

packages/core/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"module": "dist/web3-ui-core.esm.js",
2929
"types": "dist/web3-ui-core.cjs.d.ts",
3030
"dependencies": {
31+
"@babel/runtime": "^7.16.3",
3132
"@chakra-ui/react": "^1.7.2",
3233
"@emotion/core": "^11.0.0",
3334
"@emotion/react": "^11",

packages/hooks/.babelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@
33
"@babel/preset-env",
44
"@babel/preset-typescript",
55
"@babel/preset-react"
6+
],
7+
"plugins": [
8+
"@babel/plugin-transform-runtime"
69
]
710
}

packages/hooks/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"module": "dist/web3-ui-hooks.esm.js",
3232
"types": "dist/web3-ui-hooks.cjs.d.ts",
3333
"dependencies": {
34+
"@babel/runtime": "^7.16.3",
3435
"@walletconnect/web3-provider": "^1.6.6",
3536
"ethers": "^5.5.1",
3637
"web3modal": "^1.9.4"

0 commit comments

Comments
 (0)