rolldown-plugin-dts 0.16.12 → 0.17.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 CHANGED
@@ -190,6 +190,23 @@ To use this option, ensure that `@typescript/native-preview` is installed as a d
190
190
 
191
191
  `tsconfigRaw` and `compilerOptions` options will be ignored when this option is enabled.
192
192
 
193
+ ## Advanced Chunks Support
194
+
195
+ When using Rolldown's advanced chunking features such as `manualChunks` or `advancedChunks`, you should pay special attention to handling `.d.ts` files. The chunk names for `.d.ts` files must end with `.d`.
196
+
197
+ ```ts
198
+ export default {
199
+ advancedChunks: {
200
+ groups: [
201
+ // handle .d.ts files
202
+ { test: /foo.*\.d\.[cm]?ts$/, name: 'shared.d' },
203
+ // handle source files
204
+ { test: /foo/, name: 'shared' },
205
+ ],
206
+ },
207
+ }
208
+ ```
209
+
193
210
  ## Differences from `rollup-plugin-dts`
194
211
 
195
212
  ### Isolated Declarations
@@ -23,4 +23,4 @@ function invalidateContextFile(context, file) {
23
23
  const globalContext = createContext();
24
24
 
25
25
  //#endregion
26
- export { createContext, globalContext, invalidateContextFile };
26
+ export { globalContext as n, invalidateContextFile as r, createContext as t };
@@ -15,4 +15,4 @@ declare function createContext(): TscContext;
15
15
  declare function invalidateContextFile(context: TscContext, file: string): void;
16
16
  declare const globalContext: TscContext;
17
17
  //#endregion
18
- export { ParsedProject, SourceFileToProjectMap, TscContext, createContext, globalContext, invalidateContextFile };
18
+ export { globalContext as a, createContext as i, SourceFileToProjectMap as n, invalidateContextFile as o, TscContext as r, ParsedProject as t };
@@ -15,4 +15,4 @@ declare function filename_dts_to(id: string, ext: "js" | "ts"): string;
15
15
  declare function resolveTemplateFn(fn: string | ChunkFileNamesFunction, chunk: PreRenderedChunk): string;
16
16
  declare function replaceTemplateName(template: string, name: string): string;
17
17
  //#endregion
18
- export { RE_CSS, RE_DTS, RE_DTS_MAP, RE_JS, RE_JSON, RE_NODE_MODULES, RE_TS, RE_VUE, filename_dts_to, filename_js_to_dts, filename_to_dts, replaceTemplateName, resolveTemplateFn };
18
+ export { RE_JSON as a, RE_VUE as c, filename_to_dts as d, replaceTemplateName as f, RE_JS as i, filename_dts_to as l, RE_DTS as n, RE_NODE_MODULES as o, resolveTemplateFn as p, RE_DTS_MAP as r, RE_TS as s, RE_CSS as t, filename_js_to_dts as u };
@@ -24,4 +24,4 @@ function replaceTemplateName(template, name) {
24
24
  }
25
25
 
26
26
  //#endregion
27
- export { RE_CSS, RE_DTS, RE_DTS_MAP, RE_JS, RE_JSON, RE_NODE_MODULES, RE_TS, RE_VUE, filename_dts_to, filename_js_to_dts, filename_to_dts, replaceTemplateName, resolveTemplateFn };
27
+ export { RE_JSON as a, RE_VUE as c, filename_to_dts as d, replaceTemplateName as f, RE_JS as i, filename_dts_to as l, RE_DTS as n, RE_NODE_MODULES as o, resolveTemplateFn as p, RE_DTS_MAP as r, RE_TS as s, RE_CSS as t, filename_js_to_dts as u };
@@ -1,2 +1,2 @@
1
- import { RE_CSS, RE_DTS, RE_DTS_MAP, RE_JS, RE_JSON, RE_NODE_MODULES, RE_TS, RE_VUE, filename_dts_to, filename_js_to_dts, filename_to_dts, replaceTemplateName, resolveTemplateFn } from "./filename-D2iIogqp.js";
1
+ import { a as RE_JSON, c as RE_VUE, d as filename_to_dts, f as replaceTemplateName, i as RE_JS, l as filename_dts_to, n as RE_DTS, o as RE_NODE_MODULES, p as resolveTemplateFn, r as RE_DTS_MAP, s as RE_TS, t as RE_CSS, u as filename_js_to_dts } from "./filename-0s1tyon-.js";
2
2
  export { RE_CSS, RE_DTS, RE_DTS_MAP, RE_JS, RE_JSON, RE_NODE_MODULES, RE_TS, RE_VUE, filename_dts_to, filename_js_to_dts, filename_to_dts, replaceTemplateName, resolveTemplateFn };
package/dist/filename.js CHANGED
@@ -1,3 +1,3 @@
1
- import { RE_CSS, RE_DTS, RE_DTS_MAP, RE_JS, RE_JSON, RE_NODE_MODULES, RE_TS, RE_VUE, filename_dts_to, filename_js_to_dts, filename_to_dts, replaceTemplateName, resolveTemplateFn } from "./filename-DLc-rcyI.js";
1
+ import { a as RE_JSON, c as RE_VUE, d as filename_to_dts, f as replaceTemplateName, i as RE_JS, l as filename_dts_to, n as RE_DTS, o as RE_NODE_MODULES, p as resolveTemplateFn, r as RE_DTS_MAP, s as RE_TS, t as RE_CSS, u as filename_js_to_dts } from "./filename-DDjuEak0.js";
2
2
 
3
3
  export { RE_CSS, RE_DTS, RE_DTS_MAP, RE_JS, RE_JSON, RE_NODE_MODULES, RE_TS, RE_VUE, filename_dts_to, filename_js_to_dts, filename_to_dts, replaceTemplateName, resolveTemplateFn };
@@ -1,4 +1,4 @@
1
- import { TscContext } from "./context-DXNtAHtR.js";
1
+ import { r as TscContext } from "./context-Cf8MAZaX.js";
2
2
  import { TsConfigJson } from "get-tsconfig";
3
3
  import ts from "typescript";
4
4
  import { SourceMapInput } from "rolldown";
@@ -30,4 +30,4 @@ interface TscResult {
30
30
  //#region src/tsc/index.d.ts
31
31
  declare function tscEmit(tscOptions: TscOptions): TscResult;
32
32
  //#endregion
33
- export { type TscModule, type TscOptions, type TscResult, tscEmit };
33
+ export { TscResult as i, TscModule as n, TscOptions as r, tscEmit as t };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { RE_CSS, RE_DTS, RE_DTS_MAP, RE_JS, RE_JSON, RE_NODE_MODULES, RE_TS, RE_VUE } from "./filename-D2iIogqp.js";
1
+ import { a as RE_JSON, c as RE_VUE, i as RE_JS, n as RE_DTS, o as RE_NODE_MODULES, r as RE_DTS_MAP, s as RE_TS, t as RE_CSS } from "./filename-0s1tyon-.js";
2
2
  import { IsolatedDeclarationsOptions } from "rolldown/experimental";
3
3
  import { TsConfigJson } from "get-tsconfig";
4
4
  import { AddonFunction, Plugin } from "rolldown";
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  const __cjs_require = globalThis.process.getBuiltinModule("module").createRequire(import.meta.url);
2
- import { RE_CSS, RE_DTS, RE_DTS_MAP, RE_JS, RE_JSON, RE_NODE_MODULES, RE_TS, RE_VUE, filename_dts_to, filename_js_to_dts, filename_to_dts, replaceTemplateName, resolveTemplateFn } from "./filename-DLc-rcyI.js";
3
- import { createContext, globalContext, invalidateContextFile } from "./context-BGY_fVH1.js";
2
+ import { a as RE_JSON, c as RE_VUE, d as filename_to_dts, f as replaceTemplateName, i as RE_JS, l as filename_dts_to, n as RE_DTS, o as RE_NODE_MODULES, p as resolveTemplateFn, r as RE_DTS_MAP, s as RE_TS, t as RE_CSS, u as filename_js_to_dts } from "./filename-DDjuEak0.js";
3
+ import { n as globalContext, r as invalidateContextFile, t as createContext } from "./context-BacUE4pM.js";
4
4
  const Debug = __cjs_require("debug");
5
5
  import MagicString from "magic-string";
6
6
  const {
@@ -336,14 +336,14 @@ function createFakeJsPlugin({ sourcemap, cjsDefault }) {
336
336
  const appendStmts = [];
337
337
  const namespaceStmts = /* @__PURE__ */ new Map();
338
338
  for (const [i, stmt] of program.body.entries()) {
339
- const setStmt = (node) => program.body[i] = node;
339
+ const setStmt = (stmt$1) => program.body[i] = stmt$1;
340
340
  if (rewriteImportExport(stmt, setStmt, typeOnlyIds)) continue;
341
341
  const sideEffect = stmt.type === "TSModuleDeclaration" && stmt.kind !== "namespace";
342
342
  if (sideEffect && id.endsWith(".vue.d.ts") && code.slice(stmt.start, stmt.end).includes("__VLS_")) continue;
343
343
  const isDefaultExport = stmt.type === "ExportDefaultDeclaration";
344
344
  const isDecl = isTypeOf(stmt, ["ExportNamedDeclaration", "ExportDefaultDeclaration"]) && stmt.declaration;
345
345
  const decl = isDecl ? stmt.declaration : stmt;
346
- const setDecl = isDecl ? (node) => stmt.declaration = node : setStmt;
346
+ const setDecl = isDecl ? (decl$1) => stmt.declaration = decl$1 : setStmt;
347
347
  if (decl.type !== "TSDeclareFunction" && !isDeclarationType(decl)) continue;
348
348
  if (isTypeOf(decl, [
349
349
  "TSEnumDeclaration",
@@ -364,11 +364,8 @@ function createFakeJsPlugin({ sourcemap, cjsDefault }) {
364
364
  bindings.push(binding);
365
365
  decl.id = binding;
366
366
  }
367
- const params = "typeParameters" in decl && decl.typeParameters?.type === "TSTypeParameterDeclaration" ? decl.typeParameters.params : [];
367
+ const params = collectParams(decl);
368
368
  const deps = collectDependencies(decl, namespaceStmts);
369
- const elements = [t.numericLiteral(0), t.arrowFunctionExpression(params.map((param) => t.identifier(param.name)), t.arrayExpression(deps))];
370
- if (sideEffect) elements.push(t.callExpression(t.identifier("sideEffect"), [bindings[0]]));
371
- const runtime = t.arrayExpression(elements);
372
369
  if (decl !== stmt) decl.leadingComments = stmt.leadingComments;
373
370
  const symbolId = registerSymbol({
374
371
  decl,
@@ -376,7 +373,14 @@ function createFakeJsPlugin({ sourcemap, cjsDefault }) {
376
373
  bindings,
377
374
  params
378
375
  });
379
- elements[0] = t.numericLiteral(symbolId);
376
+ const symbolIdNode = t.numericLiteral(symbolId);
377
+ const depsNode = t.arrowFunctionExpression(params.map(({ name }) => t.identifier(name)), t.arrayExpression(deps));
378
+ const sideEffectNode = sideEffect && t.callExpression(t.identifier("sideEffect"), [bindings[0]]);
379
+ const runtimeArrayNode = runtimeBindingArrayExpression(sideEffectNode ? [
380
+ symbolIdNode,
381
+ depsNode,
382
+ sideEffectNode
383
+ ] : [symbolIdNode, depsNode]);
380
384
  const runtimeAssignment = {
381
385
  type: "VariableDeclaration",
382
386
  kind: "var",
@@ -386,7 +390,7 @@ function createFakeJsPlugin({ sourcemap, cjsDefault }) {
386
390
  ...bindings[0],
387
391
  typeAnnotation: null
388
392
  },
389
- init: runtime
393
+ init: runtimeArrayNode
390
394
  }, ...bindings.slice(1).map((binding) => ({
391
395
  type: "VariableDeclarator",
392
396
  id: {
@@ -422,29 +426,28 @@ function createFakeJsPlugin({ sourcemap, cjsDefault }) {
422
426
  const file = parse(code, { sourceType: "module" });
423
427
  const { program } = file;
424
428
  program.body = patchTsNamespace(program.body);
429
+ program.body = patchReExport(program.body);
425
430
  program.body = program.body.map((node) => {
426
431
  if (isHelperImport(node)) return null;
427
432
  if (node.type === "ExpressionStatement") return null;
428
433
  const newNode = patchImportExport(node, typeOnlyIds, cjsDefault);
429
434
  if (newNode || newNode === false) return newNode;
430
435
  if (node.type !== "VariableDeclaration") return node;
431
- const [decl] = node.declarations;
432
- if (decl.init?.type !== "ArrayExpression" || !decl.init.elements[0]) return null;
433
- const [symbolIdNode, depsFn] = decl.init.elements;
434
- if (symbolIdNode?.type !== "NumericLiteral") return null;
436
+ if (!isRuntimeBindingVariableDeclaration(node)) return null;
437
+ const [symbolIdNode, depsFn] = node.declarations[0].init.elements;
435
438
  const symbolId = symbolIdNode.value;
436
439
  const original = getSymbol(symbolId);
437
- for (const [i, decl$1] of node.declarations.entries()) {
440
+ for (const [i, decl] of node.declarations.entries()) {
438
441
  const transformedBinding = {
439
- ...decl$1.id,
442
+ ...decl.id,
440
443
  typeAnnotation: original.bindings[i].typeAnnotation
441
444
  };
442
445
  overwriteNode(original.bindings[i], transformedBinding);
443
446
  }
444
447
  const transformedParams = depsFn.params;
445
- for (let i = 0; i < original.params.length; i++) {
446
- const originalParam = original.params[i];
447
- originalParam.name = transformedParams[i].name;
448
+ for (const [i, transformedParam] of transformedParams.entries()) {
449
+ const transformedName = transformedParam.name;
450
+ for (const originalTypeParam of original.params[i].typeParams) originalTypeParam.name = transformedName;
448
451
  }
449
452
  const transformedDeps = depsFn.body.elements;
450
453
  for (let i = 0; i < original.deps.length; i++) {
@@ -491,6 +494,29 @@ function createFakeJsPlugin({ sourcemap, cjsDefault }) {
491
494
  function getSymbol(symbolId) {
492
495
  return symbolMap.get(symbolId);
493
496
  }
497
+ /**
498
+ * Collects all TSTypeParameter nodes from the given node and groups them by
499
+ * their name. One name can associate with one or more type parameters. These
500
+ * names will be used as the parameter name in the generated JavaScript
501
+ * dependency function.
502
+ */
503
+ function collectParams(node) {
504
+ const typeParams = [];
505
+ walk(node, { leave(node$1) {
506
+ if ("typeParameters" in node$1 && node$1.typeParameters?.type === "TSTypeParameterDeclaration") typeParams.push(...node$1.typeParameters.params);
507
+ } });
508
+ const paramMap = /* @__PURE__ */ new Map();
509
+ for (const typeParam of typeParams) {
510
+ const name = typeParam.name;
511
+ const group = paramMap.get(name);
512
+ if (group) group.push(typeParam);
513
+ else paramMap.set(name, [typeParam]);
514
+ }
515
+ return Array.from(paramMap.entries()).map(([name, typeParams$1]) => ({
516
+ name,
517
+ typeParams: typeParams$1
518
+ }));
519
+ }
494
520
  function collectDependencies(node, namespaceStmts) {
495
521
  const deps = /* @__PURE__ */ new Set();
496
522
  const seen = /* @__PURE__ */ new Set();
@@ -564,6 +590,28 @@ const REFERENCE_RE = /\/\s*<reference\s+(?:path|types)=/;
564
590
  function collectReferenceDirectives(comment, negative = false) {
565
591
  return comment.filter((c) => REFERENCE_RE.test(c.value) !== negative);
566
592
  }
593
+ /**
594
+ * Check if the given node is a {@link RuntimeBindingVariableDeclration}
595
+ */
596
+ function isRuntimeBindingVariableDeclaration(node) {
597
+ return t.isVariableDeclaration(node) && node.declarations.length > 0 && t.isVariableDeclarator(node.declarations[0]) && isRuntimeBindingArrayExpression(node.declarations[0].init);
598
+ }
599
+ /**
600
+ * Check if the given node is a {@link RuntimeBindingArrayExpression}
601
+ */
602
+ function isRuntimeBindingArrayExpression(node) {
603
+ return t.isArrayExpression(node) && isRuntimeBindingArrayElements(node.elements);
604
+ }
605
+ function runtimeBindingArrayExpression(elements) {
606
+ return t.arrayExpression(elements);
607
+ }
608
+ /**
609
+ * Check if the given array is a {@link RuntimeBindingArrayElements}
610
+ */
611
+ function isRuntimeBindingArrayElements(elements) {
612
+ const [symbolId, deps, effect] = elements;
613
+ return t.isNumericLiteral(symbolId) && t.isArrowFunctionExpression(deps) && (!effect || t.isCallExpression(effect));
614
+ }
567
615
  function isThisExpression(node) {
568
616
  return node.type === "Identifier" && node.name === "this" || node.type === "MemberExpression" && isThisExpression(node.object);
569
617
  }
@@ -582,6 +630,9 @@ function isReferenceId(node) {
582
630
  function isHelperImport(node) {
583
631
  return node.type === "ImportDeclaration" && node.specifiers.length === 1 && node.specifiers.every((spec) => spec.type === "ImportSpecifier" && spec.imported.type === "Identifier" && ["__export", "__reExport"].includes(spec.imported.name));
584
632
  }
633
+ /**
634
+ * patch `.d.ts` suffix in import source to `.js`
635
+ */
585
636
  function patchImportExport(node, typeOnlyIds, cjsDefault) {
586
637
  if (node.type === "ExportNamedDeclaration" && !node.declaration && !node.source && !node.specifiers.length && !node.attributes?.length) return false;
587
638
  if (isTypeOf(node, [
@@ -604,11 +655,13 @@ function patchImportExport(node, typeOnlyIds, cjsDefault) {
604
655
  };
605
656
  }
606
657
  }
658
+ /**
659
+ * Handle `__export` call
660
+ */
607
661
  function patchTsNamespace(nodes) {
608
- const emptyObjectAssignments = /* @__PURE__ */ new Map();
609
662
  const removed = /* @__PURE__ */ new Set();
610
663
  for (const [i, node] of nodes.entries()) {
611
- const result = handleExport(node) || handleLegacyExport(node);
664
+ const result = handleExport(node);
612
665
  if (!result) continue;
613
666
  const [binding, exports] = result;
614
667
  nodes[i] = {
@@ -636,25 +689,39 @@ function patchTsNamespace(nodes) {
636
689
  if (node.type !== "VariableDeclaration" || node.declarations.length !== 1 || node.declarations[0].id.type !== "Identifier" || node.declarations[0].init?.type !== "CallExpression" || node.declarations[0].init.callee.type !== "Identifier" || node.declarations[0].init.callee.name !== "__export" || node.declarations[0].init.arguments.length !== 1 || node.declarations[0].init.arguments[0].type !== "ObjectExpression") return false;
637
690
  return [node.declarations[0].id, node.declarations[0].init.arguments[0]];
638
691
  }
639
- /**
640
- * @deprecated remove me in future
641
- */
642
- function handleLegacyExport(node) {
643
- if (node.type === "VariableDeclaration" && node.declarations.length === 1 && node.declarations[0].id.type === "Identifier" && node.declarations[0].init?.type === "ObjectExpression" && node.declarations[0].init.properties.length === 0) {
644
- emptyObjectAssignments.set(node.declarations[0].id.name, node);
645
- return false;
646
- }
647
- if (node.type !== "ExpressionStatement" || node.expression.type !== "CallExpression" || node.expression.callee.type !== "Identifier" || !node.expression.callee.name.startsWith("__export")) return false;
648
- const [binding, exports] = node.expression.arguments;
649
- if (binding.type !== "Identifier" || exports.type !== "ObjectExpression") return false;
650
- const bindingText = binding.name;
651
- if (emptyObjectAssignments.has(bindingText)) {
652
- const emptyNode = emptyObjectAssignments.get(bindingText);
653
- emptyObjectAssignments.delete(bindingText);
654
- removed.add(emptyNode);
692
+ }
693
+ /**
694
+ * Handle `__reExport` call
695
+ */
696
+ function patchReExport(nodes) {
697
+ const exportsNames = /* @__PURE__ */ new Map();
698
+ for (const [i, node] of nodes.entries()) if (node.type === "ImportDeclaration" && node.specifiers.length === 1 && node.specifiers[0].type === "ImportSpecifier" && node.specifiers[0].local.type === "Identifier" && node.specifiers[0].local.name.endsWith("_exports")) exportsNames.set(node.specifiers[0].local.name, node.specifiers[0].local.name);
699
+ else if (node.type === "ExpressionStatement" && node.expression.type === "CallExpression" && node.expression.callee.type === "Identifier" && node.expression.callee.name === "__reExport") {
700
+ const args = node.expression.arguments;
701
+ exportsNames.set(args[0].name, args[1].name);
702
+ } else if (node.type === "VariableDeclaration" && node.declarations.length === 1 && node.declarations[0].init?.type === "MemberExpression" && node.declarations[0].init.object.type === "Identifier" && exportsNames.has(node.declarations[0].init.object.name)) nodes[i] = {
703
+ type: "TSTypeAliasDeclaration",
704
+ id: {
705
+ type: "Identifier",
706
+ name: node.declarations[0].id.name
707
+ },
708
+ typeAnnotation: {
709
+ type: "TSTypeReference",
710
+ typeName: {
711
+ type: "TSQualifiedName",
712
+ left: {
713
+ type: "Identifier",
714
+ name: exportsNames.get(node.declarations[0].init.object.name)
715
+ },
716
+ right: {
717
+ type: "Identifier",
718
+ name: node.declarations[0].init.property.name
719
+ }
720
+ }
655
721
  }
656
- return [binding, exports];
657
- }
722
+ };
723
+ else if (node.type === "ExportNamedDeclaration" && node.specifiers.length === 1 && node.specifiers[0].type === "ExportSpecifier" && node.specifiers[0].local.type === "Identifier" && exportsNames.has(node.specifiers[0].local.name)) node.specifiers[0].local.name = exportsNames.get(node.specifiers[0].local.name);
724
+ return nodes;
658
725
  }
659
726
  function rewriteImportExport(node, set, typeOnlyIds) {
660
727
  if (node.type === "ImportDeclaration" || node.type === "ExportNamedDeclaration" && !node.declaration) {
@@ -1,5 +1,5 @@
1
1
  const __cjs_require = globalThis.process.getBuiltinModule("module").createRequire(import.meta.url);
2
- import { globalContext } from "./context-BGY_fVH1.js";
2
+ import { n as globalContext } from "./context-BacUE4pM.js";
3
3
  const {
4
4
  createRequire
5
5
  } = globalThis.process.getBuiltinModule("node:module");
@@ -425,4 +425,4 @@ function tscEmit(tscOptions) {
425
425
  }
426
426
 
427
427
  //#endregion
428
- export { tscEmit };
428
+ export { tscEmit as t };
@@ -1,2 +1,2 @@
1
- import { ParsedProject, SourceFileToProjectMap, TscContext, createContext, globalContext, invalidateContextFile } from "./context-DXNtAHtR.js";
1
+ import { a as globalContext, i as createContext, n as SourceFileToProjectMap, o as invalidateContextFile, r as TscContext, t as ParsedProject } from "./context-Cf8MAZaX.js";
2
2
  export { ParsedProject, SourceFileToProjectMap, TscContext, createContext, globalContext, invalidateContextFile };
@@ -1,3 +1,3 @@
1
- import { createContext, globalContext, invalidateContextFile } from "./context-BGY_fVH1.js";
1
+ import { n as globalContext, r as invalidateContextFile, t as createContext } from "./context-BacUE4pM.js";
2
2
 
3
3
  export { createContext, globalContext, invalidateContextFile };
@@ -1,5 +1,5 @@
1
- import "./context-DXNtAHtR.js";
2
- import { tscEmit } from "./index-CxJisQQS.js";
1
+ import "./context-Cf8MAZaX.js";
2
+ import { t as tscEmit } from "./index-UvaKF8Pg.js";
3
3
 
4
4
  //#region src/tsc/worker.d.ts
5
5
  declare const functions: {
@@ -1,5 +1,5 @@
1
- import { tscEmit } from "./tsc-BtxK_zMt.js";
2
- import "./context-BGY_fVH1.js";
1
+ import { t as tscEmit } from "./tsc--GG3zA2e.js";
2
+ import "./context-BacUE4pM.js";
3
3
  const process = globalThis.process;
4
4
  import { createBirpc } from "birpc";
5
5
 
package/dist/tsc.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import "./context-DXNtAHtR.js";
2
- import { TscModule, TscOptions, TscResult, tscEmit } from "./index-CxJisQQS.js";
1
+ import "./context-Cf8MAZaX.js";
2
+ import { i as TscResult, n as TscModule, r as TscOptions, t as tscEmit } from "./index-UvaKF8Pg.js";
3
3
  export { TscModule, TscOptions, TscResult, tscEmit };
package/dist/tsc.js CHANGED
@@ -1,4 +1,4 @@
1
- import { tscEmit } from "./tsc-BtxK_zMt.js";
2
- import "./context-BGY_fVH1.js";
1
+ import { t as tscEmit } from "./tsc--GG3zA2e.js";
2
+ import "./context-BacUE4pM.js";
3
3
 
4
4
  export { tscEmit };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rolldown-plugin-dts",
3
- "version": "0.16.12",
3
+ "version": "0.17.1",
4
4
  "description": "A Rolldown plugin to generate and bundle dts files.",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -42,7 +42,7 @@
42
42
  "peerDependencies": {
43
43
  "@ts-macro/tsc": "^0.3.6",
44
44
  "@typescript/native-preview": ">=7.0.0-dev.20250601.1",
45
- "rolldown": "^1.0.0-beta.9",
45
+ "rolldown": "^1.0.0-beta.44",
46
46
  "typescript": "^5.0.0",
47
47
  "vue-tsc": "~3.1.0"
48
48
  },
@@ -61,39 +61,39 @@
61
61
  }
62
62
  },
63
63
  "dependencies": {
64
- "@babel/generator": "^7.28.3",
65
- "@babel/parser": "^7.28.4",
66
- "@babel/types": "^7.28.4",
64
+ "@babel/generator": "^7.28.5",
65
+ "@babel/parser": "^7.28.5",
66
+ "@babel/types": "^7.28.5",
67
67
  "ast-kit": "^2.1.3",
68
68
  "birpc": "^2.6.1",
69
69
  "debug": "^4.4.3",
70
70
  "dts-resolver": "^2.1.2",
71
- "get-tsconfig": "^4.12.0",
72
- "magic-string": "^0.30.19"
71
+ "get-tsconfig": "^4.13.0",
72
+ "magic-string": "^0.30.21"
73
73
  },
74
74
  "devDependencies": {
75
75
  "@sxzz/eslint-config": "^7.2.7",
76
76
  "@sxzz/prettier-config": "^2.2.4",
77
- "@sxzz/test-utils": "^0.5.11",
77
+ "@sxzz/test-utils": "^0.5.12",
78
78
  "@types/babel__generator": "^7.27.0",
79
79
  "@types/debug": "^4.1.12",
80
- "@types/node": "^24.8.1",
81
- "@typescript/native-preview": "7.0.0-dev.20251017.1",
80
+ "@types/node": "^24.9.1",
81
+ "@typescript/native-preview": "7.0.0-dev.20251024.1",
82
82
  "@volar/typescript": "^2.4.23",
83
83
  "@vue/language-core": "^3.1.1",
84
84
  "arktype": "^2.1.23",
85
85
  "bumpp": "^10.3.1",
86
86
  "diff": "^8.0.2",
87
- "eslint": "^9.37.0",
87
+ "eslint": "^9.38.0",
88
88
  "estree-walker": "^3.0.3",
89
89
  "prettier": "^3.6.2",
90
- "rolldown": "^1.0.0-beta.43",
90
+ "rolldown": "^1.0.0-beta.44",
91
91
  "rolldown-plugin-require-cjs": "^0.3.1",
92
92
  "rollup-plugin-dts": "^6.2.3",
93
93
  "tinyglobby": "^0.2.15",
94
- "tsdown": "^0.15.7",
94
+ "tsdown": "^0.15.9",
95
95
  "typescript": "^5.9.3",
96
- "vitest": "^3.2.4",
96
+ "vitest": "^4.0.3",
97
97
  "vue": "^3.5.22",
98
98
  "vue-tsc": "^3.1.1"
99
99
  },