rolldown 0.14.0-snapshot-f1c8656-20241130003452 → 0.14.0-snapshot-12d7e71-20241201004055
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/cjs/cli.cjs +1 -1
- package/dist/cjs/experimental-index.cjs +3 -4
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/parallel-plugin-worker.cjs +1 -1
- package/dist/esm/cli.mjs +1 -1
- package/dist/esm/experimental-index.mjs +3 -4
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/parallel-plugin-worker.mjs +1 -1
- package/dist/shared/{src-BJQhFqdA.mjs → src-Bx1l8mKg.mjs} +2 -1
- package/dist/shared/{src-hb-XyQUP.cjs → src-DrLPqkUf.cjs} +2 -1
- package/dist/types/binding.d.ts +2 -1
- package/dist/types/options/output-options.d.ts +1 -1
- package/package.json +14 -14
package/dist/cjs/cli.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const require_chunk = require('../shared/chunk-BK2Ye-xa.cjs');
|
|
3
|
-
const require_src = require('../shared/src-
|
|
3
|
+
const require_src = require('../shared/src-DrLPqkUf.cjs');
|
|
4
4
|
const require_consola_36c0034f = require('../shared/consola_36c0034f--b2gQiI0.cjs');
|
|
5
5
|
const zod = require_chunk.__toESM(require("zod"));
|
|
6
6
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const require_chunk = require('../shared/chunk-BK2Ye-xa.cjs');
|
|
3
|
-
const require_src = require('../shared/src-
|
|
3
|
+
const require_src = require('../shared/src-DrLPqkUf.cjs');
|
|
4
4
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
5
5
|
|
|
6
6
|
//#region src/plugin/parallel-plugin.ts
|
|
@@ -18,10 +18,9 @@ function defineParallelPlugin(pluginPath) {
|
|
|
18
18
|
function normalizeEcmaTransformPluginConfig(config) {
|
|
19
19
|
if (!config) return undefined;
|
|
20
20
|
let normalizedConfig = {
|
|
21
|
-
|
|
21
|
+
...config,
|
|
22
22
|
exclude: require_src.normalizedStringOrRegex(config.exclude),
|
|
23
|
-
include: require_src.normalizedStringOrRegex(config.include)
|
|
24
|
-
targets: config.targets
|
|
23
|
+
include: require_src.normalizedStringOrRegex(config.include)
|
|
25
24
|
};
|
|
26
25
|
return normalizedConfig;
|
|
27
26
|
}
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const require_chunk = require('../shared/chunk-BK2Ye-xa.cjs');
|
|
3
|
-
const require_src = require('../shared/src-
|
|
3
|
+
const require_src = require('../shared/src-DrLPqkUf.cjs');
|
|
4
4
|
const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
|
|
5
5
|
|
|
6
6
|
//#region src/parallel-plugin-worker.ts
|
package/dist/esm/cli.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LogLevelOptionSchema, LogLevelSchema, LogLevelWithErrorSchema, RollupLogSchema, RollupLogWithStringSchema, TreeshakingOptionsSchema, __export, arraify, description, rolldown, version, watch } from "../shared/src-
|
|
1
|
+
import { LogLevelOptionSchema, LogLevelSchema, LogLevelWithErrorSchema, RollupLogSchema, RollupLogWithStringSchema, TreeshakingOptionsSchema, __export, arraify, description, rolldown, version, watch } from "../shared/src-Bx1l8mKg.mjs";
|
|
2
2
|
import { createConsola } from "../shared/consola_36c0034f-DWsVjwtA.mjs";
|
|
3
3
|
import { ZodFirstPartyTypeKind, ZodFirstPartyTypeKind as ZodFirstPartyTypeKind$1, ZodFirstPartyTypeKind as ZodFirstPartyTypeKind$2, z, z as z$1, z as z$2, z as z$3 } from "zod";
|
|
4
4
|
import nodePath, { default as path } from "node:path";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BuiltinPlugin, __toESM, buildImportAnalysisPlugin, composeJsPlugins, dynamicImportVarsPlugin, experimental_scan, importGlobPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, require_binding, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "../shared/src-
|
|
1
|
+
import { BuiltinPlugin, __toESM, buildImportAnalysisPlugin, composeJsPlugins, dynamicImportVarsPlugin, experimental_scan, importGlobPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, require_binding, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "../shared/src-Bx1l8mKg.mjs";
|
|
2
2
|
import { pathToFileURL } from "node:url";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin/parallel-plugin.ts
|
|
@@ -16,10 +16,9 @@ function defineParallelPlugin(pluginPath) {
|
|
|
16
16
|
function normalizeEcmaTransformPluginConfig(config) {
|
|
17
17
|
if (!config) return undefined;
|
|
18
18
|
let normalizedConfig = {
|
|
19
|
-
|
|
19
|
+
...config,
|
|
20
20
|
exclude: normalizedStringOrRegex(config.exclude),
|
|
21
|
-
include: normalizedStringOrRegex(config.include)
|
|
22
|
-
targets: config.targets
|
|
21
|
+
include: normalizedStringOrRegex(config.include)
|
|
23
22
|
};
|
|
24
23
|
return normalizedConfig;
|
|
25
24
|
}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PluginContextData, __toESM, bindingifyPlugin, require_binding } from "../shared/src-
|
|
1
|
+
import { PluginContextData, __toESM, bindingifyPlugin, require_binding } from "../shared/src-Bx1l8mKg.mjs";
|
|
2
2
|
import { parentPort, workerData } from "node:worker_threads";
|
|
3
3
|
|
|
4
4
|
//#region src/parallel-plugin-worker.ts
|
|
@@ -2158,6 +2158,7 @@ function bindingifyFormat(format) {
|
|
|
2158
2158
|
case "commonjs": return "cjs";
|
|
2159
2159
|
case "iife": return "iife";
|
|
2160
2160
|
case "umd": return "umd";
|
|
2161
|
+
case "experimental-app": return "app";
|
|
2161
2162
|
default: unimplemented(`output.format: ${format}`);
|
|
2162
2163
|
}
|
|
2163
2164
|
}
|
|
@@ -2586,7 +2587,7 @@ async function createBundler(inputOptions, outputOptions) {
|
|
|
2586
2587
|
const outputPlugins = await normalizePluginOption(outputOptions.plugins);
|
|
2587
2588
|
outputOptions = pluginDriver.callOutputOptionsHook([...inputPlugins, ...outputPlugins], outputOptions);
|
|
2588
2589
|
const logLevel = inputOptions.logLevel || LOG_LEVEL_INFO;
|
|
2589
|
-
const onLog =
|
|
2590
|
+
const onLog = getLogger(getObjectPlugins(inputPlugins), getOnLog(inputOptions, logLevel), logLevel);
|
|
2590
2591
|
let plugins = [...normalizePlugins(inputPlugins, ANONYMOUS_PLUGIN_PREFIX), ...checkOutputPluginOption(normalizePlugins(await normalizePluginOption(outputOptions.plugins), ANONYMOUS_OUTPUT_PLUGIN_PREFIX), onLog)];
|
|
2591
2592
|
if (inputOptions.experimental?.enableComposingJsPlugins ?? false) plugins = composeJsPlugins(plugins);
|
|
2592
2593
|
const parallelPluginInitResult = await initializeParallelPlugins(plugins);
|
|
@@ -2126,6 +2126,7 @@ function bindingifyFormat(format) {
|
|
|
2126
2126
|
case "commonjs": return "cjs";
|
|
2127
2127
|
case "iife": return "iife";
|
|
2128
2128
|
case "umd": return "umd";
|
|
2129
|
+
case "experimental-app": return "app";
|
|
2129
2130
|
default: unimplemented(`output.format: ${format}`);
|
|
2130
2131
|
}
|
|
2131
2132
|
}
|
|
@@ -2554,7 +2555,7 @@ async function createBundler(inputOptions, outputOptions) {
|
|
|
2554
2555
|
const outputPlugins = await normalizePluginOption(outputOptions.plugins);
|
|
2555
2556
|
outputOptions = pluginDriver.callOutputOptionsHook([...inputPlugins, ...outputPlugins], outputOptions);
|
|
2556
2557
|
const logLevel = inputOptions.logLevel || LOG_LEVEL_INFO;
|
|
2557
|
-
const onLog =
|
|
2558
|
+
const onLog = getLogger(getObjectPlugins(inputPlugins), getOnLog(inputOptions, logLevel), logLevel);
|
|
2558
2559
|
let plugins = [...normalizePlugins(inputPlugins, ANONYMOUS_PLUGIN_PREFIX), ...checkOutputPluginOption(normalizePlugins(await normalizePluginOption(outputOptions.plugins), ANONYMOUS_OUTPUT_PLUGIN_PREFIX), onLog)];
|
|
2559
2560
|
if (inputOptions.experimental?.enableComposingJsPlugins ?? false) plugins = composeJsPlugins(plugins);
|
|
2560
2561
|
const parallelPluginInitResult = await initializeParallelPlugins(plugins);
|
package/dist/types/binding.d.ts
CHANGED
|
@@ -396,7 +396,7 @@ export interface BindingOutputOptions {
|
|
|
396
396
|
extend?: boolean
|
|
397
397
|
externalLiveBindings?: boolean
|
|
398
398
|
footer?: (chunk: RenderedChunk) => MaybePromise<VoidNullable<string>>
|
|
399
|
-
format?: 'es' | 'cjs' | 'iife' | 'umd'
|
|
399
|
+
format?: 'es' | 'cjs' | 'iife' | 'umd' | 'app'
|
|
400
400
|
globals?: Record<string, string> | ((name: string) => string)
|
|
401
401
|
hashCharacters?: 'base64' | 'base36' | 'hex'
|
|
402
402
|
inlineDynamicImports?: boolean
|
|
@@ -524,6 +524,7 @@ export interface BindingTransformPluginConfig {
|
|
|
524
524
|
include?: Array<BindingStringOrRegex>
|
|
525
525
|
exclude?: Array<BindingStringOrRegex>
|
|
526
526
|
jsxInject?: string
|
|
527
|
+
reactRefresh?: boolean
|
|
527
528
|
targets?: string
|
|
528
529
|
}
|
|
529
530
|
|
|
@@ -2,7 +2,7 @@ import type { StringOrRegExp } from '../types/utils';
|
|
|
2
2
|
import type { RenderedChunk, PreRenderedChunk } from '../binding';
|
|
3
3
|
import { SourcemapIgnoreListOption, SourcemapPathTransformOption } from '../rollup';
|
|
4
4
|
import { RolldownOutputPluginOption } from '../plugin';
|
|
5
|
-
export type ModuleFormat = 'es' | 'cjs' | 'esm' | 'module' | 'commonjs' | 'iife' | 'umd';
|
|
5
|
+
export type ModuleFormat = 'es' | 'cjs' | 'esm' | 'module' | 'commonjs' | 'iife' | 'umd' | 'experimental-app';
|
|
6
6
|
export type AddonFunction = (chunk: RenderedChunk) => string | Promise<string>;
|
|
7
7
|
export type ChunkFileNamesFunction = (chunkInfo: PreRenderedChunk) => string;
|
|
8
8
|
export type GlobalsFunction = (name: string) => string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rolldown",
|
|
3
|
-
"version": "0.14.0-snapshot-
|
|
3
|
+
"version": "0.14.0-snapshot-12d7e71-20241201004055",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"homepage": "https://rolldown.rs/",
|
|
6
6
|
"repository": {
|
|
@@ -113,21 +113,21 @@
|
|
|
113
113
|
"why-is-node-running": "^3.0.0",
|
|
114
114
|
"zod-to-json-schema": "^3.23.2",
|
|
115
115
|
"@rolldown/testing": "0.0.1",
|
|
116
|
-
"rolldown": "0.14.0-snapshot-
|
|
116
|
+
"rolldown": "0.14.0-snapshot-12d7e71-20241201004055"
|
|
117
117
|
},
|
|
118
118
|
"optionalDependencies": {
|
|
119
|
-
"@rolldown/binding-darwin-x64": "0.14.0-snapshot-
|
|
120
|
-
"@rolldown/binding-
|
|
121
|
-
"@rolldown/binding-
|
|
122
|
-
"@rolldown/binding-
|
|
123
|
-
"@rolldown/binding-linux-
|
|
124
|
-
"@rolldown/binding-linux-
|
|
125
|
-
"@rolldown/binding-linux-x64-
|
|
126
|
-
"@rolldown/binding-
|
|
127
|
-
"@rolldown/binding-
|
|
128
|
-
"@rolldown/binding-
|
|
129
|
-
"@rolldown/binding-win32-
|
|
130
|
-
"@rolldown/binding-win32-
|
|
119
|
+
"@rolldown/binding-darwin-x64": "0.14.0-snapshot-12d7e71-20241201004055",
|
|
120
|
+
"@rolldown/binding-darwin-arm64": "0.14.0-snapshot-12d7e71-20241201004055",
|
|
121
|
+
"@rolldown/binding-freebsd-x64": "0.14.0-snapshot-12d7e71-20241201004055",
|
|
122
|
+
"@rolldown/binding-linux-arm64-gnu": "0.14.0-snapshot-12d7e71-20241201004055",
|
|
123
|
+
"@rolldown/binding-linux-arm-gnueabihf": "0.14.0-snapshot-12d7e71-20241201004055",
|
|
124
|
+
"@rolldown/binding-linux-arm64-musl": "0.14.0-snapshot-12d7e71-20241201004055",
|
|
125
|
+
"@rolldown/binding-linux-x64-gnu": "0.14.0-snapshot-12d7e71-20241201004055",
|
|
126
|
+
"@rolldown/binding-linux-x64-musl": "0.14.0-snapshot-12d7e71-20241201004055",
|
|
127
|
+
"@rolldown/binding-wasm32-wasi": "0.14.0-snapshot-12d7e71-20241201004055",
|
|
128
|
+
"@rolldown/binding-win32-ia32-msvc": "0.14.0-snapshot-12d7e71-20241201004055",
|
|
129
|
+
"@rolldown/binding-win32-arm64-msvc": "0.14.0-snapshot-12d7e71-20241201004055",
|
|
130
|
+
"@rolldown/binding-win32-x64-msvc": "0.14.0-snapshot-12d7e71-20241201004055"
|
|
131
131
|
},
|
|
132
132
|
"scripts": {
|
|
133
133
|
"# Scrips for binding #": "_",
|