Skip to content

Commit

Permalink
fix(strip): prepare for Rollup 3
Browse files Browse the repository at this point in the history
BREAKING CHANGES: Requires Node 14
  • Loading branch information
lukastaegert committed Oct 10, 2022
1 parent bb4a21a commit d4cfa0e
Show file tree
Hide file tree
Showing 8 changed files with 148 additions and 143 deletions.
2 changes: 1 addition & 1 deletion packages/strip/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

## Requirements

This plugin requires an [LTS](https://github.com/nodejs/Release) Node version (v8.0.0+) and Rollup v1.20.0+.
This plugin requires an [LTS](https://github.com/nodejs/Release) Node version (v14.0.0+) and Rollup v1.20.0+.

## Install

Expand Down
33 changes: 22 additions & 11 deletions packages/strip/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,16 @@
"author": "Rich Harris",
"homepage": "https://github.com/rollup/plugins/tree/master/packages/strip#readme",
"bugs": "https://github.com/rollup/plugins/issues",
"main": "dist/index.js",
"module": "dist/index.es.js",
"main": "./dist/cjs/index.js",
"module": "./dist/es/index.js",
"exports": {
"types": "./types/index.d.ts",
"import": "./dist/es/index.js",
"default": "./dist/cjs/index.js"
},
"engines": {
"node": ">=14.0.0"
},
"scripts": {
"build": "rollup -c",
"ci:coverage": "nyc pnpm test && nyc report --reporter=text-lcov > coverage.lcov",
Expand All @@ -28,6 +36,7 @@
},
"files": [
"dist",
"!dist/**/*.map",
"types"
],
"keywords": [
Expand All @@ -37,22 +46,24 @@
"javascript"
],
"peerDependencies": {
"rollup": "^1.20.0 || ^2.0.0"
"rollup": "^1.20.0||^2.0.0||^3.0.0"
},
"peerDependenciesMeta": {
"rollup": {
"optional": true
}
},
"dependencies": {
"@rollup/pluginutils": "^3.1.0",
"estree-walker": "^2.0.1",
"magic-string": "^0.25.7"
"@rollup/pluginutils": "^4.2.1",
"estree-walker": "^2.0.2",
"magic-string": "^0.26.4"
},
"devDependencies": {
"acorn": "^7.3.1",
"rollup": "^2.67.3"
"acorn": "^8.8.0",
"rollup": "^3.0.0-7"
},
"types": "./types/index.d.ts",
"ava": {
"babel": {
"compileEnhancements": false
},
"files": [
"!**/fixtures/**",
"!**/helpers/**",
Expand Down
10 changes: 0 additions & 10 deletions packages/strip/rollup.config.js

This file was deleted.

11 changes: 11 additions & 0 deletions packages/strip/rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { readFileSync } from 'fs';

import { createConfig } from '../../shared/rollup.config.mjs';

export default {
...createConfig({
pkg: JSON.parse(readFileSync(new URL('./package.json', import.meta.url), 'utf8'))
}),
input: 'src/index.js',
plugins: []
};
Loading

0 comments on commit d4cfa0e

Please sign in to comment.