@rolldown/browser 1.0.0-rc.4 → 1.0.0-rc.6

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.
Files changed (49) hide show
  1. package/dist/cli.mjs +24 -14
  2. package/dist/config.d.mts +9 -1
  3. package/dist/config.mjs +8 -8
  4. package/dist/{constructors-D2wC6vT5.js → constructors-WyngiSlS.js} +6 -0
  5. package/dist/{error-DfXdOVMF.js → error-D4EjR7H_.js} +9 -5
  6. package/dist/experimental-index.browser.mjs +4 -4
  7. package/dist/experimental-index.d.mts +8 -8
  8. package/dist/experimental-index.mjs +7 -7
  9. package/dist/filter-index.d.mts +1 -1
  10. package/dist/filter-index.mjs +24 -1
  11. package/dist/get-log-filter.d.mts +3 -7
  12. package/dist/get-log-filter.mjs +22 -0
  13. package/dist/index.browser.mjs +2 -2
  14. package/dist/index.d.mts +4 -5
  15. package/dist/index.mjs +8 -8
  16. package/dist/parallel-plugin-worker.mjs +4 -4
  17. package/dist/parallel-plugin.d.mts +2 -2
  18. package/dist/parse-ast-index.d.mts +27 -3
  19. package/dist/parse-ast-index.mjs +17 -1
  20. package/dist/plugins-index.browser.mjs +6 -3
  21. package/dist/plugins-index.d.mts +7 -4
  22. package/dist/plugins-index.mjs +7 -4
  23. package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
  24. package/dist/{rolldown-build-gXO5p6r0.js → rolldown-build-DwnjyX40.js} +31 -28
  25. package/dist/shared/{bindingify-input-options-B32m-wO8.mjs → bindingify-input-options-CSIYh5O4.mjs} +17 -21
  26. package/dist/shared/{constructors-f9W8MQZ_.mjs → constructors-B2viugwd.mjs} +7 -1
  27. package/dist/shared/{constructors-CtryxP-m.d.mts → constructors-C1tQjDsj.d.mts} +7 -1
  28. package/dist/shared/{define-config-MImu5XA0.d.mts → define-config-DMEhSrNE.d.mts} +98 -30
  29. package/dist/shared/get-log-filter-semyr3Lj.d.mts +35 -0
  30. package/dist/shared/{load-config-nINjF42i.mjs → load-config-CmC4WvoS.mjs} +9 -1
  31. package/dist/shared/{parse-C5IFYsFB.mjs → parse-DIZtKd4C.mjs} +9 -5
  32. package/dist/shared/{rolldown-CkjERUOD.mjs → rolldown-D7O5_axp.mjs} +1 -1
  33. package/dist/shared/{rolldown-build-nvl-pSiK.mjs → rolldown-build-BV90HQts.mjs} +13 -14
  34. package/dist/shared/{transform-ChAcTNv3.d.mts → transform-BSAGL1b_.d.mts} +64 -24
  35. package/dist/shared/{transform-DhHPKnL-.mjs → transform-D49mi4JH.mjs} +12 -10
  36. package/dist/shared/{types-C2Sw7GCQ.d.mts → types-Cx3HYorz.d.mts} +4 -2
  37. package/dist/shared/{watch-CC4jn0NJ.mjs → watch-COON6c2j.mjs} +4 -4
  38. package/dist/{transform-DmR2FE2Q.js → transform-qJgOBSav.js} +12 -10
  39. package/dist/utils-index.browser.mjs +2422 -3
  40. package/dist/utils-index.d.mts +374 -2
  41. package/dist/utils-index.mjs +2423 -4
  42. package/package.json +1 -1
  43. /package/dist/shared/{composable-filters-CIxSuZSM.mjs → composable-filters-C_jBPRPI.mjs} +0 -0
  44. /package/dist/shared/{define-config-BVG4QvnP.mjs → define-config-BMj_QknW.mjs} +0 -0
  45. /package/dist/shared/{error-DTJQ7tjB.mjs → error-DDzqVYr_.mjs} +0 -0
  46. /package/dist/shared/{logging-C28dTP71.d.mts → logging-C6h4g8dA.d.mts} +0 -0
  47. /package/dist/shared/{normalize-string-or-regex-CdT2cmt4.mjs → normalize-string-or-regex-FTOVR1Jb.mjs} +0 -0
  48. /package/dist/shared/{prompt-BcvPElI8.mjs → prompt-B56gTa4S.mjs} +0 -0
  49. /package/dist/shared/{utils-DOXNRW_3.d.mts → utils-6wxe_LMG.d.mts} +0 -0
@@ -0,0 +1,35 @@
1
+ import { a as RolldownLog } from "./logging-C6h4g8dA.mjs";
2
+
3
+ //#region src/get-log-filter.d.ts
4
+ /**
5
+ * @param filters A list of log filters to apply
6
+ * @returns A function that tests whether a log should be output
7
+ *
8
+ * @category Config
9
+ */
10
+ type GetLogFilter = (filters: string[]) => (log: RolldownLog) => boolean;
11
+ /**
12
+ * A helper function to generate log filters using the same syntax as the CLI.
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * import { defineConfig } from 'rolldown';
17
+ * import { getLogFilter } from 'rolldown/getLogFilter';
18
+ *
19
+ * const logFilter = getLogFilter(['code:FOO', 'code:BAR']);
20
+ *
21
+ * export default defineConfig({
22
+ * input: 'main.js',
23
+ * onLog(level, log, handler) {
24
+ * if (logFilter(log)) {
25
+ * handler(level, log);
26
+ * }
27
+ * }
28
+ * });
29
+ * ```
30
+ *
31
+ * @category Config
32
+ */
33
+ declare const getLogFilter: GetLogFilter;
34
+ //#endregion
35
+ export { getLogFilter as n, GetLogFilter as t };
@@ -1,4 +1,4 @@
1
- import { t as rolldown } from "./rolldown-CkjERUOD.mjs";
1
+ import { t as rolldown } from "./rolldown-D7O5_axp.mjs";
2
2
  import path from "node:path";
3
3
  import { readdir } from "node:fs/promises";
4
4
  import { cwd } from "node:process";
@@ -99,6 +99,14 @@ function tryStatSync(file) {
99
99
  return fs.statSync(file, { throwIfNoEntry: false });
100
100
  } catch {}
101
101
  }
102
+ /**
103
+ * Load config from a file in a way that Rolldown does.
104
+ *
105
+ * @param configPath The path to the config file. If empty, it will look for `rolldown.config` with supported extensions in the current working directory.
106
+ * @returns The loaded config export
107
+ *
108
+ * @category Config
109
+ */
102
110
  async function loadConfig(configPath) {
103
111
  const ext = path.extname(configPath = configPath || await findConfigFileNameInCwd());
104
112
  try {
@@ -1,6 +1,6 @@
1
1
  import { parse, parseSync } from "../rolldown-binding.wasi.cjs";
2
2
 
3
- //#region ../../node_modules/.pnpm/oxc-parser@0.112.0/node_modules/oxc-parser/src-js/wrap.js
3
+ //#region ../../node_modules/.pnpm/oxc-parser@0.115.0/node_modules/oxc-parser/src-js/wrap.js
4
4
  function wrap(result) {
5
5
  let program, module, comments, errors;
6
6
  return {
@@ -48,8 +48,10 @@ function applyFix(program, fixPath) {
48
48
  *
49
49
  * i.e. the majority of the workload cannot be parallelized by using this method.
50
50
  *
51
- * Generally `parseSync` is preferable to use as it does not have the overhead of spawning a thread.
51
+ * Generally {@linkcode parseSync} is preferable to use as it does not have the overhead of spawning a thread.
52
52
  * If you need to parallelize parsing multiple files, it is recommended to use worker threads.
53
+ *
54
+ * @category Utilities
53
55
  */
54
56
  async function parse$1(filename, sourceText, options) {
55
57
  return wrap(await parse(filename, sourceText, options));
@@ -57,12 +59,14 @@ async function parse$1(filename, sourceText, options) {
57
59
  /**
58
60
  * Parse JS/TS source synchronously on current thread.
59
61
  *
60
- * This is generally preferable over `parse` (async) as it does not have the overhead
62
+ * This is generally preferable over {@linkcode parse} (async) as it does not have the overhead
61
63
  * of spawning a thread, and the majority of the workload cannot be parallelized anyway
62
- * (see `parse` documentation for details).
64
+ * (see {@linkcode parse} documentation for details).
63
65
  *
64
66
  * If you need to parallelize parsing multiple files, it is recommended to use worker threads
65
- * with `parseSync` rather than using `parse`.
67
+ * with {@linkcode parseSync} rather than using {@linkcode parse}.
68
+ *
69
+ * @category Utilities
66
70
  */
67
71
  function parseSync$1(filename, sourceText, options) {
68
72
  return wrap(parseSync(filename, sourceText, options));
@@ -1,4 +1,4 @@
1
- import { c as validateOption, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-nvl-pSiK.mjs";
1
+ import { c as validateOption, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-BV90HQts.mjs";
2
2
 
3
3
  //#region src/api/rolldown/index.ts
4
4
  /**
@@ -1,8 +1,8 @@
1
1
  import { i as logInputHookInOutputPlugin, n as error } from "./logs-CCc_0vhs.mjs";
2
- import { n as BuiltinPlugin } from "./normalize-string-or-regex-CdT2cmt4.mjs";
3
- import { _ as LOG_LEVEL_WARN, a as transformToRollupOutput, b as VERSION, c as transformAssetSource, d as MinimalPluginContextImpl, f as normalizeHook, g as LOG_LEVEL_INFO, h as LOG_LEVEL_ERROR, i as transformModuleInfo, l as lazyProp, m as LOG_LEVEL_DEBUG, o as transformRenderedChunk, p as normalizeLog, s as __decorate, t as bindingifyInputOptions, u as PlainObjectLike, v as logLevelPriority } from "./bindingify-input-options-B32m-wO8.mjs";
4
- import { v as unimplemented } from "./composable-filters-CIxSuZSM.mjs";
5
- import { i as unwrapBindingResult } from "./error-DTJQ7tjB.mjs";
2
+ import { n as BuiltinPlugin } from "./normalize-string-or-regex-FTOVR1Jb.mjs";
3
+ import { _ as LOG_LEVEL_WARN, a as transformToRollupOutput, b as VERSION, c as transformAssetSource, d as MinimalPluginContextImpl, f as normalizeHook, g as LOG_LEVEL_INFO, h as LOG_LEVEL_ERROR, i as transformModuleInfo, l as lazyProp, m as LOG_LEVEL_DEBUG, o as transformRenderedChunk, p as normalizeLog, s as __decorate, t as bindingifyInputOptions, u as PlainObjectLike, v as logLevelPriority } from "./bindingify-input-options-CSIYh5O4.mjs";
4
+ import { v as unimplemented } from "./composable-filters-C_jBPRPI.mjs";
5
+ import { i as unwrapBindingResult } from "./error-DDzqVYr_.mjs";
6
6
  import { Worker } from "node:worker_threads";
7
7
  import { BindingBundler, ParallelJsPluginRegistry, shutdownAsyncRuntime, startAsyncRuntime } from "../rolldown-binding.wasi.cjs";
8
8
  import path, { sep } from "node:path";
@@ -1480,6 +1480,7 @@ const ModuleTypesSchema = record(string(), union([
1480
1480
  literal("asset"),
1481
1481
  literal("base64"),
1482
1482
  literal("binary"),
1483
+ literal("copy"),
1483
1484
  literal("css"),
1484
1485
  literal("dataurl"),
1485
1486
  literal("empty"),
@@ -1594,7 +1595,8 @@ const ChecksOptionsSchema = strictObject({
1594
1595
  couldNotCleanDirectory: pipe(optional(boolean()), description("Whether to emit warnings when Rolldown could not clean the output directory")),
1595
1596
  pluginTimings: pipe(optional(boolean()), description("Whether to emit warnings when plugins take significant time during the build process")),
1596
1597
  duplicateShebang: pipe(optional(boolean()), description("Whether to emit warnings when both the code and postBanner contain shebang")),
1597
- unsupportedTsconfigOption: pipe(optional(boolean()), description("Whether to emit warnings when a tsconfig option or combination of options is not supported"))
1598
+ unsupportedTsconfigOption: pipe(optional(boolean()), description("Whether to emit warnings when a tsconfig option or combination of options is not supported")),
1599
+ ineffectiveDynamicImport: pipe(optional(boolean()), description("Whether to emit warnings when a module is dynamically imported but also statically imported, making the dynamic import ineffective for code splitting"))
1598
1600
  });
1599
1601
  isTypeTrue();
1600
1602
  const CompressOptionsKeepNamesSchema = strictObject({
@@ -1818,7 +1820,9 @@ const AdvancedChunksSchema = strictObject({
1818
1820
  minShareCount: optional(number()),
1819
1821
  maxSize: optional(number()),
1820
1822
  minModuleSize: optional(number()),
1821
- maxModuleSize: optional(number())
1823
+ maxModuleSize: optional(number()),
1824
+ entriesAware: optional(boolean()),
1825
+ entriesAwareMergeThreshold: optional(number())
1822
1826
  })))
1823
1827
  });
1824
1828
  isTypeTrue();
@@ -1869,8 +1873,6 @@ const OutputOptionsSchema = strictObject({
1869
1873
  assetFileNames: optional(AssetFileNamesSchema),
1870
1874
  entryFileNames: optional(ChunkFileNamesSchema),
1871
1875
  chunkFileNames: optional(ChunkFileNamesSchema),
1872
- cssEntryFileNames: optional(ChunkFileNamesSchema),
1873
- cssChunkFileNames: optional(ChunkFileNamesSchema),
1874
1876
  sanitizeFileName: optional(SanitizeFileNameSchema),
1875
1877
  minify: pipe(optional(union([
1876
1878
  boolean(),
@@ -1913,8 +1915,6 @@ const OutputCliOverrideSchema = strictObject({
1913
1915
  assetFileNames: pipe(optional(string()), description("Name pattern for asset files")),
1914
1916
  entryFileNames: pipe(optional(string()), description("Name pattern for emitted entry chunks")),
1915
1917
  chunkFileNames: pipe(optional(string()), description("Name pattern for emitted secondary chunks")),
1916
- cssEntryFileNames: pipe(optional(string()), description("Name pattern for emitted css entry chunks")),
1917
- cssChunkFileNames: pipe(optional(string()), description("Name pattern for emitted css secondary chunks")),
1918
1918
  sanitizeFileName: pipe(optional(boolean()), description("Sanitize file name")),
1919
1919
  banner: pipe(optional(string()), description(getAddonDescription("top", "outside"))),
1920
1920
  footer: pipe(optional(string()), description(getAddonDescription("bottom", "outside"))),
@@ -2975,7 +2975,7 @@ function createConsola(options = {}) {
2975
2975
  defaults: { level },
2976
2976
  stdout: process.stdout,
2977
2977
  stderr: process.stderr,
2978
- prompt: (...args) => import("./prompt-BcvPElI8.mjs").then((m) => m.prompt(...args)),
2978
+ prompt: (...args) => import("./prompt-B56gTa4S.mjs").then((m) => m.prompt(...args)),
2979
2979
  reporters: options.reporters || [options.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()],
2980
2980
  ...options
2981
2981
  });
@@ -3018,7 +3018,8 @@ function createTestingLogger() {
3018
3018
  //#endregion
3019
3019
  //#region src/utils/bindingify-output-options.ts
3020
3020
  function bindingifyOutputOptions(outputOptions) {
3021
- const { dir, format, exports, hashCharacters, sourcemap, sourcemapBaseUrl, sourcemapDebugIds, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, cssEntryFileNames, cssChunkFileNames, banner, footer, postBanner, postFooter, intro, outro, esModule, globals, paths, generatedCode, file, sanitizeFileName, preserveModules, virtualDirname, legalComments, comments, preserveModulesRoot, manualChunks, topLevelVar, cleanDir, strictExecutionOrder } = outputOptions;
3021
+ const { dir, format, exports, hashCharacters, sourcemap, sourcemapBaseUrl, sourcemapDebugIds, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, banner, footer, postBanner, postFooter, intro, outro, esModule, globals, paths, generatedCode, file, sanitizeFileName, preserveModules, virtualDirname, legalComments, comments, preserveModulesRoot, manualChunks, topLevelVar, cleanDir, strictExecutionOrder } = outputOptions;
3022
+ if (legalComments != null) logger.warn("`legalComments` option is deprecated, please use `comments.legal` instead.");
3022
3023
  const { inlineDynamicImports, advancedChunks } = bindingifyCodeSplitting(outputOptions.codeSplitting, outputOptions.inlineDynamicImports, outputOptions.advancedChunks, manualChunks);
3023
3024
  return {
3024
3025
  dir,
@@ -3046,8 +3047,6 @@ function bindingifyOutputOptions(outputOptions) {
3046
3047
  assetFileNames: bindingifyAssetFilenames(assetFileNames),
3047
3048
  entryFileNames,
3048
3049
  chunkFileNames,
3049
- cssEntryFileNames,
3050
- cssChunkFileNames,
3051
3050
  plugins: [],
3052
3051
  minify: outputOptions.minify,
3053
3052
  externalLiveBindings: outputOptions.externalLiveBindings,
@@ -1,8 +1,20 @@
1
- import { a as RolldownLog } from "./logging-C28dTP71.mjs";
2
- import { BindingEnhancedTransformOptions, BindingEnhancedTransformResult, BindingTsconfigCompilerOptions as TsconfigCompilerOptions, BindingTsconfigRawOptions as TsconfigRawOptions, MinifyOptions, MinifyResult, ParseResult, ParserOptions as ParserOptions$1, SourceMap, TsconfigCache } from "../binding.cjs";
1
+ import { a as RolldownLog } from "./logging-C6h4g8dA.mjs";
2
+ import { BindingEnhancedTransformOptions, BindingEnhancedTransformResult, BindingTsconfigCompilerOptions as TsconfigCompilerOptions, BindingTsconfigRawOptions as TsconfigRawOptions, MinifyOptions, MinifyResult, ParseResult, ParserOptions, SourceMap, TsconfigCache } from "../binding.cjs";
3
3
 
4
4
  //#region src/utils/parse.d.ts
5
5
  /**
6
+ * Result of parsing a code
7
+ *
8
+ * @category Utilities
9
+ */
10
+ interface ParseResult$1 extends ParseResult {}
11
+ /**
12
+ * Options for parsing a code
13
+ *
14
+ * @category Utilities
15
+ */
16
+ interface ParserOptions$1 extends ParserOptions {}
17
+ /**
6
18
  * Parse JS/TS source asynchronously on a separate thread.
7
19
  *
8
20
  * Note that not all of the workload can happen on a separate thread.
@@ -12,42 +24,70 @@ import { BindingEnhancedTransformOptions, BindingEnhancedTransformResult, Bindin
12
24
  *
13
25
  * i.e. the majority of the workload cannot be parallelized by using this method.
14
26
  *
15
- * Generally `parseSync` is preferable to use as it does not have the overhead of spawning a thread.
27
+ * Generally {@linkcode parseSync} is preferable to use as it does not have the overhead of spawning a thread.
16
28
  * If you need to parallelize parsing multiple files, it is recommended to use worker threads.
29
+ *
30
+ * @category Utilities
17
31
  */
18
- declare function parse(filename: string, sourceText: string, options?: ParserOptions$1 | null): Promise<ParseResult>;
32
+ declare function parse(filename: string, sourceText: string, options?: ParserOptions$1 | null): Promise<ParseResult$1>;
19
33
  /**
20
34
  * Parse JS/TS source synchronously on current thread.
21
35
  *
22
- * This is generally preferable over `parse` (async) as it does not have the overhead
36
+ * This is generally preferable over {@linkcode parse} (async) as it does not have the overhead
23
37
  * of spawning a thread, and the majority of the workload cannot be parallelized anyway
24
- * (see `parse` documentation for details).
38
+ * (see {@linkcode parse} documentation for details).
25
39
  *
26
40
  * If you need to parallelize parsing multiple files, it is recommended to use worker threads
27
- * with `parseSync` rather than using `parse`.
41
+ * with {@linkcode parseSync} rather than using {@linkcode parse}.
42
+ *
43
+ * @category Utilities
28
44
  */
29
- declare function parseSync(filename: string, sourceText: string, options?: ParserOptions$1 | null): ParseResult;
45
+ declare function parseSync(filename: string, sourceText: string, options?: ParserOptions$1 | null): ParseResult$1;
30
46
  //#endregion
31
47
  //#region src/utils/minify.d.ts
32
- type MinifyOptions$1 = MinifyOptions & {
48
+ /**
49
+ * Options for minification.
50
+ *
51
+ * @category Utilities
52
+ */
53
+ interface MinifyOptions$1 extends MinifyOptions {
33
54
  inputMap?: SourceMap;
34
- };
55
+ }
56
+ /**
57
+ * The result of minification.
58
+ *
59
+ * @category Utilities
60
+ */
61
+ interface MinifyResult$1 extends MinifyResult {}
35
62
  /**
36
63
  * Minify asynchronously.
37
64
  *
38
- * Note: This function can be slower than `minifySync` due to the overhead of spawning a thread.
65
+ * Note: This function can be slower than {@linkcode minifySync} due to the overhead of spawning a thread.
39
66
  *
67
+ * @category Utilities
40
68
  * @experimental
41
69
  */
42
- declare function minify(filename: string, sourceText: string, options?: MinifyOptions$1 | null): Promise<MinifyResult>;
70
+ declare function minify(filename: string, sourceText: string, options?: MinifyOptions$1 | null): Promise<MinifyResult$1>;
43
71
  /**
44
72
  * Minify synchronously.
45
73
  *
74
+ * @category Utilities
46
75
  * @experimental
47
76
  */
48
- declare function minifySync(filename: string, sourceText: string, options?: MinifyOptions$1 | null): MinifyResult;
77
+ declare function minifySync(filename: string, sourceText: string, options?: MinifyOptions$1 | null): MinifyResult$1;
49
78
  //#endregion
50
79
  //#region src/utils/transform.d.ts
80
+ /**
81
+ * Options for transforming a code.
82
+ *
83
+ * @category Utilities
84
+ */
85
+ interface TransformOptions$1 extends BindingEnhancedTransformOptions {}
86
+ /**
87
+ * Result of transforming a code.
88
+ *
89
+ * @category Utilities
90
+ */
51
91
  type TransformResult = Omit<BindingEnhancedTransformResult, "errors" | "warnings"> & {
52
92
  errors: Error[];
53
93
  warnings: RolldownLog[];
@@ -58,35 +98,35 @@ type TransformResult = Omit<BindingEnhancedTransformResult, "errors" | "warnings
58
98
  * Note: This function can be slower than `transformSync` due to the overhead of spawning a thread.
59
99
  *
60
100
  * @param filename The name of the file being transformed. If this is a
61
- * relative path, consider setting the {@link TransformOptions#cwd} option.
62
- * @param source_text The source code to transform.
63
- * @param options The transform options including tsconfig and inputMap. See {@link
64
- * BindingEnhancedTransformOptions} for more information.
101
+ * relative path, consider setting the {@linkcode TransformOptions#cwd} option.
102
+ * @param sourceText The source code to transform.
103
+ * @param options The transform options including tsconfig and inputMap. See {@linkcode TransformOptions} for more information.
65
104
  * @param cache Optional tsconfig cache for reusing resolved tsconfig across multiple transforms.
66
105
  * Only used when `options.tsconfig` is `true`.
67
106
  *
68
107
  * @returns a promise that resolves to an object containing the transformed code,
69
108
  * source maps, and any errors that occurred during parsing or transformation.
70
109
  *
110
+ * @category Utilities
71
111
  * @experimental
72
112
  */
73
- declare function transform(filename: string, sourceText: string, options?: BindingEnhancedTransformOptions | null, cache?: TsconfigCache | null): Promise<TransformResult>;
113
+ declare function transform(filename: string, sourceText: string, options?: TransformOptions$1 | null, cache?: TsconfigCache | null): Promise<TransformResult>;
74
114
  /**
75
115
  * Transpile a JavaScript or TypeScript into a target ECMAScript version.
76
116
  *
77
117
  * @param filename The name of the file being transformed. If this is a
78
- * relative path, consider setting the {@link TransformOptions#cwd} option.
79
- * @param source_text The source code to transform.
80
- * @param options The transform options including tsconfig and inputMap. See {@link
81
- * BindingEnhancedTransformOptions} for more information.
118
+ * relative path, consider setting the {@linkcode TransformOptions#cwd} option.
119
+ * @param sourceText The source code to transform.
120
+ * @param options The transform options including tsconfig and inputMap. See {@linkcode TransformOptions} for more information.
82
121
  * @param cache Optional tsconfig cache for reusing resolved tsconfig across multiple transforms.
83
122
  * Only used when `options.tsconfig` is `true`.
84
123
  *
85
124
  * @returns an object containing the transformed code, source maps, and any errors
86
125
  * that occurred during parsing or transformation.
87
126
  *
127
+ * @category Utilities
88
128
  * @experimental
89
129
  */
90
- declare function transformSync(filename: string, sourceText: string, options?: BindingEnhancedTransformOptions | null, cache?: TsconfigCache | null): TransformResult;
130
+ declare function transformSync(filename: string, sourceText: string, options?: TransformOptions$1 | null, cache?: TsconfigCache | null): TransformResult;
91
131
  //#endregion
92
- export { TsconfigRawOptions as a, MinifyOptions$1 as c, minifySync as d, ParseResult as f, parseSync as h, TsconfigCompilerOptions as i, MinifyResult as l, parse as m, TransformResult as n, transform as o, ParserOptions$1 as p, TsconfigCache as r, transformSync as s, BindingEnhancedTransformOptions as t, minify as u };
132
+ export { TsconfigRawOptions as a, MinifyOptions$1 as c, minifySync as d, ParseResult$1 as f, parseSync as h, TsconfigCompilerOptions as i, MinifyResult$1 as l, parse as m, TransformResult as n, transform as o, ParserOptions$1 as p, TsconfigCache as r, transformSync as s, TransformOptions$1 as t, minify as u };
@@ -1,12 +1,13 @@
1
- import { a as bindingifySourcemap, n as normalizeBindingError } from "./error-DTJQ7tjB.mjs";
1
+ import { a as bindingifySourcemap, n as normalizeBindingError } from "./error-DDzqVYr_.mjs";
2
2
  import { TsconfigCache, collapseSourcemaps, enhancedTransform, enhancedTransformSync, minify, minifySync } from "../rolldown-binding.wasi.cjs";
3
3
 
4
4
  //#region src/utils/minify.ts
5
5
  /**
6
6
  * Minify asynchronously.
7
7
  *
8
- * Note: This function can be slower than `minifySync` due to the overhead of spawning a thread.
8
+ * Note: This function can be slower than {@linkcode minifySync} due to the overhead of spawning a thread.
9
9
  *
10
+ * @category Utilities
10
11
  * @experimental
11
12
  */
12
13
  async function minify$1(filename, sourceText, options) {
@@ -21,6 +22,7 @@ async function minify$1(filename, sourceText, options) {
21
22
  /**
22
23
  * Minify synchronously.
23
24
  *
25
+ * @category Utilities
24
26
  * @experimental
25
27
  */
26
28
  function minifySync$1(filename, sourceText, options) {
@@ -41,16 +43,16 @@ function minifySync$1(filename, sourceText, options) {
41
43
  * Note: This function can be slower than `transformSync` due to the overhead of spawning a thread.
42
44
  *
43
45
  * @param filename The name of the file being transformed. If this is a
44
- * relative path, consider setting the {@link TransformOptions#cwd} option.
45
- * @param source_text The source code to transform.
46
- * @param options The transform options including tsconfig and inputMap. See {@link
47
- * BindingEnhancedTransformOptions} for more information.
46
+ * relative path, consider setting the {@linkcode TransformOptions#cwd} option.
47
+ * @param sourceText The source code to transform.
48
+ * @param options The transform options including tsconfig and inputMap. See {@linkcode TransformOptions} for more information.
48
49
  * @param cache Optional tsconfig cache for reusing resolved tsconfig across multiple transforms.
49
50
  * Only used when `options.tsconfig` is `true`.
50
51
  *
51
52
  * @returns a promise that resolves to an object containing the transformed code,
52
53
  * source maps, and any errors that occurred during parsing or transformation.
53
54
  *
55
+ * @category Utilities
54
56
  * @experimental
55
57
  */
56
58
  async function transform(filename, sourceText, options, cache) {
@@ -65,16 +67,16 @@ async function transform(filename, sourceText, options, cache) {
65
67
  * Transpile a JavaScript or TypeScript into a target ECMAScript version.
66
68
  *
67
69
  * @param filename The name of the file being transformed. If this is a
68
- * relative path, consider setting the {@link TransformOptions#cwd} option.
69
- * @param source_text The source code to transform.
70
- * @param options The transform options including tsconfig and inputMap. See {@link
71
- * BindingEnhancedTransformOptions} for more information.
70
+ * relative path, consider setting the {@linkcode TransformOptions#cwd} option.
71
+ * @param sourceText The source code to transform.
72
+ * @param options The transform options including tsconfig and inputMap. See {@linkcode TransformOptions} for more information.
72
73
  * @param cache Optional tsconfig cache for reusing resolved tsconfig across multiple transforms.
73
74
  * Only used when `options.tsconfig` is `true`.
74
75
  *
75
76
  * @returns an object containing the transformed code, source maps, and any errors
76
77
  * that occurred during parsing or transformation.
77
78
  *
79
+ * @category Utilities
78
80
  * @experimental
79
81
  */
80
82
  function transformSync(filename, sourceText, options, cache) {
@@ -1,4 +1,6 @@
1
- //#region ../../node_modules/.pnpm/@oxc-project+types@0.113.0/node_modules/@oxc-project/types/types.d.ts
1
+ declare namespace types_d_exports {
2
+ export { AccessorProperty, AccessorPropertyType, Argument, ArrayAssignmentTarget, ArrayExpression, ArrayExpressionElement, ArrayPattern, ArrowFunctionExpression, AssignmentExpression, AssignmentOperator, AssignmentPattern, AssignmentTarget, AssignmentTargetMaybeDefault, AssignmentTargetPattern, AssignmentTargetProperty, AssignmentTargetPropertyIdentifier, AssignmentTargetPropertyProperty, AssignmentTargetRest, AssignmentTargetWithDefault, AwaitExpression, BigIntLiteral, BinaryExpression, BinaryOperator, BindingIdentifier, BindingPattern, BindingProperty, BindingRestElement, BlockStatement, BooleanLiteral, BreakStatement, CallExpression, CatchClause, ChainElement, ChainExpression, Class, ClassBody, ClassElement, ClassType, ComputedMemberExpression, ConditionalExpression, ContinueStatement, DebuggerStatement, Declaration, Decorator, Directive, DoWhileStatement, EmptyStatement, ExportAllDeclaration, ExportDefaultDeclaration, ExportDefaultDeclarationKind, ExportNamedDeclaration, ExportSpecifier, Expression, ExpressionStatement, ForInStatement, ForOfStatement, ForStatement, ForStatementInit, ForStatementLeft, FormalParameter, FormalParameterRest, Function, FunctionBody, FunctionType, Hashbang, IdentifierName, IdentifierReference, IfStatement, ImportAttribute, ImportAttributeKey, ImportDeclaration, ImportDeclarationSpecifier, ImportDefaultSpecifier, ImportExpression, ImportNamespaceSpecifier, ImportOrExportKind, ImportPhase, ImportSpecifier, JSDocNonNullableType, JSDocNullableType, JSDocUnknownType, JSXAttribute, JSXAttributeItem, JSXAttributeName, JSXAttributeValue, JSXChild, JSXClosingElement, JSXClosingFragment, JSXElement, JSXElementName, JSXEmptyExpression, JSXExpression, JSXExpressionContainer, JSXFragment, JSXIdentifier, JSXMemberExpression, JSXMemberExpressionObject, JSXNamespacedName, JSXOpeningElement, JSXOpeningFragment, JSXSpreadAttribute, JSXSpreadChild, JSXText, LabelIdentifier, LabeledStatement, LogicalExpression, LogicalOperator, MemberExpression, MetaProperty, MethodDefinition, MethodDefinitionKind, MethodDefinitionType, ModuleDeclaration, ModuleExportName, ModuleKind, NewExpression, Node, NullLiteral, NumericLiteral, ObjectAssignmentTarget, ObjectExpression, ObjectPattern, ObjectProperty, ObjectPropertyKind, ParamPattern, ParenthesizedExpression, PrivateFieldExpression, PrivateIdentifier, PrivateInExpression, Program, PropertyDefinition, PropertyDefinitionType, PropertyKey, PropertyKind, RegExpLiteral, ReturnStatement, SequenceExpression, SimpleAssignmentTarget, Span, SpreadElement, Statement, StaticBlock, StaticMemberExpression, StringLiteral, Super, SwitchCase, SwitchStatement, TSAccessibility, TSAnyKeyword, TSArrayType, TSAsExpression, TSBigIntKeyword, TSBooleanKeyword, TSCallSignatureDeclaration, TSClassImplements, TSConditionalType, TSConstructSignatureDeclaration, TSConstructorType, TSEnumBody, TSEnumDeclaration, TSEnumMember, TSEnumMemberName, TSExportAssignment, TSExternalModuleReference, TSFunctionType, TSGlobalDeclaration, TSImportEqualsDeclaration, TSImportType, TSImportTypeQualifiedName, TSImportTypeQualifier, TSIndexSignature, TSIndexSignatureName, TSIndexedAccessType, TSInferType, TSInstantiationExpression, TSInterfaceBody, TSInterfaceDeclaration, TSInterfaceHeritage, TSIntersectionType, TSIntrinsicKeyword, TSLiteral, TSLiteralType, TSMappedType, TSMappedTypeModifierOperator, TSMethodSignature, TSMethodSignatureKind, TSModuleBlock, TSModuleDeclaration, TSModuleDeclarationKind, TSModuleReference, TSNamedTupleMember, TSNamespaceExportDeclaration, TSNeverKeyword, TSNonNullExpression, TSNullKeyword, TSNumberKeyword, TSObjectKeyword, TSOptionalType, TSParameterProperty, TSParenthesizedType, TSPropertySignature, TSQualifiedName, TSRestType, TSSatisfiesExpression, TSSignature, TSStringKeyword, TSSymbolKeyword, TSTemplateLiteralType, TSThisParameter, TSThisType, TSTupleElement, TSTupleType, TSType, TSTypeAliasDeclaration, TSTypeAnnotation, TSTypeAssertion, TSTypeLiteral, TSTypeName, TSTypeOperator, TSTypeOperatorOperator, TSTypeParameter, TSTypeParameterDeclaration, TSTypeParameterInstantiation, TSTypePredicate, TSTypePredicateName, TSTypeQuery, TSTypeQueryExprName, TSTypeReference, TSUndefinedKeyword, TSUnionType, TSUnknownKeyword, TSVoidKeyword, TaggedTemplateExpression, TemplateElement, TemplateElementValue, TemplateLiteral, ThisExpression, ThrowStatement, TryStatement, UnaryExpression, UnaryOperator, UpdateExpression, UpdateOperator, V8IntrinsicExpression, VariableDeclaration, VariableDeclarationKind, VariableDeclarator, WhileStatement, WithStatement, YieldExpression };
3
+ }
2
4
  // Auto-generated code, DO NOT EDIT DIRECTLY!
3
5
  // To edit this generated file you have to edit `tasks/ast_tools/src/generators/typescript.rs`.
4
6
  interface Program extends Span {
@@ -1297,4 +1299,4 @@ interface Span {
1297
1299
  type ModuleKind = "script" | "module" | "commonjs";
1298
1300
  type Node = Program | IdentifierName | IdentifierReference | BindingIdentifier | LabelIdentifier | ThisExpression | ArrayExpression | ObjectExpression | ObjectProperty | TemplateLiteral | TaggedTemplateExpression | TemplateElement | ComputedMemberExpression | StaticMemberExpression | PrivateFieldExpression | CallExpression | NewExpression | MetaProperty | SpreadElement | UpdateExpression | UnaryExpression | BinaryExpression | PrivateInExpression | LogicalExpression | ConditionalExpression | AssignmentExpression | ArrayAssignmentTarget | ObjectAssignmentTarget | AssignmentTargetRest | AssignmentTargetWithDefault | AssignmentTargetPropertyIdentifier | AssignmentTargetPropertyProperty | SequenceExpression | Super | AwaitExpression | ChainExpression | ParenthesizedExpression | Directive | Hashbang | BlockStatement | VariableDeclaration | VariableDeclarator | EmptyStatement | ExpressionStatement | IfStatement | DoWhileStatement | WhileStatement | ForStatement | ForInStatement | ForOfStatement | ContinueStatement | BreakStatement | ReturnStatement | WithStatement | SwitchStatement | SwitchCase | LabeledStatement | ThrowStatement | TryStatement | CatchClause | DebuggerStatement | AssignmentPattern | ObjectPattern | BindingProperty | ArrayPattern | BindingRestElement | Function | FunctionBody | ArrowFunctionExpression | YieldExpression | Class | ClassBody | MethodDefinition | PropertyDefinition | PrivateIdentifier | StaticBlock | AccessorProperty | ImportExpression | ImportDeclaration | ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportAttribute | ExportNamedDeclaration | ExportDefaultDeclaration | ExportAllDeclaration | ExportSpecifier | V8IntrinsicExpression | BooleanLiteral | NullLiteral | NumericLiteral | StringLiteral | BigIntLiteral | RegExpLiteral | JSXElement | JSXOpeningElement | JSXClosingElement | JSXFragment | JSXOpeningFragment | JSXClosingFragment | JSXNamespacedName | JSXMemberExpression | JSXExpressionContainer | JSXEmptyExpression | JSXAttribute | JSXSpreadAttribute | JSXIdentifier | JSXSpreadChild | JSXText | TSThisParameter | TSEnumDeclaration | TSEnumBody | TSEnumMember | TSTypeAnnotation | TSLiteralType | TSConditionalType | TSUnionType | TSIntersectionType | TSParenthesizedType | TSTypeOperator | TSArrayType | TSIndexedAccessType | TSTupleType | TSNamedTupleMember | TSOptionalType | TSRestType | TSAnyKeyword | TSStringKeyword | TSBooleanKeyword | TSNumberKeyword | TSNeverKeyword | TSIntrinsicKeyword | TSUnknownKeyword | TSNullKeyword | TSUndefinedKeyword | TSVoidKeyword | TSSymbolKeyword | TSThisType | TSObjectKeyword | TSBigIntKeyword | TSTypeReference | TSQualifiedName | TSTypeParameterInstantiation | TSTypeParameter | TSTypeParameterDeclaration | TSTypeAliasDeclaration | TSClassImplements | TSInterfaceDeclaration | TSInterfaceBody | TSPropertySignature | TSIndexSignature | TSCallSignatureDeclaration | TSMethodSignature | TSConstructSignatureDeclaration | TSIndexSignatureName | TSInterfaceHeritage | TSTypePredicate | TSModuleDeclaration | TSGlobalDeclaration | TSModuleBlock | TSTypeLiteral | TSInferType | TSTypeQuery | TSImportType | TSImportTypeQualifiedName | TSFunctionType | TSConstructorType | TSMappedType | TSTemplateLiteralType | TSAsExpression | TSSatisfiesExpression | TSTypeAssertion | TSImportEqualsDeclaration | TSExternalModuleReference | TSNonNullExpression | Decorator | TSExportAssignment | TSNamespaceExportDeclaration | TSInstantiationExpression | JSDocNullableType | JSDocNonNullableType | JSDocUnknownType | ParamPattern;
1299
1301
  //#endregion
1300
- export { Program as t };
1302
+ export { JSXClosingElement as $, TaggedTemplateExpression as $n, TSFunctionType as $t, ExportAllDeclaration as A, TSRestType as An, ReturnStatement as At, IdentifierName as B, TSTypeAssertion as Bn, TSAsExpression as Bt, ClassBody as C, TSNumberKeyword as Cn, ObjectPattern as Ct, Decorator as D, TSParenthesizedType as Dn, Program as Dt, DebuggerStatement as E, TSParameterProperty as En, PrivateIdentifier as Et, ForInStatement as F, TSThisParameter as Fn, Super as Ft, ImportDefaultSpecifier as G, TSTypeParameterInstantiation as Gn, TSConditionalType as Gt, IfStatement as H, TSTypeOperator as Hn, TSBooleanKeyword as Ht, ForOfStatement as I, TSThisType as In, SwitchCase as It, ImportSpecifier as J, TSTypeReference as Jn, TSEnumBody as Jt, ImportExpression as K, TSTypePredicate as Kn, TSConstructSignatureDeclaration as Kt, ForStatement as L, TSTupleType as Ln, SwitchStatement as Lt, ExportNamedDeclaration as M, TSStringKeyword as Mn, SpreadElement as Mt, ExportSpecifier as N, TSSymbolKeyword as Nn, StaticBlock as Nt, DoWhileStatement as O, TSPropertySignature as On, PropertyDefinition as Ot, ExpressionStatement as P, TSTemplateLiteralType as Pn, StringLiteral as Pt, JSXAttribute as Q, TSVoidKeyword as Qn, TSExternalModuleReference as Qt, FormalParameterRest as R, TSTypeAliasDeclaration as Rn, TSAnyKeyword as Rt, Class as S, TSNullKeyword as Sn, ObjectExpression as St, ContinueStatement as T, TSOptionalType as Tn, ParenthesizedExpression as Tt, ImportAttribute as U, TSTypeParameter as Un, TSCallSignatureDeclaration as Ut, IdentifierReference as V, TSTypeLiteral as Vn, TSBigIntKeyword as Vt, ImportDeclaration as W, TSTypeParameterDeclaration as Wn, TSClassImplements as Wt, JSDocNullableType as X, TSUnionType as Xn, TSEnumMember as Xt, JSDocNonNullableType as Y, TSUndefinedKeyword as Yn, TSEnumDeclaration as Yt, JSDocUnknownType as Z, TSUnknownKeyword as Zn, TSExportAssignment as Zt, BooleanLiteral as _, TSModuleDeclaration as _n, MetaProperty as _t, AssignmentExpression as a, TSIndexedAccessType as an, UnaryExpression as ar, JSXIdentifier as at, CatchClause as b, TSNeverKeyword as bn, NullLiteral as bt, AssignmentTargetPropertyProperty as c, TSInterfaceBody as cn, VariableDeclaration as cr, JSXOpeningElement as ct, BigIntLiteral as d, TSIntersectionType as dn, WithStatement as dr, JSXSpreadChild as dt, TSGlobalDeclaration as en, TemplateElement as er, JSXClosingFragment as et, BinaryExpression as f, TSIntrinsicKeyword as fn, YieldExpression as fr, JSXText as ft, BlockStatement as g, TSModuleBlock as gn, MemberExpression as gt, BindingRestElement as h, TSMethodSignature as hn, LogicalExpression as ht, ArrowFunctionExpression as i, TSIndexSignatureName as in, TryStatement as ir, JSXFragment as it, ExportDefaultDeclaration as j, TSSatisfiesExpression as jn, SequenceExpression as jt, EmptyStatement as k, TSQualifiedName as kn, RegExpLiteral as kt, AssignmentTargetRest as l, TSInterfaceDeclaration as ln, VariableDeclarator as lr, JSXOpeningFragment as lt, BindingProperty as m, TSMappedType as mn, LabeledStatement as mt, ArrayExpression as n, TSImportType as nn, ThisExpression as nr, JSXEmptyExpression as nt, AssignmentPattern as o, TSInferType as on, UpdateExpression as or, JSXMemberExpression as ot, BindingIdentifier as p, TSLiteralType as pn, types_d_exports as pr, LabelIdentifier as pt, ImportNamespaceSpecifier as q, TSTypeQuery as qn, TSConstructorType as qt, ArrayPattern as r, TSIndexSignature as rn, ThrowStatement as rr, JSXExpressionContainer as rt, AssignmentTargetProperty as s, TSInstantiationExpression as sn, V8IntrinsicExpression as sr, JSXNamespacedName as st, AccessorProperty as t, TSImportEqualsDeclaration as tn, TemplateLiteral as tr, JSXElement as tt, AwaitExpression as u, TSInterfaceHeritage as un, WhileStatement as ur, JSXSpreadAttribute as ut, BreakStatement as v, TSNamedTupleMember as vn, MethodDefinition as vt, ConditionalExpression as w, TSObjectKeyword as wn, ObjectProperty as wt, ChainExpression as x, TSNonNullExpression as xn, NumericLiteral as xt, CallExpression as y, TSNamespaceExportDeclaration as yn, NewExpression as yt, Function as z, TSTypeAnnotation as zn, TSArrayType as zt };
@@ -1,8 +1,8 @@
1
1
  import { o as logMultiplyNotifyOption } from "./logs-CCc_0vhs.mjs";
2
- import { _ as LOG_LEVEL_WARN } from "./bindingify-input-options-B32m-wO8.mjs";
3
- import { h as arraify } from "./composable-filters-CIxSuZSM.mjs";
4
- import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-nvl-pSiK.mjs";
5
- import { t as aggregateBindingErrorsIntoJsError } from "./error-DTJQ7tjB.mjs";
2
+ import { _ as LOG_LEVEL_WARN } from "./bindingify-input-options-CSIYh5O4.mjs";
3
+ import { h as arraify } from "./composable-filters-C_jBPRPI.mjs";
4
+ import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-BV90HQts.mjs";
5
+ import { t as aggregateBindingErrorsIntoJsError } from "./error-DDzqVYr_.mjs";
6
6
  import { BindingWatcher, shutdownAsyncRuntime } from "../rolldown-binding.wasi.cjs";
7
7
 
8
8
  //#region ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
@@ -1,12 +1,13 @@
1
- import { n as normalizeBindingError, s as bindingifySourcemap } from "./error-DfXdOVMF.js";
1
+ import { n as normalizeBindingError, s as bindingifySourcemap } from "./error-D4EjR7H_.js";
2
2
  import { TsconfigCache, collapseSourcemaps, enhancedTransform, enhancedTransformSync, minify, minifySync } from "./rolldown-binding.wasi-browser.js";
3
3
 
4
4
  //#region src/utils/minify.ts
5
5
  /**
6
6
  * Minify asynchronously.
7
7
  *
8
- * Note: This function can be slower than `minifySync` due to the overhead of spawning a thread.
8
+ * Note: This function can be slower than {@linkcode minifySync} due to the overhead of spawning a thread.
9
9
  *
10
+ * @category Utilities
10
11
  * @experimental
11
12
  */
12
13
  async function minify$1(filename, sourceText, options) {
@@ -21,6 +22,7 @@ async function minify$1(filename, sourceText, options) {
21
22
  /**
22
23
  * Minify synchronously.
23
24
  *
25
+ * @category Utilities
24
26
  * @experimental
25
27
  */
26
28
  function minifySync$1(filename, sourceText, options) {
@@ -41,16 +43,16 @@ function minifySync$1(filename, sourceText, options) {
41
43
  * Note: This function can be slower than `transformSync` due to the overhead of spawning a thread.
42
44
  *
43
45
  * @param filename The name of the file being transformed. If this is a
44
- * relative path, consider setting the {@link TransformOptions#cwd} option.
45
- * @param source_text The source code to transform.
46
- * @param options The transform options including tsconfig and inputMap. See {@link
47
- * BindingEnhancedTransformOptions} for more information.
46
+ * relative path, consider setting the {@linkcode TransformOptions#cwd} option.
47
+ * @param sourceText The source code to transform.
48
+ * @param options The transform options including tsconfig and inputMap. See {@linkcode TransformOptions} for more information.
48
49
  * @param cache Optional tsconfig cache for reusing resolved tsconfig across multiple transforms.
49
50
  * Only used when `options.tsconfig` is `true`.
50
51
  *
51
52
  * @returns a promise that resolves to an object containing the transformed code,
52
53
  * source maps, and any errors that occurred during parsing or transformation.
53
54
  *
55
+ * @category Utilities
54
56
  * @experimental
55
57
  */
56
58
  async function transform(filename, sourceText, options, cache) {
@@ -65,16 +67,16 @@ async function transform(filename, sourceText, options, cache) {
65
67
  * Transpile a JavaScript or TypeScript into a target ECMAScript version.
66
68
  *
67
69
  * @param filename The name of the file being transformed. If this is a
68
- * relative path, consider setting the {@link TransformOptions#cwd} option.
69
- * @param source_text The source code to transform.
70
- * @param options The transform options including tsconfig and inputMap. See {@link
71
- * BindingEnhancedTransformOptions} for more information.
70
+ * relative path, consider setting the {@linkcode TransformOptions#cwd} option.
71
+ * @param sourceText The source code to transform.
72
+ * @param options The transform options including tsconfig and inputMap. See {@linkcode TransformOptions} for more information.
72
73
  * @param cache Optional tsconfig cache for reusing resolved tsconfig across multiple transforms.
73
74
  * Only used when `options.tsconfig` is `true`.
74
75
  *
75
76
  * @returns an object containing the transformed code, source maps, and any errors
76
77
  * that occurred during parsing or transformation.
77
78
  *
79
+ * @category Utilities
78
80
  * @experimental
79
81
  */
80
82
  function transformSync(filename, sourceText, options, cache) {