@rolldown/browser 1.0.0-beta.23 → 1.0.0-beta.25

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 (42) hide show
  1. package/dist/cli.cjs +7 -7
  2. package/dist/cli.mjs +7 -7
  3. package/dist/config.cjs +3 -3
  4. package/dist/config.d.cts +2 -2
  5. package/dist/config.d.mts +2 -2
  6. package/dist/config.mjs +3 -3
  7. package/dist/experimental-index.browser.mjs +1 -1
  8. package/dist/experimental-index.cjs +2 -2
  9. package/dist/experimental-index.d.cts +2 -4
  10. package/dist/experimental-index.d.mts +2 -4
  11. package/dist/experimental-index.mjs +2 -2
  12. package/dist/experimental-runtime-types.d.ts +3 -2
  13. package/dist/filter-index.d.cts +2 -2
  14. package/dist/filter-index.d.mts +2 -2
  15. package/dist/index.browser.mjs +1 -1
  16. package/dist/index.cjs +2 -2
  17. package/dist/index.d.cts +3 -3
  18. package/dist/index.d.mts +3 -3
  19. package/dist/index.mjs +2 -2
  20. package/dist/parallel-plugin-worker.cjs +2 -2
  21. package/dist/parallel-plugin-worker.mjs +2 -2
  22. package/dist/parallel-plugin.d.cts +2 -2
  23. package/dist/parallel-plugin.d.mts +2 -2
  24. package/dist/parse-ast-index.cjs +1 -1
  25. package/dist/parse-ast-index.d.cts +1 -2
  26. package/dist/parse-ast-index.d.mts +1 -2
  27. package/dist/parse-ast-index.mjs +1 -1
  28. package/dist/rolldown-binding.wasi-browser.js +1 -4
  29. package/dist/rolldown-binding.wasi.cjs +24 -4
  30. package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
  31. package/dist/shared/{binding-CMKStSph.d.cts → binding-B9-3a5q4.d.cts} +0 -10
  32. package/dist/shared/{binding-DB58iXP8.d.mts → binding-DQYRWAqj.d.mts} +0 -10
  33. package/dist/shared/{define-config-BRkYSF9E.d.cts → define-config-BtEiHmBk.d.mts} +36 -31
  34. package/dist/shared/{define-config-CqVfqfZQ.d.mts → define-config-ZN70csxk.d.cts} +36 -31
  35. package/dist/shared/{load-config-BWbXOTbl.mjs → load-config-B_r5s5Sw.mjs} +1 -1
  36. package/dist/shared/{load-config-Bh2dNRk9.cjs → load-config-CbbGAxoK.cjs} +1 -1
  37. package/dist/shared/{parse-ast-index-CGTVCgvx.cjs → parse-ast-index-80TSV2Ni.cjs} +14 -2
  38. package/dist/shared/{parse-ast-index-BzdtcWzA.mjs → parse-ast-index-Bo5jcF9A.mjs} +9 -3
  39. package/dist/shared/{src-BA5CL--T.mjs → src-DgEwyn6q.mjs} +107 -64
  40. package/dist/shared/{src-Co_Bf7DL.cjs → src-Dtgcnc61.cjs} +106 -63
  41. package/dist/{src-C1KTaRyZ.js → src-nDvl0w95.js} +114 -65
  42. package/package.json +2 -2
package/dist/cli.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  const require_chunk = require('./shared/chunk-DDkG_k5U.cjs');
2
- const require_src = require('./shared/src-Co_Bf7DL.cjs');
2
+ const require_src = require('./shared/src-Dtgcnc61.cjs');
3
3
  const require_dist = require('./shared/dist-BVAp8sOm.cjs');
4
- require('./shared/parse-ast-index-CGTVCgvx.cjs');
5
- const require_load_config = require('./shared/load-config-Bh2dNRk9.cjs');
4
+ require('./shared/parse-ast-index-80TSV2Ni.cjs');
5
+ const require_load_config = require('./shared/load-config-CbbGAxoK.cjs');
6
6
  const node_path = require_chunk.__toESM(require("node:path"));
7
7
  const node_process = require_chunk.__toESM(require("node:process"));
8
8
  const node_util = require_chunk.__toESM(require("node:util"));
@@ -1423,8 +1423,8 @@ const process$2 = globalThis.process;
1423
1423
  const { onExit, load, unload } = signalExitWrap(processOk(process$2) ? new SignalExit(process$2) : new SignalExitFallback());
1424
1424
 
1425
1425
  //#endregion
1426
- //#region ../../node_modules/.pnpm/@oxc-project+runtime@0.75.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
1427
- var require_usingCtx = require_chunk.__commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.75.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(exports, module) {
1426
+ //#region ../../node_modules/.pnpm/@oxc-project+runtime@0.76.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
1427
+ var require_usingCtx = require_chunk.__commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.76.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(exports, module) {
1428
1428
  function _usingCtx() {
1429
1429
  var r$1 = "function" == typeof SuppressedError ? SuppressedError : function(r$2, e$1) {
1430
1430
  var n$2 = Error();
@@ -1558,7 +1558,7 @@ async function watchInner(config, cliOptions) {
1558
1558
  break;
1559
1559
  case "BUNDLE_END":
1560
1560
  await event.result.close();
1561
- logger.success(`Rebuilt ${require_src.ansis_default.bold(relativeId(event.output[0]))} in ${require_src.ansis_default.bold(ms(event.duration))}.`);
1561
+ logger.success(`Rebuilt ${require_src.ansis_default.bold(relativeId(event.output[0]))} in ${require_src.ansis_default.green(ms(event.duration))}.`);
1562
1562
  break;
1563
1563
  case "ERROR":
1564
1564
  await event.result.close();
@@ -1592,7 +1592,7 @@ async function bundleInner(config, cliOptions) {
1592
1592
  logger.log(``);
1593
1593
  const endTime = node_perf_hooks.performance.now();
1594
1594
  const duration = endTime - startTime;
1595
- logger.success(`Finished in ${require_src.ansis_default.bold(ms(duration))}`);
1595
+ logger.success(`rolldown v${require_src.version} Finished in ${require_src.ansis_default.green(ms(duration))}`);
1596
1596
  }
1597
1597
  function printBundleOutputPretty(output) {
1598
1598
  const outputEntries = collectOutputEntries(output.output);
package/dist/cli.mjs CHANGED
@@ -1,7 +1,7 @@
1
- import { __commonJS, __toESM, ansis_default, description, getInputCliKeys, getJsonSchema, getOutputCliKeys, rolldown, validateCliOptions, version, watch } from "./shared/src-BA5CL--T.mjs";
1
+ import { __commonJS, __toESM, ansis_default, description, getInputCliKeys, getJsonSchema, getOutputCliKeys, rolldown, validateCliOptions, version, watch } from "./shared/src-DgEwyn6q.mjs";
2
2
  import { arraify } from "./shared/dist-DvBwroyk.mjs";
3
- import "./shared/parse-ast-index-BzdtcWzA.mjs";
4
- import { loadConfig } from "./shared/load-config-BWbXOTbl.mjs";
3
+ import "./shared/parse-ast-index-Bo5jcF9A.mjs";
4
+ import { loadConfig } from "./shared/load-config-B_r5s5Sw.mjs";
5
5
  import path, { sep } from "node:path";
6
6
  import process$1 from "node:process";
7
7
  import { formatWithOptions, parseArgs } from "node:util";
@@ -1422,8 +1422,8 @@ const process$2 = globalThis.process;
1422
1422
  const { onExit, load, unload } = signalExitWrap(processOk(process$2) ? new SignalExit(process$2) : new SignalExitFallback());
1423
1423
 
1424
1424
  //#endregion
1425
- //#region ../../node_modules/.pnpm/@oxc-project+runtime@0.75.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
1426
- var require_usingCtx = __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.75.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(exports, module) {
1425
+ //#region ../../node_modules/.pnpm/@oxc-project+runtime@0.76.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
1426
+ var require_usingCtx = __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.76.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(exports, module) {
1427
1427
  function _usingCtx() {
1428
1428
  var r$1 = "function" == typeof SuppressedError ? SuppressedError : function(r$2, e$1) {
1429
1429
  var n$2 = Error();
@@ -1557,7 +1557,7 @@ async function watchInner(config, cliOptions) {
1557
1557
  break;
1558
1558
  case "BUNDLE_END":
1559
1559
  await event.result.close();
1560
- logger.success(`Rebuilt ${ansis_default.bold(relativeId(event.output[0]))} in ${ansis_default.bold(ms(event.duration))}.`);
1560
+ logger.success(`Rebuilt ${ansis_default.bold(relativeId(event.output[0]))} in ${ansis_default.green(ms(event.duration))}.`);
1561
1561
  break;
1562
1562
  case "ERROR":
1563
1563
  await event.result.close();
@@ -1591,7 +1591,7 @@ async function bundleInner(config, cliOptions) {
1591
1591
  logger.log(``);
1592
1592
  const endTime = performance.now();
1593
1593
  const duration = endTime - startTime;
1594
- logger.success(`Finished in ${ansis_default.bold(ms(duration))}`);
1594
+ logger.success(`rolldown v${version} Finished in ${ansis_default.green(ms(duration))}`);
1595
1595
  }
1596
1596
  function printBundleOutputPretty(output) {
1597
1597
  const outputEntries = collectOutputEntries(output.output);
package/dist/config.cjs CHANGED
@@ -1,7 +1,7 @@
1
- const require_src = require('./shared/src-Co_Bf7DL.cjs');
1
+ const require_src = require('./shared/src-Dtgcnc61.cjs');
2
2
  require('./shared/dist-BVAp8sOm.cjs');
3
- require('./shared/parse-ast-index-CGTVCgvx.cjs');
4
- const require_load_config = require('./shared/load-config-Bh2dNRk9.cjs');
3
+ require('./shared/parse-ast-index-80TSV2Ni.cjs');
4
+ const require_load_config = require('./shared/load-config-CbbGAxoK.cjs');
5
5
 
6
6
  //#region src/config.ts
7
7
  const VERSION = require_src.version;
package/dist/config.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import "./shared/binding-CMKStSph.cjs";
2
- import { ConfigExport, defineConfig } from "./shared/define-config-BRkYSF9E.cjs";
1
+ import "./shared/binding-B9-3a5q4.cjs";
2
+ import { ConfigExport, defineConfig } from "./shared/define-config-ZN70csxk.cjs";
3
3
 
4
4
  //#region src/utils/load-config.d.ts
5
5
  declare function loadConfig(configPath: string): Promise<ConfigExport>;
package/dist/config.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import "./shared/binding-DB58iXP8.mjs";
2
- import { ConfigExport, defineConfig } from "./shared/define-config-CqVfqfZQ.mjs";
1
+ import "./shared/binding-DQYRWAqj.mjs";
2
+ import { ConfigExport, defineConfig } from "./shared/define-config-BtEiHmBk.mjs";
3
3
 
4
4
  //#region src/utils/load-config.d.ts
5
5
  declare function loadConfig(configPath: string): Promise<ConfigExport>;
package/dist/config.mjs CHANGED
@@ -1,7 +1,7 @@
1
- import { defineConfig, version } from "./shared/src-BA5CL--T.mjs";
1
+ import { defineConfig, version } from "./shared/src-DgEwyn6q.mjs";
2
2
  import "./shared/dist-DvBwroyk.mjs";
3
- import "./shared/parse-ast-index-BzdtcWzA.mjs";
4
- import { loadConfig } from "./shared/load-config-BWbXOTbl.mjs";
3
+ import "./shared/parse-ast-index-Bo5jcF9A.mjs";
4
+ import { loadConfig } from "./shared/load-config-B_r5s5Sw.mjs";
5
5
 
6
6
  //#region src/config.ts
7
7
  const VERSION = version;
@@ -1,4 +1,4 @@
1
- import { BuiltinPlugin, PluginDriver, assetPlugin, buildImportAnalysisPlugin, createBundlerImpl, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./src-C1KTaRyZ.js";
1
+ import { BuiltinPlugin, PluginDriver, assetPlugin, buildImportAnalysisPlugin, createBundlerImpl, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./src-nDvl0w95.js";
2
2
  import { BindingBundler, ResolverFactory, isolatedDeclaration, moduleRunnerTransform, transform } from "./rolldown-binding.wasi-browser.js";
3
3
 
4
4
  //#region src/api/experimental.ts
@@ -1,7 +1,7 @@
1
1
  const require_chunk = require('./shared/chunk-DDkG_k5U.cjs');
2
- const require_src = require('./shared/src-Co_Bf7DL.cjs');
2
+ const require_src = require('./shared/src-Dtgcnc61.cjs');
3
3
  require('./shared/dist-BVAp8sOm.cjs');
4
- require('./shared/parse-ast-index-CGTVCgvx.cjs');
4
+ require('./shared/parse-ast-index-80TSV2Ni.cjs');
5
5
  const src_rolldown_binding_wasi_cjs = require_chunk.__toESM(require("./rolldown-binding.wasi.cjs"));
6
6
  const node_url = require_chunk.__toESM(require("node:url"));
7
7
 
@@ -1,5 +1,5 @@
1
- import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding-CMKStSph.cjs";
2
- import { BuiltinPlugin, InputOptions, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-BRkYSF9E.cjs";
1
+ import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding-B9-3a5q4.cjs";
2
+ import { BuiltinPlugin, InputOptions, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-ZN70csxk.cjs";
3
3
 
4
4
  //#region src/api/experimental.d.ts
5
5
 
@@ -15,7 +15,6 @@ type AliasPluginAlias = {
15
15
  find: string | RegExp;
16
16
  replacement: string;
17
17
  };
18
- // A temp config type for giving better user experience
19
18
  type AliasPluginConfig = {
20
19
  entries: AliasPluginAlias[];
21
20
  };
@@ -48,7 +47,6 @@ declare function replacePlugin(values?: BindingReplacePluginConfig["values"], op
48
47
  //#endregion
49
48
  //#region src/builtin-plugin/transform-plugin.d.ts
50
49
  type TransformPattern = string | RegExp | readonly (RegExp | string)[];
51
- // A temp config type for giving better user experience
52
50
  type TransformPluginConfig = Omit<BindingTransformPluginConfig, "include" | "exclude" | "jsxRefreshInclude" | "jsxRefreshExclude"> & {
53
51
  include?: TransformPattern;
54
52
  exclude?: TransformPattern;
@@ -1,5 +1,5 @@
1
- import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding-DB58iXP8.mjs";
2
- import { BuiltinPlugin, InputOptions, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-CqVfqfZQ.mjs";
1
+ import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding-DQYRWAqj.mjs";
2
+ import { BuiltinPlugin, InputOptions, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-BtEiHmBk.mjs";
3
3
 
4
4
  //#region src/api/experimental.d.ts
5
5
 
@@ -15,7 +15,6 @@ type AliasPluginAlias = {
15
15
  find: string | RegExp;
16
16
  replacement: string;
17
17
  };
18
- // A temp config type for giving better user experience
19
18
  type AliasPluginConfig = {
20
19
  entries: AliasPluginAlias[];
21
20
  };
@@ -48,7 +47,6 @@ declare function replacePlugin(values?: BindingReplacePluginConfig["values"], op
48
47
  //#endregion
49
48
  //#region src/builtin-plugin/transform-plugin.d.ts
50
49
  type TransformPattern = string | RegExp | readonly (RegExp | string)[];
51
- // A temp config type for giving better user experience
52
50
  type TransformPluginConfig = Omit<BindingTransformPluginConfig, "include" | "exclude" | "jsxRefreshInclude" | "jsxRefreshExclude"> & {
53
51
  include?: TransformPattern;
54
52
  exclude?: TransformPattern;
@@ -1,6 +1,6 @@
1
- import { BuiltinPlugin, PluginDriver, assetPlugin, buildImportAnalysisPlugin, createBundlerImpl, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/src-BA5CL--T.mjs";
1
+ import { BuiltinPlugin, PluginDriver, assetPlugin, buildImportAnalysisPlugin, createBundlerImpl, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/src-DgEwyn6q.mjs";
2
2
  import "./shared/dist-DvBwroyk.mjs";
3
- import "./shared/parse-ast-index-BzdtcWzA.mjs";
3
+ import "./shared/parse-ast-index-Bo5jcF9A.mjs";
4
4
  import { BindingBundler, ResolverFactory, isolatedDeclaration, moduleRunnerTransform, transform } from "./rolldown-binding.wasi.cjs";
5
5
  import { pathToFileURL } from "node:url";
6
6
 
@@ -1,4 +1,4 @@
1
- declare class DevRuntime {
1
+ export class DevRuntime {
2
2
  /**
3
3
  * @type {Record<string, { exports: any }>}
4
4
  */
@@ -10,7 +10,6 @@ declare class DevRuntime {
10
10
  */
11
11
  createModuleHotContext(_moduleId: string): void;
12
12
  /**
13
- *
14
13
  * @param {string[]} _boundaries
15
14
  */
16
15
  applyUpdates(_boundaries: string[]): void;
@@ -49,4 +48,6 @@ declare class DevRuntime {
49
48
  __toCommonJS: any;
50
49
  /** @internal */
51
50
  __export: any;
51
+ /** @internal */
52
+ __toDynamicImportESM: any;
52
53
  }
@@ -1,4 +1,4 @@
1
- import "./shared/binding-CMKStSph.cjs";
2
- import { withFilter } from "./shared/define-config-BRkYSF9E.cjs";
1
+ import "./shared/binding-B9-3a5q4.cjs";
2
+ import { withFilter } from "./shared/define-config-ZN70csxk.cjs";
3
3
  import { and, code, exclude, id, include, moduleType, not, or, queries, query } from "@rolldown/pluginutils";
4
4
  export { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter };
@@ -1,4 +1,4 @@
1
- import "./shared/binding-DB58iXP8.mjs";
2
- import { withFilter } from "./shared/define-config-CqVfqfZQ.mjs";
1
+ import "./shared/binding-DQYRWAqj.mjs";
2
+ import { withFilter } from "./shared/define-config-BtEiHmBk.mjs";
3
3
  import { and, code, exclude, id, include, moduleType, not, or, queries, query } from "@rolldown/pluginutils";
4
4
  export { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter };
@@ -1,3 +1,3 @@
1
- import { VERSION, build, defineConfig, rolldown, watch } from "./src-C1KTaRyZ.js";
1
+ import { VERSION, build, defineConfig, rolldown, watch } from "./src-nDvl0w95.js";
2
2
 
3
3
  export { VERSION, build, defineConfig, rolldown, watch };
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
- const require_src = require('./shared/src-Co_Bf7DL.cjs');
1
+ const require_src = require('./shared/src-Dtgcnc61.cjs');
2
2
  require('./shared/dist-BVAp8sOm.cjs');
3
- require('./shared/parse-ast-index-CGTVCgvx.cjs');
3
+ require('./shared/parse-ast-index-80TSV2Ni.cjs');
4
4
 
5
5
  exports.VERSION = require_src.VERSION;
6
6
  exports.build = require_src.build;
package/dist/index.d.cts CHANGED
@@ -1,3 +1,3 @@
1
- import { PreRenderedChunk } from "./shared/binding-CMKStSph.cjs";
2
- import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ChunkingContext, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch } from "./shared/define-config-BRkYSF9E.cjs";
3
- export { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ChunkingContext, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, PreRenderedChunk, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch };
1
+ import { PreRenderedChunk } from "./shared/binding-B9-3a5q4.cjs";
2
+ import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ChunkingContext, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OptimizationOptions, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch } from "./shared/define-config-ZN70csxk.cjs";
3
+ export { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ChunkingContext, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OptimizationOptions, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, PreRenderedChunk, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch };
package/dist/index.d.mts CHANGED
@@ -1,3 +1,3 @@
1
- import { PreRenderedChunk } from "./shared/binding-DB58iXP8.mjs";
2
- import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ChunkingContext, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch } from "./shared/define-config-CqVfqfZQ.mjs";
3
- export { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ChunkingContext, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, PreRenderedChunk, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch };
1
+ import { PreRenderedChunk } from "./shared/binding-DQYRWAqj.mjs";
2
+ import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ChunkingContext, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OptimizationOptions, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch } from "./shared/define-config-BtEiHmBk.mjs";
3
+ export { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ChunkingContext, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OptimizationOptions, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, PreRenderedChunk, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch };
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { VERSION, build, defineConfig, rolldown, watch } from "./shared/src-BA5CL--T.mjs";
1
+ import { VERSION, build, defineConfig, rolldown, watch } from "./shared/src-DgEwyn6q.mjs";
2
2
  import "./shared/dist-DvBwroyk.mjs";
3
- import "./shared/parse-ast-index-BzdtcWzA.mjs";
3
+ import "./shared/parse-ast-index-Bo5jcF9A.mjs";
4
4
 
5
5
  export { VERSION, build, defineConfig, rolldown, watch };
@@ -1,7 +1,7 @@
1
1
  const require_chunk = require('./shared/chunk-DDkG_k5U.cjs');
2
- const require_src = require('./shared/src-Co_Bf7DL.cjs');
2
+ const require_src = require('./shared/src-Dtgcnc61.cjs');
3
3
  require('./shared/dist-BVAp8sOm.cjs');
4
- require('./shared/parse-ast-index-CGTVCgvx.cjs');
4
+ require('./shared/parse-ast-index-80TSV2Ni.cjs');
5
5
  const src_rolldown_binding_wasi_cjs = require_chunk.__toESM(require("./rolldown-binding.wasi.cjs"));
6
6
  const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
7
7
 
@@ -1,6 +1,6 @@
1
- import { PluginContextData, bindingifyPlugin } from "./shared/src-BA5CL--T.mjs";
1
+ import { PluginContextData, bindingifyPlugin } from "./shared/src-DgEwyn6q.mjs";
2
2
  import "./shared/dist-DvBwroyk.mjs";
3
- import "./shared/parse-ast-index-BzdtcWzA.mjs";
3
+ import "./shared/parse-ast-index-Bo5jcF9A.mjs";
4
4
  import { registerPlugins } from "./rolldown-binding.wasi.cjs";
5
5
  import { parentPort, workerData } from "node:worker_threads";
6
6
 
@@ -1,5 +1,5 @@
1
- import "./shared/binding-CMKStSph.cjs";
2
- import { MaybePromise, Plugin } from "./shared/define-config-BRkYSF9E.cjs";
1
+ import "./shared/binding-B9-3a5q4.cjs";
2
+ import { MaybePromise, Plugin } from "./shared/define-config-ZN70csxk.cjs";
3
3
 
4
4
  //#region src/plugin/parallel-plugin-implementation.d.ts
5
5
  type ParallelPluginImplementation = Plugin;
@@ -1,5 +1,5 @@
1
- import "./shared/binding-DB58iXP8.mjs";
2
- import { MaybePromise, Plugin } from "./shared/define-config-CqVfqfZQ.mjs";
1
+ import "./shared/binding-DQYRWAqj.mjs";
2
+ import { MaybePromise, Plugin } from "./shared/define-config-BtEiHmBk.mjs";
3
3
 
4
4
  //#region src/plugin/parallel-plugin-implementation.d.ts
5
5
  type ParallelPluginImplementation = Plugin;
@@ -1,4 +1,4 @@
1
- const require_parse_ast_index = require('./shared/parse-ast-index-CGTVCgvx.cjs');
1
+ const require_parse_ast_index = require('./shared/parse-ast-index-80TSV2Ni.cjs');
2
2
 
3
3
  exports.parseAst = require_parse_ast_index.parseAst;
4
4
  exports.parseAstAsync = require_parse_ast_index.parseAstAsync;
@@ -1,8 +1,7 @@
1
- import { ParseResult, ParserOptions } from "./shared/binding-CMKStSph.cjs";
1
+ import { ParseResult, ParserOptions } from "./shared/binding-B9-3a5q4.cjs";
2
2
  import { Program } from "@oxc-project/types";
3
3
 
4
4
  //#region src/parse-ast-index.d.ts
5
- // The api compat to rollup `parseAst` and `parseAstAsync`.
6
5
  declare function parseAst(sourceText: string, options?: ParserOptions | undefined | null, filename?: string): Program;
7
6
  declare function parseAstAsync(sourceText: string, options?: ParserOptions | undefined | null, filename?: string): Promise<Program>;
8
7
  //#endregion
@@ -1,8 +1,7 @@
1
- import { ParseResult, ParserOptions } from "./shared/binding-DB58iXP8.mjs";
1
+ import { ParseResult, ParserOptions } from "./shared/binding-DQYRWAqj.mjs";
2
2
  import { Program } from "@oxc-project/types";
3
3
 
4
4
  //#region src/parse-ast-index.d.ts
5
- // The api compat to rollup `parseAst` and `parseAstAsync`.
6
5
  declare function parseAst(sourceText: string, options?: ParserOptions | undefined | null, filename?: string): Program;
7
6
  declare function parseAstAsync(sourceText: string, options?: ParserOptions | undefined | null, filename?: string): Promise<Program>;
8
7
  //#endregion
@@ -1,3 +1,3 @@
1
- import { parseAst, parseAstAsync } from "./shared/parse-ast-index-BzdtcWzA.mjs";
1
+ import { parseAst, parseAstAsync } from "./shared/parse-ast-index-Bo5jcF9A.mjs";
2
2
 
3
3
  export { parseAst, parseAstAsync };
@@ -66,12 +66,9 @@ export const ParseResult = __napiModule.exports.ParseResult
66
66
  export const ExportExportNameKind = __napiModule.exports.ExportExportNameKind
67
67
  export const ExportImportNameKind = __napiModule.exports.ExportImportNameKind
68
68
  export const ExportLocalNameKind = __napiModule.exports.ExportLocalNameKind
69
- export const getBufferOffset = __napiModule.exports.getBufferOffset
70
69
  export const ImportNameKind = __napiModule.exports.ImportNameKind
71
70
  export const parseAsync = __napiModule.exports.parseAsync
72
- export const parseAsyncRaw = __napiModule.exports.parseAsyncRaw
73
71
  export const parseSync = __napiModule.exports.parseSync
74
- export const parseSyncRaw = __napiModule.exports.parseSyncRaw
75
72
  export const rawTransferSupported = __napiModule.exports.rawTransferSupported
76
73
  export const ResolverFactory = __napiModule.exports.ResolverFactory
77
74
  export const EnforceExtension = __napiModule.exports.EnforceExtension
@@ -105,7 +102,7 @@ export const BindingWatcherEvent = __napiModule.exports.BindingWatcherEvent
105
102
  export const ParallelJsPluginRegistry = __napiModule.exports.ParallelJsPluginRegistry
106
103
  export const BindingAttachDebugInfo = __napiModule.exports.BindingAttachDebugInfo
107
104
  export const BindingBuiltinPluginName = __napiModule.exports.BindingBuiltinPluginName
108
- export const BindingHookSideEffects = __napiModule.exports.BindingHookSideEffects
105
+ export const BindingChunkModuleOrderBy = __napiModule.exports.BindingChunkModuleOrderBy
109
106
  export const BindingJsx = __napiModule.exports.BindingJsx
110
107
  export const BindingLogLevel = __napiModule.exports.BindingLogLevel
111
108
  export const BindingPluginOrder = __napiModule.exports.BindingPluginOrder
@@ -65,6 +65,29 @@ const { instance: __napiInstance, module: __wasiModule, napiModule: __napiModule
65
65
  worker.onmessage = ({ data }) => {
66
66
  __wasmCreateOnMessageForFsProxy(__nodeFs)(data)
67
67
  }
68
+
69
+ // The main thread of Node.js waits for all the active handles before exiting.
70
+ // But Rust threads are never waited without `thread::join`.
71
+ // So here we hack the code of Node.js to prevent the workers from being referenced (active).
72
+ // According to https://github.com/nodejs/node/blob/19e0d472728c79d418b74bddff588bea70a403d0/lib/internal/worker.js#L415,
73
+ // a worker is consist of two handles: kPublicPort and kHandle.
74
+ {
75
+ const kPublicPort = Object.getOwnPropertySymbols(worker).find(s =>
76
+ s.toString().includes("kPublicPort")
77
+ );
78
+ if (kPublicPort) {
79
+ worker[kPublicPort].ref = () => {};
80
+ }
81
+
82
+ const kHandle = Object.getOwnPropertySymbols(worker).find(s =>
83
+ s.toString().includes("kHandle")
84
+ );
85
+ if (kPublicPort) {
86
+ worker[kHandle].ref = () => {};
87
+ }
88
+
89
+ worker.unref();
90
+ }
68
91
  return worker
69
92
  },
70
93
  overwriteImports(importObject) {
@@ -90,12 +113,9 @@ module.exports.ParseResult = __napiModule.exports.ParseResult
90
113
  module.exports.ExportExportNameKind = __napiModule.exports.ExportExportNameKind
91
114
  module.exports.ExportImportNameKind = __napiModule.exports.ExportImportNameKind
92
115
  module.exports.ExportLocalNameKind = __napiModule.exports.ExportLocalNameKind
93
- module.exports.getBufferOffset = __napiModule.exports.getBufferOffset
94
116
  module.exports.ImportNameKind = __napiModule.exports.ImportNameKind
95
117
  module.exports.parseAsync = __napiModule.exports.parseAsync
96
- module.exports.parseAsyncRaw = __napiModule.exports.parseAsyncRaw
97
118
  module.exports.parseSync = __napiModule.exports.parseSync
98
- module.exports.parseSyncRaw = __napiModule.exports.parseSyncRaw
99
119
  module.exports.rawTransferSupported = __napiModule.exports.rawTransferSupported
100
120
  module.exports.ResolverFactory = __napiModule.exports.ResolverFactory
101
121
  module.exports.EnforceExtension = __napiModule.exports.EnforceExtension
@@ -129,7 +149,7 @@ module.exports.BindingWatcherEvent = __napiModule.exports.BindingWatcherEvent
129
149
  module.exports.ParallelJsPluginRegistry = __napiModule.exports.ParallelJsPluginRegistry
130
150
  module.exports.BindingAttachDebugInfo = __napiModule.exports.BindingAttachDebugInfo
131
151
  module.exports.BindingBuiltinPluginName = __napiModule.exports.BindingBuiltinPluginName
132
- module.exports.BindingHookSideEffects = __napiModule.exports.BindingHookSideEffects
152
+ module.exports.BindingChunkModuleOrderBy = __napiModule.exports.BindingChunkModuleOrderBy
133
153
  module.exports.BindingJsx = __napiModule.exports.BindingJsx
134
154
  module.exports.BindingLogLevel = __napiModule.exports.BindingLogLevel
135
155
  module.exports.BindingPluginOrder = __napiModule.exports.BindingPluginOrder
@@ -87,14 +87,6 @@ type ExportLocalNameKind = /** `export { name } */
87
87
  * `export default function () {}`
88
88
  */
89
89
  'None';
90
-
91
- /**
92
- * Get offset within a `Uint8Array` which is aligned on 4 GiB.
93
- *
94
- * Does not check that the offset is within bounds of `buffer`.
95
- * To ensure it always is, provide a `Uint8Array` of at least 4 GiB size.
96
- */
97
-
98
90
  interface ImportName {
99
91
  kind: ImportNameKind;
100
92
  name?: string;
@@ -297,8 +289,6 @@ interface NapiResolveOptions {
297
289
  * Default `None`
298
290
  */
299
291
  tsconfig?: TsconfigOptions;
300
- /** Enable Yarn Plug'n'Play */
301
- yarnPnp?: boolean;
302
292
  /**
303
293
  * Alias for [ResolveOptions::alias] and [ResolveOptions::fallback].
304
294
  *
@@ -87,14 +87,6 @@ type ExportLocalNameKind = /** `export { name } */
87
87
  * `export default function () {}`
88
88
  */
89
89
  'None';
90
-
91
- /**
92
- * Get offset within a `Uint8Array` which is aligned on 4 GiB.
93
- *
94
- * Does not check that the offset is within bounds of `buffer`.
95
- * To ensure it always is, provide a `Uint8Array` of at least 4 GiB size.
96
- */
97
-
98
90
  interface ImportName {
99
91
  kind: ImportNameKind;
100
92
  name?: string;
@@ -297,8 +289,6 @@ interface NapiResolveOptions {
297
289
  * Default `None`
298
290
  */
299
291
  tsconfig?: TsconfigOptions;
300
- /** Enable Yarn Plug'n'Play */
301
- yarnPnp?: boolean;
302
292
  /**
303
293
  * Alias for [ResolveOptions::alias] and [ResolveOptions::fallback].
304
294
  *