Skip to content

Commit 6bf18d3

Browse files
committed
🚀 Better bundling
1 parent 50b7444 commit 6bf18d3

File tree

3 files changed

+19
-18
lines changed

3 files changed

+19
-18
lines changed

package.json

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "puppeteer-extra-plugin-recaptcha-capmonster",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"description": "A puppeteer-extra plugin that implements CapMonster support for puppeteer-extra-plugin-recaptcha.",
55
"types": "dist/index.d.ts",
66
"main": "dist/index.cjs.js",
@@ -32,21 +32,22 @@
3232
"author": "notsapinho",
3333
"license": "MIT",
3434
"devDependencies": {
35+
"@rollup/plugin-commonjs": "^22.0.0",
36+
"@rollup/plugin-node-resolve": "^13.3.0",
37+
"@rollup/plugin-typescript": "^8.3.3",
3538
"@types/debug": "^4.1.7",
3639
"@types/node": "^16.11.11",
37-
"ts-node": "^10.4.0",
38-
"typescript": "^4.5.2",
39-
"rollup": "^1.27.5",
40-
"rollup-plugin-commonjs": "^10.1.0",
41-
"rollup-plugin-node-resolve": "^5.2.0",
40+
"rollup": "^2.75.6",
4241
"rollup-plugin-sourcemaps": "^0.4.2",
43-
"rollup-plugin-typescript2": "^0.25.2"
42+
"ts-node": "^10.8.1",
43+
"tslib": "^2.4.0",
44+
"typescript": "^4.7.3"
4445
},
4546
"dependencies": {
46-
"axios": "^0.26.0",
47-
"debug": "^4.3.3"
47+
"axios": "^0.27.2",
48+
"debug": "^4.3.4"
4849
},
4950
"engines": {
50-
"node": ">=9.11.2"
51+
"node": ">=12.0.0"
5152
}
5253
}

rollup.config.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
import commonjs from "rollup-plugin-commonjs";
2-
import resolve from "rollup-plugin-node-resolve";
1+
import commonjs from "@rollup/plugin-commonjs";
2+
import resolve from "@rollup/plugin-node-resolve";
33
import sourceMaps from "rollup-plugin-sourcemaps";
4-
import typescript from "rollup-plugin-typescript2";
4+
import typescript from "@rollup/plugin-typescript";
55

66
const pkg = require("./package.json");
77

88
const entryFile = "index";
99
const banner = `
1010
/*!
1111
* ${pkg.name} v${pkg.version} by ${pkg.author}
12-
* ${pkg.homepage || `https://github.com/${pkg.repository}`}
12+
* ${pkg.homepage || `https://github.com/${pkg.repository.url}`}
1313
* @license ${pkg.license}
1414
*/
1515
`.trim();
@@ -45,7 +45,7 @@ export default {
4545
},
4646
plugins: [
4747
// Compile TypeScript files
48-
typescript({ useTsconfigDeclarationDir: true }),
48+
typescript(),
4949
// Allow bundling cjs modules (unlike webpack, rollup doesn't understand cjs)
5050
commonjs(),
5151
// Allow node_modules resolution, so you can use 'external' to control

tsconfig.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
"allowSyntheticDefaultImports": true,
44
"baseUrl": ".",
55
"outDir": "dist",
6-
"lib": ["ES2020"],
7-
"target": "ES2020",
8-
"module": "ES2015",
6+
"lib": ["ES2015", "ES2016", "ES2017"],
7+
"target": "ES2019",
8+
"module": "ESNEXT",
99
"moduleResolution": "node",
1010
"alwaysStrict": true,
1111
"sourceMap": true,

0 commit comments

Comments
 (0)