@rollipop/rolldown 1.0.0-rc.5 → 1.0.0-rc.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +768 -185
- package/dist/config.d.mts +1 -2
- package/dist/config.mjs +2 -8
- package/dist/experimental-index.d.mts +51 -7
- package/dist/experimental-index.mjs +26 -13
- package/dist/filter-index.d.mts +1 -2
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +5 -10
- package/dist/parallel-plugin-worker.mjs +2 -5
- package/dist/parallel-plugin.d.mts +1 -2
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +1 -2
- package/dist/plugins-index.d.mts +3 -3
- package/dist/plugins-index.mjs +2 -3
- package/dist/shared/{binding-BpAdsRMp.mjs → binding-BDQmMI4k.mjs} +27 -26
- package/dist/shared/{binding-MOe7QjvW.d.mts → binding-hSQGgsUz.d.mts} +29 -17
- package/dist/shared/{bindingify-input-options-DlgCN9zc.mjs → bindingify-input-options-BPs8vdmE.mjs} +50 -12
- package/dist/shared/{constructors-ByA8Vmcs.mjs → constructors-7NuzGi50.mjs} +8 -2
- package/dist/shared/{constructors-BVMsBEI4.d.mts → constructors-DMl58KN5.d.mts} +7 -3
- package/dist/shared/{define-config-D2erlXSV.d.mts → define-config-BSxBeCq6.d.mts} +61 -12
- package/dist/shared/{error-Rnftw-T1.mjs → error-BXPumkAt.mjs} +1 -1
- package/dist/shared/{load-config-C1TxsD8r.mjs → load-config-Di9cga_s.mjs} +1 -1
- package/dist/shared/{normalize-string-or-regex-BFIgWR19.mjs → normalize-string-or-regex-w7iaDSix.mjs} +20 -12
- package/dist/shared/{parse-BuECM1WH.mjs → parse-CcH5i207.mjs} +2 -2
- package/dist/shared/{transform-CFiExOzd.mjs → resolve-tsconfig-uNESZeDJ.mjs} +28 -5
- package/dist/shared/{rolldown-build-Cc7GWaEw.mjs → rolldown-build-jzJrSHh4.mjs} +16 -11
- package/dist/shared/{rolldown-BpbRpba4.mjs → rolldown-j_nJ2LNa.mjs} +1 -1
- package/dist/shared/{transform-DKslvixZ.d.mts → transform-DY2pi3Qm.d.mts} +19 -2
- package/dist/shared/{watch-BBA-reCD.mjs → watch-Cud2FKIW.mjs} +4 -4
- package/dist/utils-index.d.mts +3 -3
- package/dist/utils-index.mjs +5 -8
- package/package.json +19 -18
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-BDQmMI4k.mjs";
|
|
2
2
|
import { i as logInputHookInOutputPlugin, n as error } from "./logs-D80CXhvg.mjs";
|
|
3
|
-
import { n as BuiltinPlugin } from "./normalize-string-or-regex-
|
|
4
|
-
import {
|
|
3
|
+
import { n as BuiltinPlugin } from "./normalize-string-or-regex-w7iaDSix.mjs";
|
|
4
|
+
import { c as __decorate, d as PlainObjectLike, f as MinimalPluginContextImpl, h as LOG_LEVEL_DEBUG, i as transformModuleInfo, l as transformAssetSource, m as normalizeLog, o as transformToRollupOutput, p as normalizeHook, s as transformRenderedChunk, t as bindingifyInputOptions, u as lazyProp, v as LOG_LEVEL_WARN, x as VERSION, y as logLevelPriority } from "./bindingify-input-options-BPs8vdmE.mjs";
|
|
5
5
|
import { i as unimplemented } from "./misc-DJYbNKZX.mjs";
|
|
6
|
-
import { i as unwrapBindingResult } from "./error-
|
|
6
|
+
import { i as unwrapBindingResult } from "./error-BXPumkAt.mjs";
|
|
7
7
|
import { Worker } from "node:worker_threads";
|
|
8
8
|
import path, { sep } from "node:path";
|
|
9
9
|
import { formatWithOptions, styleText } from "node:util";
|
|
@@ -211,7 +211,7 @@ function getSortedPlugins(hookName, plugins) {
|
|
|
211
211
|
];
|
|
212
212
|
}
|
|
213
213
|
//#endregion
|
|
214
|
-
//#region ../../node_modules/.pnpm/valibot@1.
|
|
214
|
+
//#region ../../node_modules/.pnpm/valibot@1.3.1_typescript@5.9.3/node_modules/valibot/dist/index.mjs
|
|
215
215
|
let store$4;
|
|
216
216
|
/**
|
|
217
217
|
* Returns the global configuration.
|
|
@@ -1512,7 +1512,7 @@ const TransformOptionsSchema = /* @__PURE__ */ object({
|
|
|
1512
1512
|
JsxOptionsSchema
|
|
1513
1513
|
])),
|
|
1514
1514
|
target: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ array(/* @__PURE__ */ string())])), /* @__PURE__ */ description("The JavaScript target environment")),
|
|
1515
|
-
define: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string())), /* @__PURE__ */ description("Define global variables (syntax: key
|
|
1515
|
+
define: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string())), /* @__PURE__ */ description("Define global variables (syntax: key:value,key2:value2)")),
|
|
1516
1516
|
inject: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ tuple([/* @__PURE__ */ string(), /* @__PURE__ */ string()])]))), /* @__PURE__ */ description("Inject import statements on demand")),
|
|
1517
1517
|
dropLabels: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())), /* @__PURE__ */ description("Remove labeled statements with these label names")),
|
|
1518
1518
|
plugins: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(TransformPluginsSchema), /* @__PURE__ */ description("Third-party plugins to use"))
|
|
@@ -1521,7 +1521,10 @@ isTypeTrue();
|
|
|
1521
1521
|
const WatcherFileWatcherOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1522
1522
|
usePolling: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Use polling-based file watching instead of native OS events")),
|
|
1523
1523
|
pollInterval: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ number()), /* @__PURE__ */ description("Poll interval in milliseconds (only used when usePolling is true)")),
|
|
1524
|
-
compareContentsForPolling: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Compare file contents for poll-based watchers (only used when usePolling is true)"))
|
|
1524
|
+
compareContentsForPolling: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Compare file contents for poll-based watchers (only used when usePolling is true)")),
|
|
1525
|
+
useDebounce: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Use debounced event delivery at the filesystem level")),
|
|
1526
|
+
debounceDelay: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ number()), /* @__PURE__ */ description("Debounce delay in milliseconds (only used when useDebounce is true)")),
|
|
1527
|
+
debounceTickRate: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ number()), /* @__PURE__ */ description("Tick rate in milliseconds for debouncer (only used when useDebounce is true)"))
|
|
1525
1528
|
});
|
|
1526
1529
|
const WatcherOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1527
1530
|
chokidar: /* @__PURE__ */ optional(/* @__PURE__ */ never(`The "watch.chokidar" option is deprecated, please use "watch.watcher" instead of it`)),
|
|
@@ -1813,9 +1816,10 @@ const OutputOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1813
1816
|
/* @__PURE__ */ boolean(),
|
|
1814
1817
|
/* @__PURE__ */ literal("inline"),
|
|
1815
1818
|
/* @__PURE__ */ literal("hidden")
|
|
1816
|
-
])), /* @__PURE__ */ description(`Generate sourcemap (\`-s inline\` for inline, or
|
|
1819
|
+
])), /* @__PURE__ */ description(`Generate sourcemap (\`-s inline\` for inline, or \`-s\` for \`.map\` file)`)),
|
|
1817
1820
|
sourcemapBaseUrl: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Base URL used to prefix sourcemap paths")),
|
|
1818
1821
|
sourcemapDebugIds: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Inject sourcemap debug IDs")),
|
|
1822
|
+
sourcemapExcludeSources: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Exclude source content from sourcemaps")),
|
|
1819
1823
|
sourcemapIgnoreList: /* @__PURE__ */ optional(/* @__PURE__ */ union([
|
|
1820
1824
|
/* @__PURE__ */ boolean(),
|
|
1821
1825
|
/* @__PURE__ */ custom(() => true),
|
|
@@ -1840,7 +1844,7 @@ const OutputOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1840
1844
|
MinifyOptionsSchema
|
|
1841
1845
|
])), /* @__PURE__ */ description("Minify the bundled file")),
|
|
1842
1846
|
name: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Name for UMD / IIFE format outputs")),
|
|
1843
|
-
globals: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string()), GlobalsFunctionSchema])), /* @__PURE__ */ description("Global variable of UMD / IIFE dependencies (syntax: `key
|
|
1847
|
+
globals: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string()), GlobalsFunctionSchema])), /* @__PURE__ */ description("Global variable of UMD / IIFE dependencies (syntax: `key:value`)")),
|
|
1844
1848
|
paths: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string()), PathsFunctionSchema])), /* @__PURE__ */ description("Maps external module IDs to paths")),
|
|
1845
1849
|
generatedCode: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ partial(GeneratedCodeOptionsSchema)), /* @__PURE__ */ description("Generated code options")),
|
|
1846
1850
|
externalLiveBindings: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("external live bindings")),
|
|
@@ -1886,7 +1890,7 @@ const OutputCliOverrideSchema = /* @__PURE__ */ strictObject({
|
|
|
1886
1890
|
intro: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description(getAddonDescription("top", "inside"))),
|
|
1887
1891
|
outro: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description(getAddonDescription("bottom", "inside"))),
|
|
1888
1892
|
esModule: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Always generate `__esModule` marks in non-ESM formats, defaults to `if-default-prop` (use `--no-esModule` to always disable)")),
|
|
1889
|
-
globals: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string())), /* @__PURE__ */ description("Global variable of UMD / IIFE dependencies (syntax: `key
|
|
1893
|
+
globals: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string())), /* @__PURE__ */ description("Global variable of UMD / IIFE dependencies (syntax: `key:value`)")),
|
|
1890
1894
|
codeSplitting: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
|
|
1891
1895
|
minSize: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ number()), /* @__PURE__ */ description("Minimum size of the chunk")),
|
|
1892
1896
|
minShareCount: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ number()), /* @__PURE__ */ description("Minimum share count of the chunk"))
|
|
@@ -2973,7 +2977,7 @@ function createTestingLogger() {
|
|
|
2973
2977
|
//#endregion
|
|
2974
2978
|
//#region src/utils/bindingify-output-options.ts
|
|
2975
2979
|
function bindingifyOutputOptions(outputOptions) {
|
|
2976
|
-
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, globalIdentifiers } = outputOptions;
|
|
2980
|
+
const { dir, format, exports, hashCharacters, sourcemap, sourcemapBaseUrl, sourcemapDebugIds, sourcemapExcludeSources, 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, globalIdentifiers } = outputOptions;
|
|
2977
2981
|
if (legalComments != null) logger.warn("`legalComments` option is deprecated, please use `comments.legal` instead.");
|
|
2978
2982
|
const { inlineDynamicImports, advancedChunks } = bindingifyCodeSplitting(outputOptions.codeSplitting, outputOptions.inlineDynamicImports, outputOptions.advancedChunks, manualChunks);
|
|
2979
2983
|
return {
|
|
@@ -2985,6 +2989,7 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
2985
2989
|
sourcemap: bindingifySourcemap(sourcemap),
|
|
2986
2990
|
sourcemapBaseUrl,
|
|
2987
2991
|
sourcemapDebugIds,
|
|
2992
|
+
sourcemapExcludeSources,
|
|
2988
2993
|
sourcemapIgnoreList: sourcemapIgnoreList ?? /node_modules/,
|
|
2989
2994
|
sourcemapPathTransform,
|
|
2990
2995
|
banner: bindingifyAddon(banner),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as validateOption, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-
|
|
1
|
+
import { c as validateOption, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-jzJrSHh4.mjs";
|
|
2
2
|
//#region src/api/rolldown/index.ts
|
|
3
3
|
/**
|
|
4
4
|
* The API compatible with Rollup's `rollup` function.
|
|
@@ -1,6 +1,23 @@
|
|
|
1
1
|
import { a as RolldownLog } from "./logging-C6h4g8dA.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { B as ParserOptions$1, I as MinifyOptions$1, K as TsconfigCache$1, L as MinifyResult$1, W as SourceMap, a as BindingEnhancedTransformOptions, b as BindingTsconfigResult, o as BindingEnhancedTransformResult, z as ParseResult$1 } from "./binding-hSQGgsUz.mjs";
|
|
3
3
|
|
|
4
|
+
//#region src/utils/resolve-tsconfig.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Cache for tsconfig resolution to avoid redundant file system operations.
|
|
7
|
+
*
|
|
8
|
+
* The cache stores resolved tsconfig configurations keyed by their file paths.
|
|
9
|
+
* When transforming multiple files in the same project, tsconfig lookups are
|
|
10
|
+
* deduplicated, improving performance.
|
|
11
|
+
*
|
|
12
|
+
* @category Utilities
|
|
13
|
+
* @experimental
|
|
14
|
+
*/
|
|
15
|
+
declare class TsconfigCache extends TsconfigCache$1 {
|
|
16
|
+
constructor();
|
|
17
|
+
}
|
|
18
|
+
/** @hidden This is only expected to be used by Vite */
|
|
19
|
+
declare function resolveTsconfig(filename: string, cache?: TsconfigCache | null): BindingTsconfigResult | null;
|
|
20
|
+
//#endregion
|
|
4
21
|
//#region src/utils/parse.d.ts
|
|
5
22
|
/**
|
|
6
23
|
* Result of parsing a code
|
|
@@ -129,4 +146,4 @@ declare function transform(filename: string, sourceText: string, options?: Trans
|
|
|
129
146
|
*/
|
|
130
147
|
declare function transformSync(filename: string, sourceText: string, options?: TransformOptions | null, cache?: TsconfigCache | null): TransformResult;
|
|
131
148
|
//#endregion
|
|
132
|
-
export { MinifyOptions as a, minifySync as c, parse as d, parseSync as f, transformSync as i, ParseResult as l, TransformResult as n, MinifyResult as o, transform as r, minify as s, TransformOptions as t, ParserOptions as u };
|
|
149
|
+
export { MinifyOptions as a, minifySync as c, parse as d, parseSync as f, transformSync as i, ParseResult as l, resolveTsconfig as m, TransformResult as n, MinifyResult as o, TsconfigCache as p, transform as r, minify as s, TransformOptions as t, ParserOptions as u };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as __toESM, t as require_binding } from "./binding-
|
|
1
|
+
import { n as __toESM, t as require_binding } from "./binding-BDQmMI4k.mjs";
|
|
2
2
|
import { o as logMultipleWatcherOption } from "./logs-D80CXhvg.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { v as LOG_LEVEL_WARN } from "./bindingify-input-options-BPs8vdmE.mjs";
|
|
4
4
|
import { t as arraify } from "./misc-DJYbNKZX.mjs";
|
|
5
|
-
import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-
|
|
6
|
-
import { t as aggregateBindingErrorsIntoJsError } from "./error-
|
|
5
|
+
import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-jzJrSHh4.mjs";
|
|
6
|
+
import { t as aggregateBindingErrorsIntoJsError } from "./error-BXPumkAt.mjs";
|
|
7
7
|
//#region ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
|
|
8
8
|
/**
|
|
9
9
|
* This is not the set of all possible signals.
|
package/dist/utils-index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as MinifyOptions, c as minifySync, d as parse, f as parseSync, i as transformSync, l as ParseResult, n as TransformResult, o as MinifyResult, r as transform, s as minify, t as TransformOptions, u as ParserOptions } from "./shared/transform-
|
|
1
|
+
import { v as BindingTsconfigCompilerOptions, y as BindingTsconfigRawOptions } from "./shared/binding-hSQGgsUz.mjs";
|
|
2
|
+
import { a as MinifyOptions, c as minifySync, d as parse, f as parseSync, i as transformSync, l as ParseResult, n as TransformResult, o as MinifyResult, p as TsconfigCache, r as transform, s as minify, t as TransformOptions, u as ParserOptions } from "./shared/transform-DY2pi3Qm.mjs";
|
|
3
3
|
import * as ESTree from "@oxc-project/types";
|
|
4
4
|
import { Program } from "@oxc-project/types";
|
|
5
5
|
|
|
6
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
6
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.121.0/node_modules/oxc-parser/src-js/generated/visit/visitor.d.ts
|
|
7
7
|
interface VisitorObject$1 {
|
|
8
8
|
DebuggerStatement?: (node: ESTree.DebuggerStatement) => void;
|
|
9
9
|
"DebuggerStatement:exit"?: (node: ESTree.DebuggerStatement) => void;
|
package/dist/utils-index.mjs
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import "./shared/
|
|
2
|
-
import "./shared/
|
|
3
|
-
|
|
4
|
-
import { a as minifySync, i as minify, n as transform, r as transformSync, t as import_binding } from "./shared/transform-CFiExOzd.mjs";
|
|
5
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.115.0/node_modules/oxc-parser/src-js/generated/visit/walk.js
|
|
1
|
+
import { n as parseSync, t as parse } from "./shared/parse-CcH5i207.mjs";
|
|
2
|
+
import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-uNESZeDJ.mjs";
|
|
3
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.121.0/node_modules/oxc-parser/src-js/generated/visit/walk.js
|
|
6
4
|
function walkNode(node, visitors) {
|
|
7
5
|
if (node == null) return;
|
|
8
6
|
if (Array.isArray(node)) {
|
|
@@ -2012,7 +2010,7 @@ function walkTSUnionType(node, visitors) {
|
|
|
2012
2010
|
exit !== null && exit(node);
|
|
2013
2011
|
}
|
|
2014
2012
|
//#endregion
|
|
2015
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
2013
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.121.0/node_modules/oxc-parser/src-js/generated/visit/type_ids.js
|
|
2016
2014
|
/** Mapping from node type name to node type ID */
|
|
2017
2015
|
const NODE_TYPE_IDS_MAP = new Map([
|
|
2018
2016
|
["DebuggerStatement", 0],
|
|
@@ -2182,7 +2180,7 @@ const NODE_TYPE_IDS_MAP = new Map([
|
|
|
2182
2180
|
["TSUnionType", 164]
|
|
2183
2181
|
]);
|
|
2184
2182
|
//#endregion
|
|
2185
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
2183
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.121.0/node_modules/oxc-parser/src-js/visit/visitor.js
|
|
2186
2184
|
let compiledVisitor;
|
|
2187
2185
|
function createCompiledVisitor() {
|
|
2188
2186
|
compiledVisitor = [];
|
|
@@ -2413,5 +2411,4 @@ var Visitor = class {
|
|
|
2413
2411
|
}
|
|
2414
2412
|
};
|
|
2415
2413
|
//#endregion
|
|
2416
|
-
var TsconfigCache = import_binding.TsconfigCache;
|
|
2417
2414
|
export { TsconfigCache, Visitor, minify, minifySync, parse, parseSync, transform, transformSync };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rollipop/rolldown",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.7",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bundler",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"registry": "https://registry.npmjs.org/"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@oxc-project/types": "=0.
|
|
57
|
-
"@rollipop/rolldown-pluginutils": "1.0.0-rc.
|
|
56
|
+
"@oxc-project/types": "=0.122.0",
|
|
57
|
+
"@rollipop/rolldown-pluginutils": "1.0.0-rc.7"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@napi-rs/cli": "^3.4.1",
|
|
@@ -62,20 +62,21 @@
|
|
|
62
62
|
"@oxc-node/cli": "^0.0.35",
|
|
63
63
|
"@rollup/plugin-json": "^6.1.0",
|
|
64
64
|
"buble": "^0.20.0",
|
|
65
|
+
"cac": "^7.0.0",
|
|
65
66
|
"consola": "^3.4.2",
|
|
66
67
|
"execa": "^9.2.0",
|
|
67
68
|
"glob": "^13.0.0",
|
|
68
|
-
"oxc-parser": "=0.
|
|
69
|
+
"oxc-parser": "=0.121.0",
|
|
69
70
|
"pathe": "^2.0.3",
|
|
70
71
|
"remeda": "^2.10.0",
|
|
71
|
-
"rolldown": "1.0.0-rc.
|
|
72
|
+
"rolldown": "1.0.0-rc.11",
|
|
72
73
|
"rolldown-plugin-dts": "^0.22.0",
|
|
73
74
|
"rollup": "^4.18.0",
|
|
74
75
|
"signal-exit": "4.1.0",
|
|
75
76
|
"source-map": "0.7.6",
|
|
76
77
|
"typescript": "^5.8.3",
|
|
77
|
-
"valibot": "1.
|
|
78
|
-
"@rollipop/rolldown": "1.0.0-rc.
|
|
78
|
+
"valibot": "1.3.1",
|
|
79
|
+
"@rollipop/rolldown": "1.0.0-rc.7"
|
|
79
80
|
},
|
|
80
81
|
"napi": {
|
|
81
82
|
"binaryName": "rolldown-binding",
|
|
@@ -96,14 +97,14 @@
|
|
|
96
97
|
"node": "^20.19.0 || >=22.12.0"
|
|
97
98
|
},
|
|
98
99
|
"optionalDependencies": {
|
|
99
|
-
"@rollipop/rolldown-binding-darwin-x64": "1.0.0-rc.
|
|
100
|
-
"@rollipop/rolldown-binding-win32-x64-msvc": "1.0.0-rc.
|
|
101
|
-
"@rollipop/rolldown-binding-linux-x64-gnu": "1.0.0-rc.
|
|
102
|
-
"@rollipop/rolldown-binding-linux-x64-musl": "1.0.0-rc.
|
|
103
|
-
"@rollipop/rolldown-binding-linux-arm64-gnu": "1.0.0-rc.
|
|
104
|
-
"@rollipop/rolldown-binding-darwin-arm64": "1.0.0-rc.
|
|
105
|
-
"@rollipop/rolldown-binding-linux-arm64-musl": "1.0.0-rc.
|
|
106
|
-
"@rollipop/rolldown-binding-win32-arm64-msvc": "1.0.0-rc.
|
|
100
|
+
"@rollipop/rolldown-binding-darwin-x64": "1.0.0-rc.7",
|
|
101
|
+
"@rollipop/rolldown-binding-win32-x64-msvc": "1.0.0-rc.7",
|
|
102
|
+
"@rollipop/rolldown-binding-linux-x64-gnu": "1.0.0-rc.7",
|
|
103
|
+
"@rollipop/rolldown-binding-linux-x64-musl": "1.0.0-rc.7",
|
|
104
|
+
"@rollipop/rolldown-binding-linux-arm64-gnu": "1.0.0-rc.7",
|
|
105
|
+
"@rollipop/rolldown-binding-darwin-arm64": "1.0.0-rc.7",
|
|
106
|
+
"@rollipop/rolldown-binding-linux-arm64-musl": "1.0.0-rc.7",
|
|
107
|
+
"@rollipop/rolldown-binding-win32-arm64-msvc": "1.0.0-rc.7"
|
|
107
108
|
},
|
|
108
109
|
"scripts": {
|
|
109
110
|
"# Scrips for binding #": "_",
|
|
@@ -114,7 +115,7 @@
|
|
|
114
115
|
"build-binding:wasi": "pnpm build-binding --target wasm32-wasip1-threads",
|
|
115
116
|
"build-binding:wasi:release": "pnpm build-binding --profile release-wasi --target wasm32-wasip1-threads",
|
|
116
117
|
"# Scrips for node #": "_",
|
|
117
|
-
"build-node": "
|
|
118
|
+
"build-node": "node --enable-source-maps --import @oxc-node/core/register -C dev ./build.ts",
|
|
118
119
|
"build-types-check": "tsc -p ./tsconfig.check.json",
|
|
119
120
|
"build-js-glue": "pnpm run --sequential '/^build-(node|types-check)$/'",
|
|
120
121
|
"build-native:debug": "pnpm run --sequential '/^build-(binding|js-glue)$/'",
|
|
@@ -123,8 +124,8 @@
|
|
|
123
124
|
"build-native:memory-profile": "pnpm run build-binding:profile --features default_global_allocator && pnpm run build-js-glue",
|
|
124
125
|
"build-wasi:debug": "TARGET='rolldown-wasi' pnpm run --sequential '/^build-(binding|binding:wasi|node)$/'",
|
|
125
126
|
"build-wasi:release": "TARGET='rolldown-wasi' pnpm run --sequential '/^build-(binding|binding:wasi:release|node)$/'",
|
|
126
|
-
"build-browser-pkg:debug": "TARGET='browser' pnpm run --sequential '/^build-(binding
|
|
127
|
-
"build-browser-pkg:release": "TARGET='browser' pnpm run --sequential '/^build-(binding
|
|
127
|
+
"build-browser-pkg:debug": "TARGET='browser' pnpm run --sequential '/^build-(binding:wasi|node)$/'",
|
|
128
|
+
"build-browser-pkg:release": "TARGET='browser' pnpm run --sequential '/^build-(binding:wasi:release|node)$/'",
|
|
128
129
|
"# Scrips for docs #": "_",
|
|
129
130
|
"publint": "publint ."
|
|
130
131
|
}
|