Skip to content

Commit fbbb92e

Browse files
committed
build: update rollup to v4
1 parent cc734c3 commit fbbb92e

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"src/"
3333
],
3434
"scripts": {
35-
"build": "rollup -c --bundleConfigAsCjs",
35+
"build": "rollup --config",
3636
"test": "jest --coverage",
3737
"test:clear": "jest --clearCache",
3838
"test:update": "jest --coverage --updateSnapshot"
@@ -51,7 +51,7 @@
5151
"jest-canvas-mock": "^2.5.1",
5252
"jest-environment-jsdom": "^29.5.0",
5353
"lodash": "^4.17.21",
54-
"rollup": "^3.25.0",
54+
"rollup": "^4.2.0",
5555
"rollup-plugin-peer-deps-external": "^2.2.4",
5656
"rollup-plugin-vue": "^6.0.0",
5757
"ts-jest": "^29.1.0",

rollup.config.js renamed to rollup.config.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ import typescript from '@rollup/plugin-typescript'
33
import external from 'rollup-plugin-peer-deps-external'
44
import resolve from '@rollup/plugin-node-resolve'
55
import vue from 'rollup-plugin-vue'
6-
import pkg from './package.json'
6+
import { readFileSync } from 'node:fs'
7+
8+
const pkg = JSON.parse(readFileSync(new URL('package.json', import.meta.url)))
79

810
const plugins = [
911
external(),

tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
"noImplicitThis": true,
1717
"noImplicitAny": true,
1818
"strictNullChecks": true,
19-
"suppressImplicitAnyIndexErrors": true,
2019
"noUnusedLocals": true,
2120
"noUnusedParameters": true,
2221
"esModuleInterop": true,

0 commit comments

Comments
 (0)