Skip to content

Commit

Permalink
🚀 Better bundling
Browse files Browse the repository at this point in the history
  • Loading branch information
notsapinho committed Jun 16, 2022
1 parent 50b7444 commit 6bf18d3
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 18 deletions.
21 changes: 11 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "puppeteer-extra-plugin-recaptcha-capmonster",
"version": "1.0.3",
"version": "1.0.4",
"description": "A puppeteer-extra plugin that implements CapMonster support for puppeteer-extra-plugin-recaptcha.",
"types": "dist/index.d.ts",
"main": "dist/index.cjs.js",
Expand Down Expand Up @@ -32,21 +32,22 @@
"author": "notsapinho",
"license": "MIT",
"devDependencies": {
"@rollup/plugin-commonjs": "^22.0.0",
"@rollup/plugin-node-resolve": "^13.3.0",
"@rollup/plugin-typescript": "^8.3.3",
"@types/debug": "^4.1.7",
"@types/node": "^16.11.11",
"ts-node": "^10.4.0",
"typescript": "^4.5.2",
"rollup": "^1.27.5",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup": "^2.75.6",
"rollup-plugin-sourcemaps": "^0.4.2",
"rollup-plugin-typescript2": "^0.25.2"
"ts-node": "^10.8.1",
"tslib": "^2.4.0",
"typescript": "^4.7.3"
},
"dependencies": {
"axios": "^0.26.0",
"debug": "^4.3.3"
"axios": "^0.27.2",
"debug": "^4.3.4"
},
"engines": {
"node": ">=9.11.2"
"node": ">=12.0.0"
}
}
10 changes: 5 additions & 5 deletions rollup.config.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import commonjs from "rollup-plugin-commonjs";
import resolve from "rollup-plugin-node-resolve";
import commonjs from "@rollup/plugin-commonjs";
import resolve from "@rollup/plugin-node-resolve";
import sourceMaps from "rollup-plugin-sourcemaps";
import typescript from "rollup-plugin-typescript2";
import typescript from "@rollup/plugin-typescript";

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

const entryFile = "index";
const banner = `
/*!
* ${pkg.name} v${pkg.version} by ${pkg.author}
* ${pkg.homepage || `https://github.com/${pkg.repository}`}
* ${pkg.homepage || `https://github.com/${pkg.repository.url}`}
* @license ${pkg.license}
*/
`.trim();
Expand Down Expand Up @@ -45,7 +45,7 @@ export default {
},
plugins: [
// Compile TypeScript files
typescript({ useTsconfigDeclarationDir: true }),
typescript(),
// Allow bundling cjs modules (unlike webpack, rollup doesn't understand cjs)
commonjs(),
// Allow node_modules resolution, so you can use 'external' to control
Expand Down
6 changes: 3 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"allowSyntheticDefaultImports": true,
"baseUrl": ".",
"outDir": "dist",
"lib": ["ES2020"],
"target": "ES2020",
"module": "ES2015",
"lib": ["ES2015", "ES2016", "ES2017"],
"target": "ES2019",
"module": "ESNEXT",
"moduleResolution": "node",
"alwaysStrict": true,
"sourceMap": true,
Expand Down

0 comments on commit 6bf18d3

Please sign in to comment.