diff options
| author | Armand Philippot <git@armandphilippot.com> | 2021-10-24 17:25:51 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2021-10-24 17:25:51 +0200 |
| commit | bdd33464e704d9f7fdd2f751defae65fa784c9b0 (patch) | |
| tree | a79a99c8824ef98d7774887f06d125337d54ce6e | |
| parent | c14da77997880189e6f4b7012d40dec227b9b225 (diff) | |
build: add babel runtime to use async functions
| -rw-r--r-- | babel.config.json | 1 | ||||
| -rw-r--r-- | package.json | 2 | ||||
| -rw-r--r-- | yarn.lock | 14 |
3 files changed, 16 insertions, 1 deletions
diff --git a/babel.config.json b/babel.config.json index 1320b9a..456d336 100644 --- a/babel.config.json +++ b/babel.config.json @@ -1,3 +1,4 @@ { + "plugins": ["@babel/plugin-transform-runtime"], "presets": ["@babel/preset-env"] } diff --git a/package.json b/package.json index 04438d7..03e2d65 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ }, "devDependencies": { "@babel/core": "^7.15.8", + "@babel/plugin-transform-runtime": "^7.15.8", "@babel/preset-env": "^7.15.8", "@commitlint/cli": "^13.2.1", "@commitlint/config-conventional": "^13.2.0", @@ -64,6 +65,7 @@ "webpack-merge": "^5.8.0" }, "dependencies": { + "@babel/runtime": "^7.15.4", "dotenv": "^10.0.0", "dotenv-expand": "^5.1.0", "modern-normalize": "^1.1.0" @@ -695,6 +695,18 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-transform-runtime@^7.15.8": + version "7.15.8" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.15.8.tgz#9d15b1e94e1c7f6344f65a8d573597d93c6cd886" + integrity sha512-+6zsde91jMzzvkzuEA3k63zCw+tm/GvuuabkpisgbDMTPQsIMHllE3XczJFFtEHLjjhKQFZmGQVRdELetlWpVw== + dependencies: + "@babel/helper-module-imports" "^7.15.4" + "@babel/helper-plugin-utils" "^7.14.5" + babel-plugin-polyfill-corejs2 "^0.2.2" + babel-plugin-polyfill-corejs3 "^0.2.5" + babel-plugin-polyfill-regenerator "^0.2.2" + semver "^6.3.0" + "@babel/plugin-transform-shorthand-properties@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.14.5.tgz#97f13855f1409338d8cadcbaca670ad79e091a58" @@ -836,7 +848,7 @@ "@babel/types" "^7.4.4" esutils "^2.0.2" -"@babel/runtime@^7.8.4": +"@babel/runtime@^7.15.4", "@babel/runtime@^7.8.4": version "7.15.4" resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.15.4.tgz#fd17d16bfdf878e6dd02d19753a39fa8a8d9c84a" integrity sha512-99catp6bHCaxr4sJ/DbTGgHS4+Rs2RVd2g7iOap6SLGPDknRK9ztKNsE/Fg6QhSeh1FGE5f6gHGQmvvn3I3xhw== |
