Skip to content

Commit

Permalink
Merge pull request #685 from reactioncommerce/fix-babel-runtime
Browse files Browse the repository at this point in the history
fix: runtime build issues
  • Loading branch information
willopez authored Jun 15, 2020
2 parents 8954dcd + 78923f6 commit a8bc67c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 168 deletions.
98 changes: 2 additions & 96 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,99 +1,5 @@
{
"presets": [
[
"next/babel",
{
"preset-env": {
"targets": {
"node": "current",
"browsers": [
"last 2 versions",
"ie 11"
]
}
}
}
]
],
"plugins": [
"babel-plugin-styled-components",
[
"module-resolver",
{
"alias": {
"components": "./components",
"containers": "./containers",
"context": "./context",
"custom": "./custom",
"hocs": "./hocs",
"hooks": "./hooks",
"lib": "./lib",
"pages": "./pages",
"public": "./public",
"static": "./static",
"serverUtils": "./serverUtils",
"translations": "./translations",
"routes": "./routes",
"utils": "./utils",
"staticUtils": "./staticUtils",
"apiUtils": "./apiUtils"
}
}
],
[
"@babel/plugin-proposal-decorators",
{
"legacy": true
}
],
[
"@babel/plugin-proposal-class-properties",
{
"loose": true
}
]
],
"env": {
"jesttest": {
"plugins": [
"babel-plugin-styled-components",
[
"module-resolver",
{
"alias": {
"components": "./components",
"containers": "./containers",
"context": "./context",
"custom": "./custom",
"hocs": "./hocs",
"hooks": "./hooks",
"lib": "./lib",
"pages": "./pages",
"public": "./public",
"static": "./static",
"serverUtils": "./serverUtils",
"translations": "./translations",
"routes": "./routes",
"utils": "./utils",
"staticUtils": "./staticUtils",
"apiUtils": "./apiUtils"
}
}
],
[
"@babel/plugin-proposal-decorators",
{
"legacy": true
}
],
[
"@babel/plugin-proposal-class-properties",
{
"loose": true
}
],
"dynamic-import-node"
]
}
}
"next/babel"
]
}
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,13 @@
"@apollo/link-context": "^2.0.0-beta.3",
"@apollo/link-error": "^2.0.0-beta.3",
"@apollo/react-components": "^3.1.3",
"@babel/plugin-proposal-decorators": "^7.10.1",
"@material-ui/core": "^4.9.7",
"@material-ui/lab": "^4.0.0-alpha.46",
"@material-ui/styles": "^4.9.6",
"@reactioncommerce/components": "~0.67.2",
"@reactioncommerce/components-context": "~1.2.0",
"@segment/snippet": "~4.4.0",
"apollo-client": "^2.6.8",
"babel-eslint": "^10.1.0",
"babel-jest": "^26.0.1",
"body-parser": "~1.19.0",
"classnames": "~2.2.6",
"client-sessions": "^0.8.0",
Expand Down Expand Up @@ -82,7 +79,8 @@
},
"devDependencies": {
"@reactioncommerce/eslint-config": "~1.9.0",
"babel-plugin-module-resolver": "^4.0.0",
"babel-eslint": "^10.1.0",
"babel-jest": "^26.0.1",
"babel-preset-jest": "^26.0.0",
"broken-link-checker": "~0.7.8",
"chai": "~4.2.0",
Expand Down
69 changes: 1 addition & 68 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -269,17 +269,6 @@
levenary "^1.1.1"
semver "^5.5.0"

"@babel/helper-create-class-features-plugin@^7.10.1":
version "7.10.2"
resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.10.2.tgz#7474295770f217dbcf288bf7572eb213db46ee67"
dependencies:
"@babel/helper-function-name" "^7.10.1"
"@babel/helper-member-expression-to-functions" "^7.10.1"
"@babel/helper-optimise-call-expression" "^7.10.1"
"@babel/helper-plugin-utils" "^7.10.1"
"@babel/helper-replace-supers" "^7.10.1"
"@babel/helper-split-export-declaration" "^7.10.1"

"@babel/helper-create-class-features-plugin@^7.8.3":
version "7.8.6"
resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.8.6.tgz#243a5b46e2f8f0f674dc1387631eb6b28b851de0"
Expand Down Expand Up @@ -642,14 +631,6 @@
"@babel/helper-create-class-features-plugin" "^7.8.3"
"@babel/helper-plugin-utils" "^7.8.3"

"@babel/plugin-proposal-decorators@^7.10.1":
version "7.10.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.10.1.tgz#9373c2d8db45345c6e30452ad77b469758e5c8f7"
dependencies:
"@babel/helper-create-class-features-plugin" "^7.10.1"
"@babel/helper-plugin-utils" "^7.10.1"
"@babel/plugin-syntax-decorators" "^7.10.1"

"@babel/plugin-proposal-dynamic-import@^7.8.3":
version "7.8.3"
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.8.3.tgz#38c4fe555744826e97e2ae930b0fb4cc07e66054"
Expand Down Expand Up @@ -725,12 +706,6 @@
dependencies:
"@babel/helper-plugin-utils" "^7.10.1"

"@babel/plugin-syntax-decorators@^7.10.1":
version "7.10.1"
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-decorators/-/plugin-syntax-decorators-7.10.1.tgz#16b869c4beafc9a442565147bda7ce0967bd4f13"
dependencies:
"@babel/helper-plugin-utils" "^7.10.1"

"@babel/plugin-syntax-dynamic-import@7.8.3", "@babel/plugin-syntax-dynamic-import@^7.8.0":
version "7.8.3"
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz#62bf98b2da3cd21d626154fc96ee5b3cb68eacb3"
Expand Down Expand Up @@ -2568,16 +2543,6 @@ babel-plugin-macros@^2.0.0:
cosmiconfig "^5.2.0"
resolve "^1.10.0"

babel-plugin-module-resolver@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/babel-plugin-module-resolver/-/babel-plugin-module-resolver-4.0.0.tgz#8f3a3d9d48287dc1d3b0d5595113adabd36a847f"
dependencies:
find-babel-config "^1.2.0"
glob "^7.1.6"
pkg-up "^3.1.0"
reselect "^4.0.0"
resolve "^1.13.1"

"babel-plugin-styled-components@>= 1":
version "1.10.7"
resolved "https://registry.yarnpkg.com/babel-plugin-styled-components/-/babel-plugin-styled-components-1.10.7.tgz#3494e77914e9989b33cc2d7b3b29527a949d635c"
Expand Down Expand Up @@ -4919,13 +4884,6 @@ finalhandler@1.1.1:
statuses "~1.4.0"
unpipe "~1.0.0"

find-babel-config@^1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/find-babel-config/-/find-babel-config-1.2.0.tgz#a9b7b317eb5b9860cda9d54740a8c8337a2283a2"
dependencies:
json5 "^0.5.1"
path-exists "^3.0.0"

find-cache-dir@3.3.1:
version "3.3.1"
resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-3.3.1.tgz#89b33fad4a4670daa94f855f7fbe31d6d84fe880"
Expand Down Expand Up @@ -5240,17 +5198,6 @@ glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4:
once "^1.3.0"
path-is-absolute "^1.0.0"

glob@^7.1.6:
version "7.1.6"
resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.6.tgz#141f33b81a7c2492e125594307480c46679278a6"
dependencies:
fs.realpath "^1.0.0"
inflight "^1.0.4"
inherits "2"
minimatch "^3.0.4"
once "^1.3.0"
path-is-absolute "^1.0.0"

global-dirs@^0.1.0:
version "0.1.1"
resolved "https://registry.yarnpkg.com/global-dirs/-/global-dirs-0.1.1.tgz#b319c0dd4607f353f3be9cca4c72fc148c49f445"
Expand Down Expand Up @@ -6539,10 +6486,6 @@ json-stringify-safe@~5.0.1:
version "5.0.1"
resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb"

json5@^0.5.1:
version "0.5.1"
resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821"

json5@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/json5/-/json5-1.0.1.tgz#779fb0018604fa854eacbf6252180d83543e3dbe"
Expand Down Expand Up @@ -8119,12 +8062,6 @@ pkg-up@^2.0.0:
dependencies:
find-up "^2.1.0"

pkg-up@^3.1.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/pkg-up/-/pkg-up-3.1.0.tgz#100ec235cc150e4fd42519412596a28512a0def5"
dependencies:
find-up "^3.0.0"

platform@1.3.3:
version "1.3.3"
resolved "https://registry.yarnpkg.com/platform/-/platform-1.3.3.tgz#646c77011899870b6a0903e75e997e8e51da7461"
Expand Down Expand Up @@ -9119,10 +9056,6 @@ require-uncached@^1.0.3:
caller-path "^0.1.0"
resolve-from "^1.0.0"

reselect@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/reselect/-/reselect-4.0.0.tgz#f2529830e5d3d0e021408b246a206ef4ea4437f7"

resize-observer-lite@0.2.3:
version "0.2.3"
resolved "https://registry.yarnpkg.com/resize-observer-lite/-/resize-observer-lite-0.2.3.tgz#b557f378e2ce9b9aab1dc71a91047bd7ed1d8915"
Expand Down Expand Up @@ -9178,7 +9111,7 @@ resolve@^1.12.0:
dependencies:
path-parse "^1.0.6"

resolve@^1.13.1, resolve@^1.17.0:
resolve@^1.17.0:
version "1.17.0"
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.17.0.tgz#b25941b54968231cc2d1bb76a79cb7f2c0bf8444"
dependencies:
Expand Down

0 comments on commit a8bc67c

Please sign in to comment.