Skip to content

Commit

Permalink
fix(react): remove prop types in production mode (#1331)
Browse files Browse the repository at this point in the history
  • Loading branch information
kvet authored Aug 22, 2018
1 parent 9634390 commit f0020c8
Show file tree
Hide file tree
Showing 21 changed files with 54 additions and 10 deletions.
5 changes: 4 additions & 1 deletion packages/dx-react-chart-bootstrap4/.babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
"react"
],
"plugins": [
"transform-object-rest-spread"
"transform-object-rest-spread",
["transform-react-remove-prop-types", {
"mode": "unsafe-wrap"
}]
],
"env": {
"test": {
Expand Down
1 change: 1 addition & 0 deletions packages/dx-react-chart-bootstrap4/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"babel-jest": "^23.4.2",
"babel-plugin-external-helpers": "^6.22.0",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-plugin-transform-react-remove-prop-types": "^0.4.14",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.7.0",
"babel-preset-react": "^6.24.1",
Expand Down
5 changes: 4 additions & 1 deletion packages/dx-react-chart-material-ui/.babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
"react"
],
"plugins": [
"transform-object-rest-spread"
"transform-object-rest-spread",
["transform-react-remove-prop-types", {
"mode": "unsafe-wrap"
}]
],
"env": {
"test": {
Expand Down
1 change: 1 addition & 0 deletions packages/dx-react-chart-material-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"babel-jest": "^23.4.2",
"babel-plugin-external-helpers": "^6.22.0",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-plugin-transform-react-remove-prop-types": "^0.4.14",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.7.0",
"babel-preset-react": "^6.24.1",
Expand Down
5 changes: 4 additions & 1 deletion packages/dx-react-chart/.babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
"react"
],
"plugins": [
"transform-object-rest-spread"
"transform-object-rest-spread",
["transform-react-remove-prop-types", {
"mode": "unsafe-wrap"
}]
],
"env": {
"test": {
Expand Down
1 change: 1 addition & 0 deletions packages/dx-react-chart/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"babel-jest": "^23.4.2",
"babel-plugin-external-helpers": "^6.22.0",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-plugin-transform-react-remove-prop-types": "^0.4.14",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.7.0",
"babel-preset-react": "^6.24.1",
Expand Down
5 changes: 4 additions & 1 deletion packages/dx-react-core/.babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
"react"
],
"plugins": [
"transform-object-rest-spread"
"transform-object-rest-spread",
["transform-react-remove-prop-types", {
"mode": "unsafe-wrap"
}]
],
"env": {
"test": {
Expand Down
1 change: 1 addition & 0 deletions packages/dx-react-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"babel-jest": "^23.4.2",
"babel-plugin-external-helpers": "^6.22.0",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-plugin-transform-react-remove-prop-types": "^0.4.14",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.7.0",
"babel-preset-react": "^6.24.1",
Expand Down
5 changes: 4 additions & 1 deletion packages/dx-react-grid-bootstrap3/.babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
"react"
],
"plugins": [
"transform-object-rest-spread"
"transform-object-rest-spread",
["transform-react-remove-prop-types", {
"mode": "unsafe-wrap"
}]
],
"env": {
"test": {
Expand Down
1 change: 1 addition & 0 deletions packages/dx-react-grid-bootstrap3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"babel-jest": "^23.4.2",
"babel-plugin-external-helpers": "^6.22.0",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-plugin-transform-react-remove-prop-types": "^0.4.14",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.7.0",
"babel-preset-react": "^6.24.1",
Expand Down
5 changes: 4 additions & 1 deletion packages/dx-react-grid-bootstrap4/.babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
"react"
],
"plugins": [
"transform-object-rest-spread"
"transform-object-rest-spread",
["transform-react-remove-prop-types", {
"mode": "unsafe-wrap"
}]
],
"env": {
"test": {
Expand Down
1 change: 1 addition & 0 deletions packages/dx-react-grid-bootstrap4/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"babel-jest": "^23.4.2",
"babel-plugin-external-helpers": "^6.22.0",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-plugin-transform-react-remove-prop-types": "^0.4.14",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.7.0",
"babel-preset-react": "^6.24.1",
Expand Down
5 changes: 4 additions & 1 deletion packages/dx-react-grid-material-ui/.babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
"react"
],
"plugins": [
"transform-object-rest-spread"
"transform-object-rest-spread",
["transform-react-remove-prop-types", {
"mode": "unsafe-wrap"
}]
],
"env": {
"test": {
Expand Down
1 change: 1 addition & 0 deletions packages/dx-react-grid-material-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"babel-jest": "^23.4.2",
"babel-plugin-external-helpers": "^6.22.0",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-plugin-transform-react-remove-prop-types": "^0.4.14",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.7.0",
"babel-preset-react": "^6.24.1",
Expand Down
5 changes: 4 additions & 1 deletion packages/dx-react-grid/.babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
"react"
],
"plugins": [
"transform-object-rest-spread"
"transform-object-rest-spread",
["transform-react-remove-prop-types", {
"mode": "unsafe-wrap"
}]
],
"env": {
"test": {
Expand Down
1 change: 1 addition & 0 deletions packages/dx-react-grid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"babel-jest": "^23.4.2",
"babel-plugin-external-helpers": "^6.22.0",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-plugin-transform-react-remove-prop-types": "^0.4.14",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.7.0",
"babel-preset-react": "^6.24.1",
Expand Down
5 changes: 4 additions & 1 deletion packages/dx-react-scheduler-material-ui/.babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
"react"
],
"plugins": [
"transform-object-rest-spread"
"transform-object-rest-spread",
["transform-react-remove-prop-types", {
"mode": "unsafe-wrap"
}]
],
"env": {
"test": {
Expand Down
1 change: 1 addition & 0 deletions packages/dx-react-scheduler-material-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"babel-jest": "^23.4.2",
"babel-plugin-external-helpers": "^6.22.0",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-plugin-transform-react-remove-prop-types": "^0.4.14",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.7.0",
"babel-preset-react": "^6.24.1",
Expand Down
5 changes: 4 additions & 1 deletion packages/dx-react-scheduler/.babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
"react"
],
"plugins": [
"transform-object-rest-spread"
"transform-object-rest-spread",
["transform-react-remove-prop-types", {
"mode": "unsafe-wrap"
}]
],
"env": {
"test": {
Expand Down
1 change: 1 addition & 0 deletions packages/dx-react-scheduler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"babel-jest": "^23.4.2",
"babel-plugin-external-helpers": "^6.22.0",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-plugin-transform-react-remove-prop-types": "^0.4.14",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.7.0",
"babel-preset-react": "^6.24.1",
Expand Down
4 changes: 4 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1608,6 +1608,10 @@ babel-plugin-transform-react-jsx@^6.24.1:
babel-plugin-syntax-jsx "^6.8.0"
babel-runtime "^6.22.0"

babel-plugin-transform-react-remove-prop-types@^0.4.14:
version "0.4.14"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-remove-prop-types/-/babel-plugin-transform-react-remove-prop-types-0.4.14.tgz#d3bf0ab39bd491c6670e71abd8642d4e6caae919"

babel-plugin-transform-regenerator@^6.22.0:
version "6.26.0"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.26.0.tgz#e0703696fbde27f0a3efcacf8b4dca2f7b3a8f2f"
Expand Down

0 comments on commit f0020c8

Please sign in to comment.