Skip to content

Commit

Permalink
Merge pull request #631 from finos/babel-upgrade
Browse files Browse the repository at this point in the history
Update Babel `preset-env`
  • Loading branch information
texodus authored Jun 25, 2019
2 parents 02d71f1 + da10682 commit b14bd26
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 73 deletions.
21 changes: 9 additions & 12 deletions packages/perspective-cli/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,20 @@ module.exports = {
[
"@babel/preset-env",
{
targets: {
chrome: "57",
node: "8",
ios: "11",
safari: "11",
edge: "16",
firefox: "52"
},
modules: false,
useBuiltIns: "usage",
corejs: 2
}
]
],
sourceType: "unambiguous",
plugins: [
"lodash",
"@babel/transform-runtime",
["@babel/plugin-proposal-decorators", {legacy: true}],
"transform-custom-element-classes",
[
"@babel/plugin-transform-for-of",
{
loose: true
}
]
]
plugins: ["lodash", ["@babel/plugin-proposal-decorators", {legacy: true}], "transform-custom-element-classes"]
};
21 changes: 9 additions & 12 deletions packages/perspective-viewer-d3fc/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,20 @@ module.exports = {
[
"@babel/preset-env",
{
targets: {
chrome: "57",
node: "8",
ios: "11",
safari: "11",
edge: "16",
firefox: "52"
},
modules: false,
useBuiltIns: "usage",
corejs: 2
}
]
],
sourceType: "unambiguous",
plugins: [
"lodash",
"@babel/transform-runtime",
["@babel/plugin-proposal-decorators", {legacy: true}],
"transform-custom-element-classes",
[
"@babel/plugin-transform-for-of",
{
loose: true
}
]
]
plugins: ["lodash", ["@babel/plugin-proposal-decorators", {legacy: true}], "transform-custom-element-classes"]
};
21 changes: 9 additions & 12 deletions packages/perspective-viewer-highcharts/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,20 @@ module.exports = {
[
"@babel/preset-env",
{
targets: {
chrome: "57",
node: "8",
ios: "11",
safari: "11",
edge: "16",
firefox: "52"
},
modules: false,
useBuiltIns: "usage",
corejs: 2
}
]
],
sourceType: "unambiguous",
plugins: [
"lodash",
"@babel/transform-runtime",
["@babel/plugin-proposal-decorators", {legacy: true}],
"transform-custom-element-classes",
[
"@babel/plugin-transform-for-of",
{
loose: true
}
]
]
plugins: ["lodash", ["@babel/plugin-proposal-decorators", {legacy: true}], "transform-custom-element-classes"]
};
21 changes: 9 additions & 12 deletions packages/perspective-viewer-hypergrid/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,20 @@ module.exports = {
[
"@babel/preset-env",
{
targets: {
chrome: "57",
node: "8",
ios: "11",
safari: "11",
edge: "16",
firefox: "52"
},
modules: false,
useBuiltIns: "usage",
corejs: 2
}
]
],
sourceType: "unambiguous",
plugins: [
"lodash",
"@babel/transform-runtime",
["@babel/plugin-proposal-decorators", {legacy: true}],
"transform-custom-element-classes",
[
"@babel/plugin-transform-for-of",
{
loose: true
}
]
]
plugins: ["lodash", ["@babel/plugin-proposal-decorators", {legacy: true}], "transform-custom-element-classes"]
};
21 changes: 9 additions & 12 deletions packages/perspective-viewer/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,20 @@ module.exports = {
[
"@babel/preset-env",
{
targets: {
chrome: "57",
node: "8",
ios: "11",
safari: "11",
edge: "16",
firefox: "52"
},
modules: false,
useBuiltIns: "usage",
corejs: 2
}
]
],
sourceType: "unambiguous",
plugins: [
"lodash",
"@babel/transform-runtime",
["@babel/plugin-proposal-decorators", {legacy: true}],
"transform-custom-element-classes",
[
"@babel/plugin-transform-for-of",
{
loose: true
}
]
]
plugins: ["lodash", ["@babel/plugin-proposal-decorators", {legacy: true}], "transform-custom-element-classes"]
};
20 changes: 8 additions & 12 deletions packages/perspective/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,19 @@ module.exports = {
[
"@babel/preset-env",
{
targets: {
chrome: "70",
node: "8",
ios: "12",
safari: "12",
edge: "44"
},
modules: false,
useBuiltIns: "usage",
corejs: 2
}
]
],
sourceType: "unambiguous",
plugins: [
"lodash",
"@babel/transform-runtime",
["@babel/plugin-proposal-decorators", {legacy: true}],
"transform-custom-element-classes",
[
"@babel/plugin-transform-for-of",
{
loose: true
}
]
]
plugins: ["lodash", ["@babel/plugin-proposal-decorators", {legacy: true}], "transform-custom-element-classes"]
};
2 changes: 1 addition & 1 deletion packages/perspective/src/config/perspective.node.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const TerserPlugin = require("terser-webpack-plugin");
module.exports = Object.assign({}, common(), {
entry: "./cjs/js/perspective.node.js",
target: "node",
externals: [/^([a-z0-9]|\@(?!apache\-arrow)).*?(?!wasm)$/g],
externals: [/^[a-z0-9].*?$/g],
node: {
__dirname: false,
__filename: false
Expand Down

0 comments on commit b14bd26

Please sign in to comment.