Skip to content

Commit 40dcd32

Browse files
committed
Removed dependency on deprecated @rollup/plugin-commonjs.
1 parent c6578e3 commit 40dcd32

File tree

3 files changed

+12
-94
lines changed

3 files changed

+12
-94
lines changed

package-lock.json

+9-82
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
"prepack": "npx clear-package-json package.json --output ./package.json"
5353
},
5454
"devDependencies": {
55-
"@rollup/plugin-commonjs": "^19.0.0",
5655
"@rollup/plugin-json": "^4.1.0",
5756
"@rollup/plugin-node-resolve": "^13.0.0",
5857
"@rollup/plugin-terser": "^0.4.0",
@@ -75,7 +74,6 @@
7574
"prettier-eslint": "^12.0.0",
7675
"rimraf": "^3.0.2",
7776
"rollup": "^2.50.5",
78-
"rollup-plugin-sourcemaps": "^0.6.3",
7977
"rollup-plugin-typescript2": "^0.34.1",
8078
"shelljs": "^0.8.4",
8179
"ts-jest": "^29.0.5",

rollup.config.ts

+3-10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
import resolve from '@rollup/plugin-node-resolve';
2-
import commonjs from '@rollup/plugin-commonjs';
3-
import sourceMaps from 'rollup-plugin-sourcemaps';
42
import typescript from 'rollup-plugin-typescript2';
53
import json from '@rollup/plugin-json';
64
import terser from '@rollup/plugin-terser';
@@ -28,16 +26,11 @@ export default {
2826
// Compile TypeScript files
2927
typescript({
3028
tsconfig: './tsconfig.json',
31-
useTsconfigDeclarationDir: true,
29+
useTsconfigDeclarationDir: true
3230
}),
33-
// Allow bundling cjs modules (unlike webpack, rollup doesn't understand cjs)
34-
commonjs({ extensions: ['.js', '.ts'] }),
3531
// Allow node_modules resolution, so you can use 'external' to control
3632
// which external modules to include in the bundle
3733
// https://github.com/rollup/rollup-plugin-node-resolve#usage
38-
resolve(),
39-
40-
// Resolve source maps to the original source
41-
sourceMaps(),
42-
],
34+
resolve()
35+
]
4336
}

0 commit comments

Comments
 (0)