Skip to content

Commit

Permalink
Upgrading rollup and related plugins. Updating to recommended modern …
Browse files Browse the repository at this point in the history
…browserslist config in babel.config.json e.g. previous chrome 67 and edge 17 are 5 years old, ie11 is just ... ugh
  • Loading branch information
smallsaucepan committed Dec 17, 2023
1 parent 7234245 commit 1a9e240
Show file tree
Hide file tree
Showing 5 changed files with 132 additions and 150 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
"npm-run-all": "^4.1.5",
"prettier": "^3.0.3",
"progress": "^2.0.3",
"rollup": "^2.79.1",
"ts-node": "^9.0.0",
"tsup": "^8.0.1",
"tsx": "^4.6.2",
Expand Down
16 changes: 2 additions & 14 deletions packages/turf/babel.config.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,4 @@
{
"presets": [
[
"@babel/preset-env",
{
"targets": {
"edge": "17",
"firefox": "60",
"chrome": "67",
"safari": "11.1",
"ie": "11"
}
}
]
]
"presets": ["@babel/preset-env"],
"targets": "> 0.25%, last 2 versions, not dead"
}
8 changes: 4 additions & 4 deletions packages/turf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,15 @@
"devDependencies": {
"@babel/core": "^7.23.2",
"@babel/preset-env": "^7.23.2",
"@rollup/plugin-babel": "^5.3.1",
"@rollup/plugin-commonjs": "^17.1.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-terser": "^0.4.4",
"@types/tape": "^4.2.32",
"camelcase": "^8.0.0",
"documentation": "^13.2.5",
"glob": "^10.3.10",
"rollup": "^2.79.1",
"rollup-plugin-terser": "^7.0.2",
"tape": "^5.7.2",
"tsup": "^8.0.1",
"tsx": "^4.6.2",
Expand Down
11 changes: 8 additions & 3 deletions packages/turf/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import node from "@rollup/plugin-node-resolve";
import nodeResolve from "@rollup/plugin-node-resolve";
import commonjs from "@rollup/plugin-commonjs";
import { terser } from "rollup-plugin-terser";
import terser from "@rollup/plugin-terser";
import { babel } from "@rollup/plugin-babel";

const pckg = require("./package.json");
Expand All @@ -10,6 +10,11 @@ export default [
{
input,
output: [{ file: pckg.browser, format: "umd", name: "turf" }],
plugins: [commonjs(), node(), babel({ babelHelpers: "bundled" }), terser()],
plugins: [
commonjs(),
nodeResolve(),
babel({ babelHelpers: "bundled" }),
terser(),
],
},
];
Loading

0 comments on commit 1a9e240

Please sign in to comment.