Skip to content

Commit c84de99

Browse files
patak-devbluwy
andauthored
feat: rollup 3 (#9870)
Co-authored-by: bluwy <[email protected]>
1 parent 7a1c968 commit c84de99

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
"prompts": "^2.4.2",
8080
"resolve": "^1.22.1",
8181
"rimraf": "^3.0.2",
82-
"rollup": "^2.79.1",
82+
"rollup": "~3.2.3",
8383
"rollup-plugin-license": "^2.9.0",
8484
"semver": "^7.3.8",
8585
"simple-git-hooks": "^2.8.1",

packages/plugin-vue/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"@jridgewell/gen-mapping": "^0.3.2",
4343
"@jridgewell/trace-mapping": "^0.3.17",
4444
"debug": "^4.3.4",
45-
"rollup": "^2.79.1",
45+
"rollup": "~3.2.3",
4646
"slash": "^5.0.0",
4747
"source-map": "^0.6.1",
4848
"vite": "workspace:*",

playground/vitestSetup.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ export async function notifyRebuildComplete(
306306
await new Promise<void>((resolve) => {
307307
resolveFn = resolve
308308
})
309-
return watcher.removeListener('event', callback)
309+
return watcher.off('event', callback)
310310
}
311311

312312
function createInMemoryLogger(logs: string[]): Logger {

scripts/rollupLicensePlugin.mjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import path from 'node:path'
55
import license from 'rollup-plugin-license'
66
import colors from 'picocolors'
77
import fg from 'fast-glob'
8-
import { sync as resolve } from 'resolve'
8+
import resolve from 'resolve'
99

1010
/**
1111
* @param {string} licenseFilePath
@@ -73,7 +73,7 @@ function licensePlugin(licenseFilePath, licenseTitle, packageName) {
7373
if (!licenseText && name) {
7474
try {
7575
const pkgDir = path.dirname(
76-
resolve(path.join(name, 'package.json'), {
76+
resolve.sync(path.join(name, 'package.json'), {
7777
preserveSymlinks: false
7878
})
7979
)

0 commit comments

Comments
 (0)