Skip to content

Commit

Permalink
Update to Rollup 2.
Browse files Browse the repository at this point in the history
 - Update Rollup to 2.28.2. Fixes jaredpalmer#821, closes jaredpalmer#545
 - Update @rollup/plugin-commonjs. Upgrading this required Rollup 2 without any note in the changelog.  Closes jaredpalmer#727
 - Update @rollup/plugin-json to 4.1.0. v4.0.3 is the first to add Rollup 2 in the peerDep range. Older versions are forward-compatible but will produce a peerDep warning
 - Update @rollup/plugin-replace to 2.3.3. v2.3.2 is the first version to add Rollup 2 in the peerDep range.
 - Update rollup-plugin-terser to v7. v6 requires rollup 2 and Node 10+. v7 introduces Terser 5, requires Node >= 10 and supports some new JS syntax. fixes jaredpalmer#803, #fixes 797, closes jaredpalmer#731
 - Update rollup-plugin-postcss to 3.1. Closes jaredpalmer#693.
 - Remove sourcemap option from terser rollup plugin config, as of rollup-plugin-terser v6.0, it’s inferred automatically from Rollup’s output.source config.
  • Loading branch information
ludofischer authored and aladdin-add committed Aug 30, 2021
1 parent 92e4de8 commit cc38354
Show file tree
Hide file tree
Showing 4 changed files with 638 additions and 539 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@
"@babel/preset-env": "^7.11.0",
"@babel/traverse": "^7.11.5",
"@rollup/plugin-babel": "^5.1.0",
"@rollup/plugin-commonjs": "^11.0.0",
"@rollup/plugin-json": "^4.0.0",
"@rollup/plugin-commonjs": "^15.1.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^9.0.0",
"@rollup/plugin-replace": "^2.2.1",
"@rollup/plugin-replace": "^2.3.3",
"@types/jest": "^26.0.24",
"@typescript-eslint/eslint-plugin": "^4.28.3",
"@typescript-eslint/parser": "^4.28.3",
Expand Down Expand Up @@ -84,9 +84,9 @@
"prettier": "^1.19.1",
"progress-estimator": "^0.3.0",
"regenerator-runtime": "^0.13.7",
"rollup": "^1.32.1",
"rollup": "^2.28.2",
"rollup-plugin-sourcemaps": "^0.6.2",
"rollup-plugin-terser": "^5.1.2",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.27.3",
"sade": "^1.4.2",
"semver": "^7.1.1",
Expand Down Expand Up @@ -118,7 +118,7 @@
"react-dom": "^16.13.0",
"react-is": "^16.13.0",
"release-it": "^14.11.5",
"rollup-plugin-postcss": "^2.5.0",
"rollup-plugin-postcss": "^3.1.8",
"styled-components": "^5.0.1",
"tiny-invariant": "^1.1.0",
"tiny-warning": "^1.0.3"
Expand Down
2 changes: 1 addition & 1 deletion src/createEslintConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export async function createEslintConfig({
{ flag: 'wx' }
);
} catch (e) {
if (e.code === 'EEXIST') {
if ((e as NodeJS.ErrnoException).code === 'EEXIST') {
console.error(
'Error trying to save the Eslint configuration file:',
`${file} already exists.`
Expand Down
1 change: 0 additions & 1 deletion src/createRollupConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ export async function createRollupConfig(
sourceMaps(),
shouldMinify &&
terser({
sourcemap: true,
output: { comments: false },
compress: {
keep_infinity: true,
Expand Down
Loading

0 comments on commit cc38354

Please sign in to comment.