rolldown-plugin-dts 0.14.0 → 0.14.2

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 CHANGED
@@ -35,7 +35,6 @@ You can find an example in [here](./rolldown.config.ts).
35
35
  ## Options
36
36
 
37
37
  Configuration options for the plugin.
38
- Certainly! Here’s your documentation with simplified section titles (just the option name, no type annotation):
39
38
 
40
39
  ---
41
40
 
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-DkRb5DrU.js";
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";
@@ -310,7 +310,7 @@ function createFakeJsPlugin({ dtsInput, sourcemap }) {
310
310
  const elements = [
311
311
  t.numericLiteral(0),
312
312
  ...deps.map((dep) => t.arrowFunctionExpression([], dep)),
313
- ...sideEffect ? [t.callExpression(t.identifier("sideEffect"), [])] : []
313
+ ...sideEffect ? [t.callExpression(t.identifier("sideEffect"), [bindings[0]])] : []
314
314
  ];
315
315
  const runtime = t.arrayExpression(elements);
316
316
  if (decl !== stmt) {
@@ -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-qM2loyiG.js");
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)) {
@@ -1,4 +1,4 @@
1
- import { tscEmit } from "../tsc-DkRb5DrU.js";
1
+ import { tscEmit } from "../tsc-Czx4mPt7.js";
2
2
  import { createBirpc } from "birpc";
3
3
  import process from "node:process";
4
4
 
@@ -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
  });
@@ -0,0 +1,3 @@
1
+ import { createContext, tscEmit } from "./tsc-Czx4mPt7.js";
2
+
3
+ export { createContext, tscEmit };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rolldown-plugin-dts",
3
- "version": "0.14.0",
3
+ "version": "0.14.2",
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": "^2.2.0 || ^3.0.0"
35
+ "vue-tsc": "~3.0.3"
36
36
  },
37
37
  "peerDependenciesMeta": {
38
38
  "@typescript/native-preview": {
@@ -48,7 +48,7 @@
48
48
  "dependencies": {
49
49
  "@babel/generator": "^7.28.0",
50
50
  "@babel/parser": "^7.28.0",
51
- "@babel/types": "^7.28.1",
51
+ "@babel/types": "^7.28.2",
52
52
  "ast-kit": "^2.1.1",
53
53
  "birpc": "^2.5.0",
54
54
  "debug": "^4.4.1",
@@ -56,29 +56,29 @@
56
56
  "get-tsconfig": "^4.10.1"
57
57
  },
58
58
  "devDependencies": {
59
- "@sxzz/eslint-config": "^7.0.6",
59
+ "@sxzz/eslint-config": "^7.1.0",
60
60
  "@sxzz/prettier-config": "^2.2.3",
61
61
  "@sxzz/test-utils": "^0.5.7",
62
62
  "@types/babel__generator": "^7.27.0",
63
63
  "@types/debug": "^4.1.12",
64
- "@types/node": "^24.0.14",
65
- "@typescript/native-preview": "7.0.0-dev.20250718.1",
66
- "@volar/typescript": "^2.4.20",
67
- "@vue/language-core": "^3.0.3",
68
- "bumpp": "^10.2.0",
64
+ "@types/node": "^24.1.0",
65
+ "@typescript/native-preview": "7.0.0-dev.20250728.1",
66
+ "@volar/typescript": "^2.4.22",
67
+ "@vue/language-core": "^3.0.4",
68
+ "bumpp": "^10.2.1",
69
69
  "diff": "^8.0.2",
70
- "eslint": "^9.31.0",
70
+ "eslint": "^9.32.0",
71
71
  "estree-walker": "^3.0.3",
72
72
  "prettier": "^3.6.2",
73
- "rolldown": "^1.0.0-beta.28",
73
+ "rolldown": "^1.0.0-beta.29",
74
74
  "rollup-plugin-dts": "^6.2.1",
75
75
  "tinyglobby": "^0.2.14",
76
- "tsdown": "^0.12.9",
76
+ "tsdown": "^0.13.0",
77
77
  "tsx": "^4.20.3",
78
78
  "typescript": "^5.8.3",
79
79
  "vitest": "^3.2.4",
80
- "vue": "^3.5.17",
81
- "vue-tsc": "^3.0.3"
80
+ "vue": "^3.5.18",
81
+ "vue-tsc": "^3.0.4"
82
82
  },
83
83
  "engines": {
84
84
  "node": ">=20.18.0"
@@ -1,3 +0,0 @@
1
- import { createContext, tscEmit } from "./tsc-DkRb5DrU.js";
2
-
3
- export { createContext, tscEmit };