rolldown-plugin-dts 0.14.0 → 0.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -1
- package/dist/index.js +2 -2
- package/dist/tsc/worker.js +1 -1
- package/dist/{tsc-DkRb5DrU.js → tsc-Czx4mPt7.js} +2 -1
- package/dist/tsc-HJvJZNLs.js +3 -0
- package/package.json +2 -2
- package/dist/tsc-qM2loyiG.js +0 -3
package/README.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RE_CSS, RE_DTS, RE_DTS_MAP, RE_JS, RE_NODE_MODULES, RE_TS, RE_VUE, filename_dts_to, filename_js_to_dts, filename_ts_to_dts } from "./filename-Dpr2dKWZ.js";
|
|
2
|
-
import { createContext } from "./tsc-
|
|
2
|
+
import { createContext } from "./tsc-Czx4mPt7.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import Debug from "debug";
|
|
5
5
|
import _generate from "@babel/generator";
|
|
@@ -669,7 +669,7 @@ function createGeneratePlugin({ tsconfig, tsconfigRaw, incremental, cwd, isolate
|
|
|
669
669
|
async buildStart(options) {
|
|
670
670
|
if (tsgo) tsgoDist = await runTsgo(cwd, tsconfig);
|
|
671
671
|
else if (!parallel && (!isolatedDeclarations || vue)) {
|
|
672
|
-
tscModule = await import("./tsc-
|
|
672
|
+
tscModule = await import("./tsc-HJvJZNLs.js");
|
|
673
673
|
if (newContext) tscContext = tscModule.createContext();
|
|
674
674
|
}
|
|
675
675
|
if (!Array.isArray(options.input)) for (const [name, id] of Object.entries(options.input)) {
|
package/dist/tsc/worker.js
CHANGED
|
@@ -79,9 +79,10 @@ function createVueProgramFactory(ts$1) {
|
|
|
79
79
|
return createVueProgram = proxyCreateProgram(ts$1, ts$1.createProgram, (ts$2, options) => {
|
|
80
80
|
const $rootDir = options.options.$rootDir;
|
|
81
81
|
const $configRaw = options.options.$configRaw;
|
|
82
|
-
const resolver = new vue.CompilerOptionsResolver();
|
|
82
|
+
const resolver = new vue.CompilerOptionsResolver(ts$2.sys.fileExists);
|
|
83
83
|
resolver.addConfig($configRaw?.vueCompilerOptions ?? {}, $rootDir);
|
|
84
84
|
const vueOptions = resolver.build();
|
|
85
|
+
vue.writeGlobalTypes(vueOptions, ts$2.sys.writeFile);
|
|
85
86
|
const vueLanguagePlugin = vue.createVueLanguagePlugin(ts$2, options.options, vueOptions, (id) => id);
|
|
86
87
|
return { languagePlugins: [vueLanguagePlugin] };
|
|
87
88
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rolldown-plugin-dts",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.1",
|
|
4
4
|
"description": "A Rolldown plugin to bundle dts files",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@typescript/native-preview": ">=7.0.0-dev.20250601.1",
|
|
33
33
|
"rolldown": "^1.0.0-beta.9",
|
|
34
34
|
"typescript": "^5.0.0",
|
|
35
|
-
"vue-tsc": "
|
|
35
|
+
"vue-tsc": "~3.0.3"
|
|
36
36
|
},
|
|
37
37
|
"peerDependenciesMeta": {
|
|
38
38
|
"@typescript/native-preview": {
|
package/dist/tsc-qM2loyiG.js
DELETED