diff --git a/package-lock.json b/package-lock.json index 339e77b8..38f95fd0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -67,7 +67,7 @@ "remark-lint-no-dead-urls": "1.1.0", "remark-validate-links": "12.1.1", "resolve.exports": "2.0.2", - "rollup-plugin-dts": "5.3.0", + "rollup-plugin-dts": "6.0.0", "rollup-plugin-svelte": "7.1.5", "rollup-plugin-vue": "6.0.0", "sass": "1.62.1", @@ -15259,9 +15259,9 @@ } }, "node_modules/rollup": { - "version": "3.24.0", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.24.0.tgz", - "integrity": "sha512-OgraHOIg2YpHQTjl0/ymWfFNBEyPucB7lmhXrQUh38qNOegxLapSPFs9sNr0qKR75awW41D93XafoR2QfhBdUQ==", + "version": "3.28.1", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.28.1.tgz", + "integrity": "sha512-R9OMQmIHJm9znrU3m3cpE8uhN0fGdXiawME7aZIpQqvpS/85+Vt1Hq1/yVIcYfOmaQiHjvXkQAoJukvLpau6Yw==", "bin": { "rollup": "dist/bin/rollup" }, @@ -15274,25 +15274,25 @@ } }, "node_modules/rollup-plugin-dts": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/rollup-plugin-dts/-/rollup-plugin-dts-5.3.0.tgz", - "integrity": "sha512-8FXp0ZkyZj1iU5klkIJYLjIq/YZSwBoERu33QBDxm/1yw5UU4txrEtcmMkrq+ZiKu3Q4qvPCNqc3ovX6rjqzbQ==", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/rollup-plugin-dts/-/rollup-plugin-dts-6.0.0.tgz", + "integrity": "sha512-A996xSZDAqnx/KfFttzC8mDEuyMjsRpiLCrlGc8effhK8KhE3AG0g1woQiITgFc5HSE8HWU7ccR9CiQ3vXgUlQ==", "dev": true, "dependencies": { - "magic-string": "^0.30.0" + "magic-string": "^0.30.2" }, "engines": { - "node": ">=v14" + "node": ">=v18.17.1" }, "funding": { "url": "https://github.com/sponsors/Swatinem" }, "optionalDependencies": { - "@babel/code-frame": "^7.18.6" + "@babel/code-frame": "^7.22.10" }, "peerDependencies": { - "rollup": "^3.0.0", - "typescript": "^4.1 || ^5.0" + "rollup": "^3.25.0", + "typescript": "^4.5 || ^5.0" } }, "node_modules/rollup-plugin-postcss": { diff --git a/package.json b/package.json index f6396ae6..5db57b51 100644 --- a/package.json +++ b/package.json @@ -62,7 +62,7 @@ "remark-lint-no-dead-urls": "1.1.0", "remark-validate-links": "12.1.1", "resolve.exports": "2.0.2", - "rollup-plugin-dts": "5.3.0", + "rollup-plugin-dts": "6.0.0", "rollup-plugin-svelte": "7.1.5", "rollup-plugin-vue": "6.0.0", "sass": "1.62.1", diff --git a/src/module-server/rollup-plugin-container.ts b/src/module-server/rollup-plugin-container.ts index 5f594895..e9f13196 100644 --- a/src/module-server/rollup-plugin-container.ts +++ b/src/module-server/rollup-plugin-container.ts @@ -71,7 +71,7 @@ import { Parser } from 'acorn'; import type { LoadResult, ResolveIdResult, - PluginContext as RollupPluginContext, + TransformPluginContext as RollupPluginContext, } from 'rollup'; import { combineSourceMaps } from './combine-source-maps.js'; @@ -103,6 +103,9 @@ type PluginContext = Omit< | 'moduleIds' | 'resolveId' | 'load' + | 'debug' + | 'getCombinedSourcemap' + | 'info' >; export const createPluginContainer = (plugins: Plugin[]) => {