rolldown 1.0.0-beta.9-commit.d91dfb5 → 1.0.0-beta.9-commit.273d50e
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.cjs +5 -5
- package/dist/cli.mjs +46 -57
- package/dist/config.cjs +3 -3
- package/dist/config.d.cts +2 -2
- package/dist/config.d.mts +2 -2
- package/dist/config.mjs +4 -5
- package/dist/experimental-index.cjs +2 -2
- package/dist/experimental-index.d.cts +2 -2
- package/dist/experimental-index.d.mts +2 -2
- package/dist/experimental-index.mjs +3 -4
- package/dist/filter-index.d.cts +2 -2
- package/dist/filter-index.d.mts +2 -2
- package/dist/filter-index.mjs +1 -2
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +3 -3
- package/dist/parallel-plugin-worker.cjs +2 -2
- package/dist/parallel-plugin-worker.mjs +3 -3
- package/dist/parallel-plugin.d.cts +2 -2
- package/dist/parallel-plugin.d.mts +2 -2
- package/dist/parse-ast-index.cjs +1 -1
- package/dist/parse-ast-index.d.cts +1 -1
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +1 -1
- package/dist/shared/{binding.d-B9SSHAER.d.mts → binding.d-D3r4zbxz.d.mts} +6 -9
- package/dist/shared/{binding.d-CrH1UT-g.d.cts → binding.d-p8euY1Wh.d.cts} +6 -9
- package/dist/shared/{define-config.d-CUCXQ5Qr.d.mts → define-config.d-CPoyfJeO.d.mts} +5 -15
- package/dist/shared/{define-config.d-2mCqGCzl.d.cts → define-config.d-DsyTAkf3.d.cts} +5 -15
- package/dist/shared/{load-config-D6Rgj8MR.mjs → load-config-BK3hMJOe.mjs} +1 -1
- package/dist/shared/{load-config-BPPSpnzp.cjs → load-config-GL1xItfo.cjs} +1 -1
- package/dist/shared/{misc-DGAe2XOW.mjs → misc-F8g_dc1D.mjs} +1 -4
- package/dist/shared/{parse-ast-index-BloqIIaY.mjs → parse-ast-index-Bnh8Dob0.mjs} +5 -14
- package/dist/shared/{parse-ast-index-BAVp-hzy.cjs → parse-ast-index-Cn_efzjO.cjs} +2 -1
- package/dist/shared/{src-DgKqmPhz.mjs → src-CG2mUfiN.mjs} +180 -573
- package/dist/shared/{src-WmbJgr9s.cjs → src-ndIZkCCf.cjs} +22 -41
- package/package.json +19 -19
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-DDkG_k5U.cjs');
|
|
2
|
-
const require_parse_ast_index = require('./parse-ast-index-
|
|
2
|
+
const require_parse_ast_index = require('./parse-ast-index-Cn_efzjO.cjs');
|
|
3
3
|
const require_misc = require('./misc-BKp5iIef.cjs');
|
|
4
4
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
5
5
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
@@ -9,7 +9,7 @@ const node_os = require_chunk.__toESM(require("node:os"));
|
|
|
9
9
|
const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
|
|
10
10
|
|
|
11
11
|
//#region package.json
|
|
12
|
-
var version = "1.0.0-beta.9-commit.
|
|
12
|
+
var version = "1.0.0-beta.9-commit.273d50e";
|
|
13
13
|
var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
14
14
|
|
|
15
15
|
//#endregion
|
|
@@ -1797,17 +1797,13 @@ const ModuleTypesSchema = record(string(), union([
|
|
|
1797
1797
|
literal("tsx")
|
|
1798
1798
|
]));
|
|
1799
1799
|
const JsxOptionsSchema = strictObject({
|
|
1800
|
+
runtime: pipe(optional(union([literal("classic"), literal("automatic")])), description("Which runtime to use")),
|
|
1800
1801
|
development: pipe(optional(boolean()), description("Development specific information")),
|
|
1801
|
-
|
|
1802
|
-
fragment: pipe(optional(string()), description("Jsx fragment transformation")),
|
|
1802
|
+
throwIfNamespace: pipe(optional(string()), description("Toggles whether to throw an error when a tag name uses an XML namespace")),
|
|
1803
1803
|
importSource: pipe(optional(string()), description("Import the factory of element and fragment if mode is classic")),
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
literal("automatic"),
|
|
1808
|
-
literal("preserve")
|
|
1809
|
-
])), description("Jsx transformation mode")),
|
|
1810
|
-
refresh: pipe(optional(boolean()), description("React refresh transformation"))
|
|
1804
|
+
pragma: pipe(optional(string()), description("Jsx element transformation")),
|
|
1805
|
+
pragmaFlag: pipe(optional(string()), description("Jsx fragment transformation")),
|
|
1806
|
+
refresh: pipe(optional(boolean()), description("Enable react fast refresh"))
|
|
1811
1807
|
});
|
|
1812
1808
|
const HelperModeSchema = union([literal("Runtime"), literal("External")]);
|
|
1813
1809
|
const DecoratorOptionSchema = object({
|
|
@@ -1843,7 +1839,9 @@ const TransformOptionsSchema = object({
|
|
|
1843
1839
|
assumptions: optional(AssumptionsSchema),
|
|
1844
1840
|
typescript: optional(TypescriptSchema),
|
|
1845
1841
|
helpers: optional(HelpersSchema),
|
|
1846
|
-
decorators: optional(DecoratorOptionSchema)
|
|
1842
|
+
decorators: optional(DecoratorOptionSchema),
|
|
1843
|
+
jsx: optional(JsxOptionsSchema),
|
|
1844
|
+
target: pipe(optional(union([string(), array(string())])), description("The JavaScript target environment"))
|
|
1847
1845
|
});
|
|
1848
1846
|
const WatchOptionsSchema = strictObject({
|
|
1849
1847
|
chokidar: optional(never(`The "watch.chokidar" option is deprecated, please use "watch.notify" instead of it`)),
|
|
@@ -1931,13 +1929,12 @@ const InputOptionsSchema = strictObject({
|
|
|
1931
1929
|
define: pipe(optional(record(string(), string())), description("Define global variables")),
|
|
1932
1930
|
inject: optional(record(string(), union([string(), tuple([string(), string()])]))),
|
|
1933
1931
|
profilerNames: optional(boolean()),
|
|
1934
|
-
jsx: optional(union([
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
])),
|
|
1932
|
+
jsx: pipe(optional(union([
|
|
1933
|
+
literal(false),
|
|
1934
|
+
literal("react"),
|
|
1935
|
+
literal("react-jsx"),
|
|
1936
|
+
literal("preserve")
|
|
1937
|
+
])), description("Jsx options preset")),
|
|
1941
1938
|
transform: optional(TransformOptionsSchema),
|
|
1942
1939
|
watch: optional(union([WatchOptionsSchema, literal(false)])),
|
|
1943
1940
|
dropLabels: pipe(optional(array(string())), description("Remove labeled statements with these label names")),
|
|
@@ -1949,8 +1946,7 @@ const InputCliOverrideSchema = strictObject({
|
|
|
1949
1946
|
input: pipe(optional(array(string())), description("Entry file")),
|
|
1950
1947
|
external: pipe(optional(array(string())), description("Comma-separated list of module ids to exclude from the bundle `<module-id>,...`")),
|
|
1951
1948
|
inject: pipe(optional(record(string(), string())), description("Inject import statements on demand")),
|
|
1952
|
-
treeshake: pipe(optional(boolean()), description("enable treeshaking"))
|
|
1953
|
-
jsx: pipe(optional(JsxOptionsSchema), description("enable jsx"))
|
|
1949
|
+
treeshake: pipe(optional(boolean()), description("enable treeshaking"))
|
|
1954
1950
|
});
|
|
1955
1951
|
const InputCliOptionsSchema = omit(strictObject({
|
|
1956
1952
|
...InputOptionsSchema.entries,
|
|
@@ -2044,7 +2040,6 @@ const OutputOptionsSchema = strictObject({
|
|
|
2044
2040
|
legalComments: pipe(optional(union([literal("none"), literal("inline")])), description("Control comments in the output")),
|
|
2045
2041
|
plugins: optional(custom(() => true)),
|
|
2046
2042
|
polyfillRequire: pipe(optional(boolean()), description("Disable require polyfill injection")),
|
|
2047
|
-
target: pipe(optional(union([string(), array(string())])), description("The JavaScript target environment")),
|
|
2048
2043
|
hoistTransitiveImports: optional(custom((input) => {
|
|
2049
2044
|
if (input) return false;
|
|
2050
2045
|
return true;
|
|
@@ -2868,7 +2863,6 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
2868
2863
|
inlineDynamicImports: outputOptions.inlineDynamicImports,
|
|
2869
2864
|
advancedChunks: outputOptions.advancedChunks,
|
|
2870
2865
|
polyfillRequire: outputOptions.polyfillRequire,
|
|
2871
|
-
target: outputOptions.target,
|
|
2872
2866
|
sanitizeFileName,
|
|
2873
2867
|
preserveModules,
|
|
2874
2868
|
virtualDirname,
|
|
@@ -3767,25 +3761,12 @@ function bindingifyInput(input) {
|
|
|
3767
3761
|
}
|
|
3768
3762
|
function bindingifyJsx(input) {
|
|
3769
3763
|
switch (input) {
|
|
3770
|
-
case false: return
|
|
3771
|
-
case "react": return
|
|
3772
|
-
case "react-jsx": return
|
|
3773
|
-
case "preserve": return
|
|
3774
|
-
|
|
3764
|
+
case false: return import_binding$3.BindingJsx.Disable;
|
|
3765
|
+
case "react": return import_binding$3.BindingJsx.React;
|
|
3766
|
+
case "react-jsx": return import_binding$3.BindingJsx.ReactJsx;
|
|
3767
|
+
case "preserve": return import_binding$3.BindingJsx.Preserve;
|
|
3768
|
+
default: return void 0;
|
|
3775
3769
|
}
|
|
3776
|
-
if (input.mode === "preserve") return { type: "Preserve" };
|
|
3777
|
-
const mode = input.mode ?? "automatic";
|
|
3778
|
-
return {
|
|
3779
|
-
type: "Enable",
|
|
3780
|
-
field0: {
|
|
3781
|
-
runtime: mode,
|
|
3782
|
-
importSource: mode === "classic" ? input.importSource : mode === "automatic" ? input.jsxImportSource : void 0,
|
|
3783
|
-
pragma: input.factory,
|
|
3784
|
-
pragmaFrag: input.fragment,
|
|
3785
|
-
development: input.development,
|
|
3786
|
-
refresh: input.refresh
|
|
3787
|
-
}
|
|
3788
|
-
};
|
|
3789
3770
|
}
|
|
3790
3771
|
function bindingifyWatch(watch$1) {
|
|
3791
3772
|
if (watch$1) return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rolldown",
|
|
3
|
-
"version": "1.0.0-beta.9-commit.
|
|
3
|
+
"version": "1.0.0-beta.9-commit.273d50e",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"homepage": "https://rolldown.rs/",
|
|
@@ -90,10 +90,10 @@
|
|
|
90
90
|
"dtsHeader": "type MaybePromise<T> = T | Promise<T>\ntype Nullable<T> = T | null | undefined\ntype VoidNullable<T = void> = T | null | undefined | void\nexport type BindingStringOrRegex = string | RegExp\n\n"
|
|
91
91
|
},
|
|
92
92
|
"dependencies": {
|
|
93
|
-
"@oxc-project/runtime": "0.
|
|
94
|
-
"@oxc-project/types": "0.
|
|
93
|
+
"@oxc-project/runtime": "0.72.0",
|
|
94
|
+
"@oxc-project/types": "0.72.0",
|
|
95
95
|
"ansis": "^4.0.0",
|
|
96
|
-
"@rolldown/pluginutils": "1.0.0-beta.9-commit.
|
|
96
|
+
"@rolldown/pluginutils": "1.0.0-beta.9-commit.273d50e"
|
|
97
97
|
},
|
|
98
98
|
"devDependencies": {
|
|
99
99
|
"@napi-rs/cli": "3.0.0-alpha.80",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"fs-extra": "^11.2.0",
|
|
109
109
|
"glob": "^11.0.0",
|
|
110
110
|
"locate-character": "^3.0.0",
|
|
111
|
-
"oxc-parser": "0.
|
|
111
|
+
"oxc-parser": "0.72.0",
|
|
112
112
|
"pathe": "^2.0.3",
|
|
113
113
|
"remeda": "^2.10.0",
|
|
114
114
|
"rolldown-plugin-dts": "^0.7.12",
|
|
@@ -120,22 +120,22 @@
|
|
|
120
120
|
"typescript": "^5.7.3",
|
|
121
121
|
"unbuild": "^3.0.0",
|
|
122
122
|
"valibot": "1.1.0",
|
|
123
|
-
"rolldown": "
|
|
124
|
-
"
|
|
123
|
+
"@rolldown/testing": "0.0.1",
|
|
124
|
+
"rolldown": "1.0.0-beta.9-commit.273d50e"
|
|
125
125
|
},
|
|
126
126
|
"optionalDependencies": {
|
|
127
|
-
"@rolldown/binding-darwin-arm64": "1.0.0-beta.9-commit.
|
|
128
|
-
"@rolldown/binding-darwin-x64": "1.0.0-beta.9-commit.
|
|
129
|
-
"@rolldown/binding-freebsd-x64": "1.0.0-beta.9-commit.
|
|
130
|
-
"@rolldown/binding-linux-
|
|
131
|
-
"@rolldown/binding-linux-
|
|
132
|
-
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.9-commit.
|
|
133
|
-
"@rolldown/binding-linux-x64-
|
|
134
|
-
"@rolldown/binding-
|
|
135
|
-
"@rolldown/binding-
|
|
136
|
-
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.9-commit.
|
|
137
|
-
"@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.9-commit.
|
|
138
|
-
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.9-commit.
|
|
127
|
+
"@rolldown/binding-darwin-arm64": "1.0.0-beta.9-commit.273d50e",
|
|
128
|
+
"@rolldown/binding-darwin-x64": "1.0.0-beta.9-commit.273d50e",
|
|
129
|
+
"@rolldown/binding-freebsd-x64": "1.0.0-beta.9-commit.273d50e",
|
|
130
|
+
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.9-commit.273d50e",
|
|
131
|
+
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.9-commit.273d50e",
|
|
132
|
+
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.9-commit.273d50e",
|
|
133
|
+
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.9-commit.273d50e",
|
|
134
|
+
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.9-commit.273d50e",
|
|
135
|
+
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.9-commit.273d50e",
|
|
136
|
+
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.9-commit.273d50e",
|
|
137
|
+
"@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.9-commit.273d50e",
|
|
138
|
+
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.9-commit.273d50e"
|
|
139
139
|
},
|
|
140
140
|
"scripts": {
|
|
141
141
|
"# Scrips for binding #": "_",
|