@rolldown/browser 1.0.0-rc.1 → 1.0.0-rc.10

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 (59) hide show
  1. package/dist/cli.mjs +708 -1101
  2. package/dist/config.d.mts +9 -4
  3. package/dist/config.mjs +9 -13
  4. package/dist/{shared/constructors-BTW-c3jX.mjs → constructors-DsfxKD6A.js} +14 -7
  5. package/dist/error-BeZaDkS8.js +157 -0
  6. package/dist/experimental-index.browser.mjs +74 -15
  7. package/dist/experimental-index.d.mts +128 -56
  8. package/dist/experimental-index.mjs +76 -17
  9. package/dist/filter-index.d.mts +1 -1
  10. package/dist/filter-index.mjs +25 -6
  11. package/dist/get-log-filter.d.mts +3 -7
  12. package/dist/get-log-filter.mjs +23 -3
  13. package/dist/index.browser.mjs +70 -75
  14. package/dist/index.d.mts +4 -4
  15. package/dist/index.mjs +10 -12
  16. package/dist/{normalize-string-or-regex-CL-PJZI7.js → normalize-string-or-regex-TtAGUp42.js} +6 -12
  17. package/dist/parallel-plugin-worker.mjs +6 -7
  18. package/dist/parallel-plugin.d.mts +4 -4
  19. package/dist/parallel-plugin.mjs +1 -2
  20. package/dist/parse-ast-index.d.mts +27 -3
  21. package/dist/parse-ast-index.mjs +60 -3
  22. package/dist/plugins-index.browser.mjs +8 -7
  23. package/dist/plugins-index.d.mts +7 -4
  24. package/dist/plugins-index.mjs +8 -7
  25. package/dist/resolve-tsconfig-DThkUPSZ.js +112 -0
  26. package/dist/rolldown-binding.wasi-browser.js +6 -1
  27. package/dist/rolldown-binding.wasi.cjs +6 -1
  28. package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
  29. package/dist/{rolldown-build-C4tDS_XC.js → rolldown-build-Chx5S-TB.js} +1038 -744
  30. package/dist/shared/{bindingify-input-options-Bp2kpiI8.mjs → bindingify-input-options-Czbczr8Z.mjs} +102 -165
  31. package/dist/shared/{composable-filters-CIxSuZSM.mjs → composable-filters-B2ByPP8y.mjs} +1 -4
  32. package/dist/shared/{constructors-5bt5oBhE.d.mts → constructors-BVnf_fH1.d.mts} +13 -4
  33. package/dist/{constructors-B8gqcrFr.js → shared/constructors-CemeNi29.mjs} +14 -7
  34. package/dist/shared/{define-config-Dlptvz3X.mjs → define-config-DJOr6Iwt.mjs} +1 -2
  35. package/dist/shared/define-config-i6TWE2hm.d.mts +3855 -0
  36. package/dist/shared/error-CQ6njWsV.mjs +86 -0
  37. package/dist/shared/get-log-filter-semyr3Lj.d.mts +35 -0
  38. package/dist/shared/{load-config-BBZgIUGN.mjs → load-config-CxvL5JxT.mjs} +11 -5
  39. package/dist/shared/{logging-Nvu645a7.d.mts → logging-C6h4g8dA.d.mts} +6 -6
  40. package/dist/shared/{logs-B2CASPcx.mjs → logs-D80CXhvg.mjs} +6 -9
  41. package/dist/shared/{normalize-string-or-regex-DIwprzLy.mjs → normalize-string-or-regex-CF3Uz6aU.mjs} +2 -5
  42. package/dist/shared/parse-CRhjbrcT.mjs +73 -0
  43. package/dist/shared/{prompt-B6NrDD1-.mjs → prompt-BYQIwEjg.mjs} +4 -6
  44. package/dist/shared/resolve-tsconfig-Cwoo4h_o.mjs +112 -0
  45. package/dist/shared/{rolldown-C0_W0QdY.mjs → rolldown-C3wFxOwq.mjs} +2 -4
  46. package/dist/shared/rolldown-build-ChZOz6BP.mjs +3318 -0
  47. package/dist/shared/transform-DEgNAQOQ.d.mts +149 -0
  48. package/dist/shared/{types-CIYK49jr.d.mts → types-Cx3HYorz.d.mts} +5 -3
  49. package/dist/shared/{watch-eIop0yN6.mjs → watch-C1jC1oFT.mjs} +71 -76
  50. package/dist/utils-index.browser.mjs +2414 -0
  51. package/dist/utils-index.d.mts +374 -0
  52. package/dist/utils-index.mjs +2415 -0
  53. package/package.json +1 -1
  54. package/dist/cli-setup.d.mts +0 -1
  55. package/dist/cli-setup.mjs +0 -16
  56. package/dist/shared/define-config-CDlEOpr1.d.mts +0 -3531
  57. package/dist/shared/parse-ast-index-2ahkCVK6.mjs +0 -98
  58. package/dist/shared/rolldown-build-DLuUhuNw.mjs +0 -2368
  59. /package/dist/shared/{utils-CqMTwlsR.d.mts → utils-6wxe_LMG.d.mts} +0 -0
@@ -1,12 +1,12 @@
1
- import { C as Plugin } from "./shared/define-config-CDlEOpr1.mjs";
2
- import { i as MaybePromise } from "./shared/utils-CqMTwlsR.mjs";
1
+ import { w as Plugin } from "./shared/define-config-i6TWE2hm.mjs";
2
+ import { i as MaybePromise } from "./shared/utils-6wxe_LMG.mjs";
3
3
 
4
4
  //#region src/plugin/parallel-plugin-implementation.d.ts
5
5
  type ParallelPluginImplementation = Plugin;
6
6
  type Context = {
7
7
  /**
8
- * Thread number
9
- */
8
+ * Thread number
9
+ */
10
10
  threadNumber: number;
11
11
  };
12
12
  declare function defineParallelPluginImplementation<Options>(plugin: (Options: Options, context: Context) => MaybePromise<ParallelPluginImplementation>): (Options: Options, context: Context) => MaybePromise<ParallelPluginImplementation>;
@@ -2,6 +2,5 @@
2
2
  function defineParallelPluginImplementation(plugin) {
3
3
  return plugin;
4
4
  }
5
-
6
5
  //#endregion
7
- export { defineParallelPluginImplementation };
6
+ export { defineParallelPluginImplementation };
@@ -1,8 +1,32 @@
1
- import { t as Program } from "./shared/types-CIYK49jr.mjs";
2
- import { ParseResult, ParserOptions } from "./binding.cjs";
1
+ import { Dt as Program } from "./shared/types-Cx3HYorz.mjs";
2
+ import { ParseResult as ParseResult$1, ParserOptions as ParserOptions$1 } from "./binding.cjs";
3
3
 
4
4
  //#region src/parse-ast-index.d.ts
5
+ /**
6
+ * @hidden
7
+ */
8
+ type ParseResult = ParseResult$1;
9
+ /**
10
+ * @hidden
11
+ */
12
+ type ParserOptions = ParserOptions$1;
13
+ /**
14
+ * Parse code synchronously and return the AST.
15
+ *
16
+ * This function is similar to Rollup's `parseAst` function.
17
+ * Prefer using {@linkcode parseSync} instead of this function as it has more information in the return value.
18
+ *
19
+ * @category Utilities
20
+ */
5
21
  declare function parseAst(sourceText: string, options?: ParserOptions | null, filename?: string): Program;
22
+ /**
23
+ * Parse code asynchronously and return the AST.
24
+ *
25
+ * This function is similar to Rollup's `parseAstAsync` function.
26
+ * Prefer using {@linkcode parseAsync} instead of this function as it has more information in the return value.
27
+ *
28
+ * @category Utilities
29
+ */
6
30
  declare function parseAstAsync(sourceText: string, options?: ParserOptions | null, filename?: string): Promise<Program>;
7
31
  //#endregion
8
- export { type ParseResult, type ParserOptions, parseAst, parseAstAsync };
32
+ export { ParseResult, ParserOptions, parseAst, parseAstAsync };
@@ -1,3 +1,60 @@
1
- import { n as parseAstAsync, t as parseAst } from "./shared/parse-ast-index-2ahkCVK6.mjs";
2
-
3
- export { parseAst, parseAstAsync };
1
+ import { l as locate, n as error, s as logParseError, t as augmentCodeLocation, u as getCodeFrame } from "./shared/logs-D80CXhvg.mjs";
2
+ import { n as parseSync, t as parse } from "./shared/parse-CRhjbrcT.mjs";
3
+ //#region src/parse-ast-index.ts
4
+ function wrap(result, filename, sourceText) {
5
+ if (result.errors.length > 0) return normalizeParseError(filename, sourceText, result.errors);
6
+ return result.program;
7
+ }
8
+ function normalizeParseError(filename, sourceText, errors) {
9
+ let message = `Parse failed with ${errors.length} error${errors.length < 2 ? "" : "s"}:\n`;
10
+ const pos = errors[0]?.labels?.[0]?.start;
11
+ for (let i = 0; i < errors.length; i++) {
12
+ if (i >= 5) {
13
+ message += "\n...";
14
+ break;
15
+ }
16
+ const e = errors[i];
17
+ message += e.message + "\n" + e.labels.map((label) => {
18
+ const location = locate(sourceText, label.start, { offsetLine: 1 });
19
+ if (!location) return;
20
+ return getCodeFrame(sourceText, location.line, location.column);
21
+ }).filter(Boolean).join("\n");
22
+ }
23
+ const log = logParseError(message, filename, pos);
24
+ if (pos !== void 0 && filename) augmentCodeLocation(log, pos, sourceText, filename);
25
+ return error(log);
26
+ }
27
+ const defaultParserOptions = {
28
+ lang: "js",
29
+ preserveParens: false
30
+ };
31
+ /**
32
+ * Parse code synchronously and return the AST.
33
+ *
34
+ * This function is similar to Rollup's `parseAst` function.
35
+ * Prefer using {@linkcode parseSync} instead of this function as it has more information in the return value.
36
+ *
37
+ * @category Utilities
38
+ */
39
+ function parseAst(sourceText, options, filename) {
40
+ return wrap(parseSync(filename ?? "file.js", sourceText, {
41
+ ...defaultParserOptions,
42
+ ...options
43
+ }), filename, sourceText);
44
+ }
45
+ /**
46
+ * Parse code asynchronously and return the AST.
47
+ *
48
+ * This function is similar to Rollup's `parseAstAsync` function.
49
+ * Prefer using {@linkcode parseAsync} instead of this function as it has more information in the return value.
50
+ *
51
+ * @category Utilities
52
+ */
53
+ async function parseAstAsync(sourceText, options, filename) {
54
+ return wrap(await parse(filename ?? "file.js", sourceText, {
55
+ ...defaultParserOptions,
56
+ ...options
57
+ }), filename, sourceText);
58
+ }
59
+ //#endregion
60
+ export { parseAst, parseAstAsync };
@@ -1,12 +1,11 @@
1
- import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./normalize-string-or-regex-CL-PJZI7.js";
2
- import { t as esmExternalRequirePlugin } from "./constructors-B8gqcrFr.js";
3
-
1
+ import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./normalize-string-or-regex-TtAGUp42.js";
2
+ import { t as esmExternalRequirePlugin } from "./constructors-DsfxKD6A.js";
4
3
  //#region src/builtin-plugin/replace-plugin.ts
5
4
  /**
6
5
  * Replaces targeted strings in files while bundling.
7
6
  *
8
7
  * @example
9
- * // Basic usage
8
+ * **Basic usage**
10
9
  * ```js
11
10
  * replacePlugin({
12
11
  * 'process.env.NODE_ENV': JSON.stringify('production'),
@@ -14,7 +13,7 @@ import { t as esmExternalRequirePlugin } from "./constructors-B8gqcrFr.js";
14
13
  * })
15
14
  * ```
16
15
  * @example
17
- * // With options
16
+ * **With options**
18
17
  * ```js
19
18
  * replacePlugin({
20
19
  * 'process.env.NODE_ENV': JSON.stringify('production'),
@@ -23,6 +22,9 @@ import { t as esmExternalRequirePlugin } from "./constructors-B8gqcrFr.js";
23
22
  * preventAssignment: false,
24
23
  * })
25
24
  * ```
25
+ *
26
+ * @see https://rolldown.rs/builtin-plugins/replace
27
+ * @category Builtin Plugins
26
28
  */
27
29
  function replacePlugin(values = {}, options = {}) {
28
30
  Object.keys(values).forEach((key) => {
@@ -34,6 +36,5 @@ function replacePlugin(values = {}, options = {}) {
34
36
  values
35
37
  }));
36
38
  }
37
-
38
39
  //#endregion
39
- export { esmExternalRequirePlugin, replacePlugin };
40
+ export { esmExternalRequirePlugin, replacePlugin };
@@ -1,5 +1,5 @@
1
- import { t as BuiltinPlugin } from "./shared/utils-CqMTwlsR.mjs";
2
- import { t as esmExternalRequirePlugin } from "./shared/constructors-5bt5oBhE.mjs";
1
+ import { t as BuiltinPlugin } from "./shared/utils-6wxe_LMG.mjs";
2
+ import { t as esmExternalRequirePlugin } from "./shared/constructors-BVnf_fH1.mjs";
3
3
  import { BindingReplacePluginConfig } from "../binding.cjs";
4
4
 
5
5
  //#region src/builtin-plugin/replace-plugin.d.ts
@@ -7,7 +7,7 @@ import { BindingReplacePluginConfig } from "../binding.cjs";
7
7
  * Replaces targeted strings in files while bundling.
8
8
  *
9
9
  * @example
10
- * // Basic usage
10
+ * **Basic usage**
11
11
  * ```js
12
12
  * replacePlugin({
13
13
  * 'process.env.NODE_ENV': JSON.stringify('production'),
@@ -15,7 +15,7 @@ import { BindingReplacePluginConfig } from "../binding.cjs";
15
15
  * })
16
16
  * ```
17
17
  * @example
18
- * // With options
18
+ * **With options**
19
19
  * ```js
20
20
  * replacePlugin({
21
21
  * 'process.env.NODE_ENV': JSON.stringify('production'),
@@ -24,6 +24,9 @@ import { BindingReplacePluginConfig } from "../binding.cjs";
24
24
  * preventAssignment: false,
25
25
  * })
26
26
  * ```
27
+ *
28
+ * @see https://rolldown.rs/builtin-plugins/replace
29
+ * @category Builtin Plugins
27
30
  */
28
31
  declare function replacePlugin(values?: BindingReplacePluginConfig["values"], options?: Omit<BindingReplacePluginConfig, "values">): BuiltinPlugin;
29
32
  //#endregion
@@ -1,12 +1,11 @@
1
- import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-DIwprzLy.mjs";
2
- import { t as esmExternalRequirePlugin } from "./shared/constructors-BTW-c3jX.mjs";
3
-
1
+ import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-CF3Uz6aU.mjs";
2
+ import { t as esmExternalRequirePlugin } from "./shared/constructors-CemeNi29.mjs";
4
3
  //#region src/builtin-plugin/replace-plugin.ts
5
4
  /**
6
5
  * Replaces targeted strings in files while bundling.
7
6
  *
8
7
  * @example
9
- * // Basic usage
8
+ * **Basic usage**
10
9
  * ```js
11
10
  * replacePlugin({
12
11
  * 'process.env.NODE_ENV': JSON.stringify('production'),
@@ -14,7 +13,7 @@ import { t as esmExternalRequirePlugin } from "./shared/constructors-BTW-c3jX.mj
14
13
  * })
15
14
  * ```
16
15
  * @example
17
- * // With options
16
+ * **With options**
18
17
  * ```js
19
18
  * replacePlugin({
20
19
  * 'process.env.NODE_ENV': JSON.stringify('production'),
@@ -23,6 +22,9 @@ import { t as esmExternalRequirePlugin } from "./shared/constructors-BTW-c3jX.mj
23
22
  * preventAssignment: false,
24
23
  * })
25
24
  * ```
25
+ *
26
+ * @see https://rolldown.rs/builtin-plugins/replace
27
+ * @category Builtin Plugins
26
28
  */
27
29
  function replacePlugin(values = {}, options = {}) {
28
30
  Object.keys(values).forEach((key) => {
@@ -34,6 +36,5 @@ function replacePlugin(values = {}, options = {}) {
34
36
  values
35
37
  }));
36
38
  }
37
-
38
39
  //#endregion
39
- export { esmExternalRequirePlugin, replacePlugin };
40
+ export { esmExternalRequirePlugin, replacePlugin };
@@ -0,0 +1,112 @@
1
+ import { n as normalizeBindingError, s as bindingifySourcemap } from "./error-BeZaDkS8.js";
2
+ import { TsconfigCache, collapseSourcemaps, enhancedTransform, enhancedTransformSync, minify, minifySync, resolveTsconfig } from "./rolldown-binding.wasi-browser.js";
3
+ //#region src/utils/minify.ts
4
+ /**
5
+ * Minify asynchronously.
6
+ *
7
+ * Note: This function can be slower than {@linkcode minifySync} due to the overhead of spawning a thread.
8
+ *
9
+ * @category Utilities
10
+ * @experimental
11
+ */
12
+ async function minify$1(filename, sourceText, options) {
13
+ const inputMap = bindingifySourcemap(options?.inputMap);
14
+ const result = await minify(filename, sourceText, options);
15
+ if (result.map && inputMap) result.map = {
16
+ version: 3,
17
+ ...collapseSourcemaps([inputMap, bindingifySourcemap(result.map)])
18
+ };
19
+ return result;
20
+ }
21
+ /**
22
+ * Minify synchronously.
23
+ *
24
+ * @category Utilities
25
+ * @experimental
26
+ */
27
+ function minifySync$1(filename, sourceText, options) {
28
+ const inputMap = bindingifySourcemap(options?.inputMap);
29
+ const result = minifySync(filename, sourceText, options);
30
+ if (result.map && inputMap) result.map = {
31
+ version: 3,
32
+ ...collapseSourcemaps([inputMap, bindingifySourcemap(result.map)])
33
+ };
34
+ return result;
35
+ }
36
+ //#endregion
37
+ //#region src/utils/transform.ts
38
+ const yarnPnp$1 = typeof process === "object" && !!process.versions?.pnp;
39
+ /**
40
+ * Transpile a JavaScript or TypeScript into a target ECMAScript version, asynchronously.
41
+ *
42
+ * Note: This function can be slower than `transformSync` due to the overhead of spawning a thread.
43
+ *
44
+ * @param filename The name of the file being transformed. If this is a
45
+ * relative path, consider setting the {@linkcode TransformOptions#cwd} option.
46
+ * @param sourceText The source code to transform.
47
+ * @param options The transform options including tsconfig and inputMap. See {@linkcode TransformOptions} for more information.
48
+ * @param cache Optional tsconfig cache for reusing resolved tsconfig across multiple transforms.
49
+ * Only used when `options.tsconfig` is `true`.
50
+ *
51
+ * @returns a promise that resolves to an object containing the transformed code,
52
+ * source maps, and any errors that occurred during parsing or transformation.
53
+ *
54
+ * @category Utilities
55
+ * @experimental
56
+ */
57
+ async function transform(filename, sourceText, options, cache) {
58
+ const result = await enhancedTransform(filename, sourceText, options, cache, yarnPnp$1);
59
+ return {
60
+ ...result,
61
+ errors: result.errors.map(normalizeBindingError),
62
+ warnings: result.warnings.map((w) => w.field0)
63
+ };
64
+ }
65
+ /**
66
+ * Transpile a JavaScript or TypeScript into a target ECMAScript version.
67
+ *
68
+ * @param filename The name of the file being transformed. If this is a
69
+ * relative path, consider setting the {@linkcode TransformOptions#cwd} option.
70
+ * @param sourceText The source code to transform.
71
+ * @param options The transform options including tsconfig and inputMap. See {@linkcode TransformOptions} for more information.
72
+ * @param cache Optional tsconfig cache for reusing resolved tsconfig across multiple transforms.
73
+ * Only used when `options.tsconfig` is `true`.
74
+ *
75
+ * @returns an object containing the transformed code, source maps, and any errors
76
+ * that occurred during parsing or transformation.
77
+ *
78
+ * @category Utilities
79
+ * @experimental
80
+ */
81
+ function transformSync(filename, sourceText, options, cache) {
82
+ const result = enhancedTransformSync(filename, sourceText, options, cache, yarnPnp$1);
83
+ return {
84
+ ...result,
85
+ errors: result.errors.map(normalizeBindingError),
86
+ warnings: result.warnings.map((w) => w.field0)
87
+ };
88
+ }
89
+ //#endregion
90
+ //#region src/utils/resolve-tsconfig.ts
91
+ const yarnPnp = typeof process === "object" && !!process.versions?.pnp;
92
+ /**
93
+ * Cache for tsconfig resolution to avoid redundant file system operations.
94
+ *
95
+ * The cache stores resolved tsconfig configurations keyed by their file paths.
96
+ * When transforming multiple files in the same project, tsconfig lookups are
97
+ * deduplicated, improving performance.
98
+ *
99
+ * @category Utilities
100
+ * @experimental
101
+ */
102
+ var TsconfigCache$1 = class extends TsconfigCache {
103
+ constructor() {
104
+ super(yarnPnp);
105
+ }
106
+ };
107
+ /** @hidden This is only expected to be used by Vite */
108
+ function resolveTsconfig$1(filename, cache) {
109
+ return resolveTsconfig(filename, cache, yarnPnp);
110
+ }
111
+ //#endregion
112
+ export { minify$1 as a, transformSync as i, resolveTsconfig$1 as n, minifySync$1 as o, transform as r, TsconfigCache$1 as t };
@@ -92,6 +92,7 @@ export const BindingCallableBuiltinPlugin = __napiModule.exports.BindingCallable
92
92
  export const BindingChunkingContext = __napiModule.exports.BindingChunkingContext
93
93
  export const BindingDecodedMap = __napiModule.exports.BindingDecodedMap
94
94
  export const BindingDevEngine = __napiModule.exports.BindingDevEngine
95
+ export const BindingLoadPluginContext = __napiModule.exports.BindingLoadPluginContext
95
96
  export const BindingMagicString = __napiModule.exports.BindingMagicString
96
97
  export const BindingModuleInfo = __napiModule.exports.BindingModuleInfo
97
98
  export const BindingNormalizedOptions = __napiModule.exports.BindingNormalizedOptions
@@ -110,6 +111,7 @@ export const BindingWatcherEvent = __napiModule.exports.BindingWatcherEvent
110
111
  export const ParallelJsPluginRegistry = __napiModule.exports.ParallelJsPluginRegistry
111
112
  export const ScheduledBuild = __napiModule.exports.ScheduledBuild
112
113
  export const TraceSubscriberGuard = __napiModule.exports.TraceSubscriberGuard
114
+ export const TsconfigCache = __napiModule.exports.TsconfigCache
113
115
  export const BindingAttachDebugInfo = __napiModule.exports.BindingAttachDebugInfo
114
116
  export const BindingBuiltinPluginName = __napiModule.exports.BindingBuiltinPluginName
115
117
  export const BindingChunkModuleOrderBy = __napiModule.exports.BindingChunkModuleOrderBy
@@ -118,9 +120,12 @@ export const BindingPluginOrder = __napiModule.exports.BindingPluginOrder
118
120
  export const BindingPropertyReadSideEffects = __napiModule.exports.BindingPropertyReadSideEffects
119
121
  export const BindingPropertyWriteSideEffects = __napiModule.exports.BindingPropertyWriteSideEffects
120
122
  export const BindingRebuildStrategy = __napiModule.exports.BindingRebuildStrategy
121
- export const createTokioRuntime = __napiModule.exports.createTokioRuntime
123
+ export const collapseSourcemaps = __napiModule.exports.collapseSourcemaps
124
+ export const enhancedTransform = __napiModule.exports.enhancedTransform
125
+ export const enhancedTransformSync = __napiModule.exports.enhancedTransformSync
122
126
  export const FilterTokenKind = __napiModule.exports.FilterTokenKind
123
127
  export const initTraceSubscriber = __napiModule.exports.initTraceSubscriber
124
128
  export const registerPlugins = __napiModule.exports.registerPlugins
129
+ export const resolveTsconfig = __napiModule.exports.resolveTsconfig
125
130
  export const shutdownAsyncRuntime = __napiModule.exports.shutdownAsyncRuntime
126
131
  export const startAsyncRuntime = __napiModule.exports.startAsyncRuntime
@@ -137,6 +137,7 @@ module.exports.BindingCallableBuiltinPlugin = __napiModule.exports.BindingCallab
137
137
  module.exports.BindingChunkingContext = __napiModule.exports.BindingChunkingContext
138
138
  module.exports.BindingDecodedMap = __napiModule.exports.BindingDecodedMap
139
139
  module.exports.BindingDevEngine = __napiModule.exports.BindingDevEngine
140
+ module.exports.BindingLoadPluginContext = __napiModule.exports.BindingLoadPluginContext
140
141
  module.exports.BindingMagicString = __napiModule.exports.BindingMagicString
141
142
  module.exports.BindingModuleInfo = __napiModule.exports.BindingModuleInfo
142
143
  module.exports.BindingNormalizedOptions = __napiModule.exports.BindingNormalizedOptions
@@ -155,6 +156,7 @@ module.exports.BindingWatcherEvent = __napiModule.exports.BindingWatcherEvent
155
156
  module.exports.ParallelJsPluginRegistry = __napiModule.exports.ParallelJsPluginRegistry
156
157
  module.exports.ScheduledBuild = __napiModule.exports.ScheduledBuild
157
158
  module.exports.TraceSubscriberGuard = __napiModule.exports.TraceSubscriberGuard
159
+ module.exports.TsconfigCache = __napiModule.exports.TsconfigCache
158
160
  module.exports.BindingAttachDebugInfo = __napiModule.exports.BindingAttachDebugInfo
159
161
  module.exports.BindingBuiltinPluginName = __napiModule.exports.BindingBuiltinPluginName
160
162
  module.exports.BindingChunkModuleOrderBy = __napiModule.exports.BindingChunkModuleOrderBy
@@ -163,9 +165,12 @@ module.exports.BindingPluginOrder = __napiModule.exports.BindingPluginOrder
163
165
  module.exports.BindingPropertyReadSideEffects = __napiModule.exports.BindingPropertyReadSideEffects
164
166
  module.exports.BindingPropertyWriteSideEffects = __napiModule.exports.BindingPropertyWriteSideEffects
165
167
  module.exports.BindingRebuildStrategy = __napiModule.exports.BindingRebuildStrategy
166
- module.exports.createTokioRuntime = __napiModule.exports.createTokioRuntime
168
+ module.exports.collapseSourcemaps = __napiModule.exports.collapseSourcemaps
169
+ module.exports.enhancedTransform = __napiModule.exports.enhancedTransform
170
+ module.exports.enhancedTransformSync = __napiModule.exports.enhancedTransformSync
167
171
  module.exports.FilterTokenKind = __napiModule.exports.FilterTokenKind
168
172
  module.exports.initTraceSubscriber = __napiModule.exports.initTraceSubscriber
169
173
  module.exports.registerPlugins = __napiModule.exports.registerPlugins
174
+ module.exports.resolveTsconfig = __napiModule.exports.resolveTsconfig
170
175
  module.exports.shutdownAsyncRuntime = __napiModule.exports.shutdownAsyncRuntime
171
176
  module.exports.startAsyncRuntime = __napiModule.exports.startAsyncRuntime