@rolldown/browser 1.0.0-beta.9-commit.8371a90 → 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 +2 -2
- package/dist/cli.mjs +44 -55
- package/dist/config.cjs +2 -2
- package/dist/config.d.cts +1 -1
- package/dist/config.d.mts +1 -1
- package/dist/config.mjs +4 -5
- package/dist/experimental-index.browser.mjs +1 -1
- package/dist/experimental-index.cjs +1 -1
- package/dist/experimental-index.d.cts +1 -1
- package/dist/experimental-index.d.mts +1 -1
- package/dist/experimental-index.mjs +3 -4
- package/dist/filter-index.d.cts +1 -1
- package/dist/filter-index.d.mts +1 -1
- package/dist/filter-index.mjs +1 -6
- package/dist/index.browser.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +3 -3
- package/dist/parallel-plugin-worker.cjs +1 -1
- package/dist/parallel-plugin-worker.mjs +3 -3
- package/dist/parallel-plugin.d.cts +1 -1
- package/dist/parallel-plugin.d.mts +1 -1
- package/dist/parse-ast-index.mjs +1 -1
- package/dist/rolldown-binding.wasi-browser.js +1 -0
- package/dist/rolldown-binding.wasi.cjs +1 -0
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/shared/{define-config.d-Sf3K9yNa.d.mts → define-config.d-GTTTro2-.d.mts} +4 -14
- package/dist/shared/{define-config.d-D11P5huJ.d.cts → define-config.d-gqmzo185.d.cts} +4 -14
- package/dist/shared/dist-DRt7s0oH.mjs +147 -0
- package/dist/shared/{load-config--4dZSqAQ.mjs → load-config-gIb0d07e.mjs} +1 -1
- package/dist/shared/{load-config-CT3T7nfY.cjs → load-config-xy-ScCWb.cjs} +1 -1
- package/dist/shared/{parse-ast-index-vu376yZ1.mjs → parse-ast-index-Bx70S80g.mjs} +3 -13
- package/dist/shared/{src-CXLmg0t5.mjs → src-CA0na5_d.mjs} +185 -579
- package/dist/shared/{src-HTcyNJiS.cjs → src-j8qvGwKp.cjs} +21 -40
- package/dist/{src-CB1SRiRS.js → src-D3kPdsBX.js} +22 -41
- package/package.json +1 -1
- package/dist/shared/dist-CAn6dxW6.mjs +0 -153
|
@@ -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
|
|
@@ -1796,17 +1796,13 @@ const ModuleTypesSchema = record(string(), union([
|
|
|
1796
1796
|
literal("tsx")
|
|
1797
1797
|
]));
|
|
1798
1798
|
const JsxOptionsSchema = strictObject({
|
|
1799
|
+
runtime: pipe(optional(union([literal("classic"), literal("automatic")])), description("Which runtime to use")),
|
|
1799
1800
|
development: pipe(optional(boolean()), description("Development specific information")),
|
|
1800
|
-
|
|
1801
|
-
fragment: pipe(optional(string()), description("Jsx fragment transformation")),
|
|
1801
|
+
throwIfNamespace: pipe(optional(string()), description("Toggles whether to throw an error when a tag name uses an XML namespace")),
|
|
1802
1802
|
importSource: pipe(optional(string()), description("Import the factory of element and fragment if mode is classic")),
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
literal("automatic"),
|
|
1807
|
-
literal("preserve")
|
|
1808
|
-
])), description("Jsx transformation mode")),
|
|
1809
|
-
refresh: pipe(optional(boolean()), description("React refresh transformation"))
|
|
1803
|
+
pragma: pipe(optional(string()), description("Jsx element transformation")),
|
|
1804
|
+
pragmaFlag: pipe(optional(string()), description("Jsx fragment transformation")),
|
|
1805
|
+
refresh: pipe(optional(boolean()), description("Enable react fast refresh"))
|
|
1810
1806
|
});
|
|
1811
1807
|
const HelperModeSchema = union([literal("Runtime"), literal("External")]);
|
|
1812
1808
|
const DecoratorOptionSchema = object({
|
|
@@ -1842,7 +1838,9 @@ const TransformOptionsSchema = object({
|
|
|
1842
1838
|
assumptions: optional(AssumptionsSchema),
|
|
1843
1839
|
typescript: optional(TypescriptSchema),
|
|
1844
1840
|
helpers: optional(HelpersSchema),
|
|
1845
|
-
decorators: optional(DecoratorOptionSchema)
|
|
1841
|
+
decorators: optional(DecoratorOptionSchema),
|
|
1842
|
+
jsx: optional(JsxOptionsSchema),
|
|
1843
|
+
target: pipe(optional(union([string(), array(string())])), description("The JavaScript target environment"))
|
|
1846
1844
|
});
|
|
1847
1845
|
const WatchOptionsSchema = strictObject({
|
|
1848
1846
|
chokidar: optional(never(`The "watch.chokidar" option is deprecated, please use "watch.notify" instead of it`)),
|
|
@@ -1930,13 +1928,12 @@ const InputOptionsSchema = strictObject({
|
|
|
1930
1928
|
define: pipe(optional(record(string(), string())), description("Define global variables")),
|
|
1931
1929
|
inject: optional(record(string(), union([string(), tuple([string(), string()])]))),
|
|
1932
1930
|
profilerNames: optional(boolean()),
|
|
1933
|
-
jsx: optional(union([
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
])),
|
|
1931
|
+
jsx: pipe(optional(union([
|
|
1932
|
+
literal(false),
|
|
1933
|
+
literal("react"),
|
|
1934
|
+
literal("react-jsx"),
|
|
1935
|
+
literal("preserve")
|
|
1936
|
+
])), description("Jsx options preset")),
|
|
1940
1937
|
transform: optional(TransformOptionsSchema),
|
|
1941
1938
|
watch: optional(union([WatchOptionsSchema, literal(false)])),
|
|
1942
1939
|
dropLabels: pipe(optional(array(string())), description("Remove labeled statements with these label names")),
|
|
@@ -1948,8 +1945,7 @@ const InputCliOverrideSchema = strictObject({
|
|
|
1948
1945
|
input: pipe(optional(array(string())), description("Entry file")),
|
|
1949
1946
|
external: pipe(optional(array(string())), description("Comma-separated list of module ids to exclude from the bundle `<module-id>,...`")),
|
|
1950
1947
|
inject: pipe(optional(record(string(), string())), description("Inject import statements on demand")),
|
|
1951
|
-
treeshake: pipe(optional(boolean()), description("enable treeshaking"))
|
|
1952
|
-
jsx: pipe(optional(JsxOptionsSchema), description("enable jsx"))
|
|
1948
|
+
treeshake: pipe(optional(boolean()), description("enable treeshaking"))
|
|
1953
1949
|
});
|
|
1954
1950
|
const InputCliOptionsSchema = omit(strictObject({
|
|
1955
1951
|
...InputOptionsSchema.entries,
|
|
@@ -2043,7 +2039,6 @@ const OutputOptionsSchema = strictObject({
|
|
|
2043
2039
|
legalComments: pipe(optional(union([literal("none"), literal("inline")])), description("Control comments in the output")),
|
|
2044
2040
|
plugins: optional(custom(() => true)),
|
|
2045
2041
|
polyfillRequire: pipe(optional(boolean()), description("Disable require polyfill injection")),
|
|
2046
|
-
target: pipe(optional(union([string(), array(string())])), description("The JavaScript target environment")),
|
|
2047
2042
|
hoistTransitiveImports: optional(custom((input) => {
|
|
2048
2043
|
if (input) return false;
|
|
2049
2044
|
return true;
|
|
@@ -2865,7 +2860,6 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
2865
2860
|
inlineDynamicImports: outputOptions.inlineDynamicImports,
|
|
2866
2861
|
advancedChunks: outputOptions.advancedChunks,
|
|
2867
2862
|
polyfillRequire: outputOptions.polyfillRequire,
|
|
2868
|
-
target: outputOptions.target,
|
|
2869
2863
|
sanitizeFileName,
|
|
2870
2864
|
preserveModules,
|
|
2871
2865
|
virtualDirname,
|
|
@@ -3763,25 +3757,12 @@ function bindingifyInput(input) {
|
|
|
3763
3757
|
}
|
|
3764
3758
|
function bindingifyJsx(input) {
|
|
3765
3759
|
switch (input) {
|
|
3766
|
-
case false: return
|
|
3767
|
-
case "react": return
|
|
3768
|
-
case "react-jsx": return
|
|
3769
|
-
case "preserve": return
|
|
3770
|
-
|
|
3760
|
+
case false: return src_rolldown_binding_wasi_cjs.BindingJsx.Disable;
|
|
3761
|
+
case "react": return src_rolldown_binding_wasi_cjs.BindingJsx.React;
|
|
3762
|
+
case "react-jsx": return src_rolldown_binding_wasi_cjs.BindingJsx.ReactJsx;
|
|
3763
|
+
case "preserve": return src_rolldown_binding_wasi_cjs.BindingJsx.Preserve;
|
|
3764
|
+
default: return void 0;
|
|
3771
3765
|
}
|
|
3772
|
-
if (input.mode === "preserve") return { type: "Preserve" };
|
|
3773
|
-
const mode = input.mode ?? "automatic";
|
|
3774
|
-
return {
|
|
3775
|
-
type: "Enable",
|
|
3776
|
-
field0: {
|
|
3777
|
-
runtime: mode,
|
|
3778
|
-
importSource: mode === "classic" ? input.importSource : mode === "automatic" ? input.jsxImportSource : void 0,
|
|
3779
|
-
pragma: input.factory,
|
|
3780
|
-
pragmaFrag: input.fragment,
|
|
3781
|
-
development: input.development,
|
|
3782
|
-
refresh: input.refresh
|
|
3783
|
-
}
|
|
3784
|
-
};
|
|
3785
3766
|
}
|
|
3786
3767
|
function bindingifyWatch(watch$1) {
|
|
3787
3768
|
if (watch$1) return {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { BindingCallableBuiltinPlugin, BindingHookSideEffects, BindingLogLevel, BindingPluginOrder, BindingWatcher, Bundler, parseSync, shutdownAsyncRuntime, startAsyncRuntime } from "./rolldown-binding.wasi-browser.js";
|
|
1
|
+
import { BindingCallableBuiltinPlugin, BindingHookSideEffects, BindingJsx, BindingLogLevel, BindingPluginOrder, BindingWatcher, Bundler, parseSync, shutdownAsyncRuntime, startAsyncRuntime } from "./rolldown-binding.wasi-browser.js";
|
|
2
2
|
import path from "pathe";
|
|
3
3
|
import { fileURLToPath } from "node:url";
|
|
4
4
|
import colors from "ansis";
|
|
5
5
|
|
|
6
6
|
//#region package.json
|
|
7
|
-
var version = "1.0.0-beta.9-commit.
|
|
7
|
+
var version = "1.0.0-beta.9-commit.273d50e";
|
|
8
8
|
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region src/builtin-plugin/utils.ts
|
|
@@ -1602,17 +1602,13 @@ const ModuleTypesSchema = record(string(), union([
|
|
|
1602
1602
|
literal("tsx")
|
|
1603
1603
|
]));
|
|
1604
1604
|
const JsxOptionsSchema = strictObject({
|
|
1605
|
+
runtime: pipe(optional(union([literal("classic"), literal("automatic")])), description("Which runtime to use")),
|
|
1605
1606
|
development: pipe(optional(boolean()), description("Development specific information")),
|
|
1606
|
-
|
|
1607
|
-
fragment: pipe(optional(string()), description("Jsx fragment transformation")),
|
|
1607
|
+
throwIfNamespace: pipe(optional(string()), description("Toggles whether to throw an error when a tag name uses an XML namespace")),
|
|
1608
1608
|
importSource: pipe(optional(string()), description("Import the factory of element and fragment if mode is classic")),
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
literal("automatic"),
|
|
1613
|
-
literal("preserve")
|
|
1614
|
-
])), description("Jsx transformation mode")),
|
|
1615
|
-
refresh: pipe(optional(boolean()), description("React refresh transformation"))
|
|
1609
|
+
pragma: pipe(optional(string()), description("Jsx element transformation")),
|
|
1610
|
+
pragmaFlag: pipe(optional(string()), description("Jsx fragment transformation")),
|
|
1611
|
+
refresh: pipe(optional(boolean()), description("Enable react fast refresh"))
|
|
1616
1612
|
});
|
|
1617
1613
|
const HelperModeSchema = union([literal("Runtime"), literal("External")]);
|
|
1618
1614
|
const DecoratorOptionSchema = object({
|
|
@@ -1648,7 +1644,9 @@ const TransformOptionsSchema = object({
|
|
|
1648
1644
|
assumptions: optional(AssumptionsSchema),
|
|
1649
1645
|
typescript: optional(TypescriptSchema),
|
|
1650
1646
|
helpers: optional(HelpersSchema),
|
|
1651
|
-
decorators: optional(DecoratorOptionSchema)
|
|
1647
|
+
decorators: optional(DecoratorOptionSchema),
|
|
1648
|
+
jsx: optional(JsxOptionsSchema),
|
|
1649
|
+
target: pipe(optional(union([string(), array(string())])), description("The JavaScript target environment"))
|
|
1652
1650
|
});
|
|
1653
1651
|
const WatchOptionsSchema = strictObject({
|
|
1654
1652
|
chokidar: optional(never(`The "watch.chokidar" option is deprecated, please use "watch.notify" instead of it`)),
|
|
@@ -1736,13 +1734,12 @@ const InputOptionsSchema = strictObject({
|
|
|
1736
1734
|
define: pipe(optional(record(string(), string())), description("Define global variables")),
|
|
1737
1735
|
inject: optional(record(string(), union([string(), tuple([string(), string()])]))),
|
|
1738
1736
|
profilerNames: optional(boolean()),
|
|
1739
|
-
jsx: optional(union([
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
])),
|
|
1737
|
+
jsx: pipe(optional(union([
|
|
1738
|
+
literal(false),
|
|
1739
|
+
literal("react"),
|
|
1740
|
+
literal("react-jsx"),
|
|
1741
|
+
literal("preserve")
|
|
1742
|
+
])), description("Jsx options preset")),
|
|
1746
1743
|
transform: optional(TransformOptionsSchema),
|
|
1747
1744
|
watch: optional(union([WatchOptionsSchema, literal(false)])),
|
|
1748
1745
|
dropLabels: pipe(optional(array(string())), description("Remove labeled statements with these label names")),
|
|
@@ -1754,8 +1751,7 @@ const InputCliOverrideSchema = strictObject({
|
|
|
1754
1751
|
input: pipe(optional(array(string())), description("Entry file")),
|
|
1755
1752
|
external: pipe(optional(array(string())), description("Comma-separated list of module ids to exclude from the bundle `<module-id>,...`")),
|
|
1756
1753
|
inject: pipe(optional(record(string(), string())), description("Inject import statements on demand")),
|
|
1757
|
-
treeshake: pipe(optional(boolean()), description("enable treeshaking"))
|
|
1758
|
-
jsx: pipe(optional(JsxOptionsSchema), description("enable jsx"))
|
|
1754
|
+
treeshake: pipe(optional(boolean()), description("enable treeshaking"))
|
|
1759
1755
|
});
|
|
1760
1756
|
const InputCliOptionsSchema = omit(strictObject({
|
|
1761
1757
|
...InputOptionsSchema.entries,
|
|
@@ -1849,7 +1845,6 @@ const OutputOptionsSchema = strictObject({
|
|
|
1849
1845
|
legalComments: pipe(optional(union([literal("none"), literal("inline")])), description("Control comments in the output")),
|
|
1850
1846
|
plugins: optional(custom(() => true)),
|
|
1851
1847
|
polyfillRequire: pipe(optional(boolean()), description("Disable require polyfill injection")),
|
|
1852
|
-
target: pipe(optional(union([string(), array(string())])), description("The JavaScript target environment")),
|
|
1853
1848
|
hoistTransitiveImports: optional(custom((input) => {
|
|
1854
1849
|
if (input) return false;
|
|
1855
1850
|
return true;
|
|
@@ -2810,7 +2805,6 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
2810
2805
|
inlineDynamicImports: outputOptions.inlineDynamicImports,
|
|
2811
2806
|
advancedChunks: outputOptions.advancedChunks,
|
|
2812
2807
|
polyfillRequire: outputOptions.polyfillRequire,
|
|
2813
|
-
target: outputOptions.target,
|
|
2814
2808
|
sanitizeFileName,
|
|
2815
2809
|
preserveModules,
|
|
2816
2810
|
virtualDirname,
|
|
@@ -3708,25 +3702,12 @@ function bindingifyInput(input) {
|
|
|
3708
3702
|
}
|
|
3709
3703
|
function bindingifyJsx(input) {
|
|
3710
3704
|
switch (input) {
|
|
3711
|
-
case false: return
|
|
3712
|
-
case "react": return
|
|
3713
|
-
case "react-jsx": return
|
|
3714
|
-
case "preserve": return
|
|
3715
|
-
|
|
3705
|
+
case false: return BindingJsx.Disable;
|
|
3706
|
+
case "react": return BindingJsx.React;
|
|
3707
|
+
case "react-jsx": return BindingJsx.ReactJsx;
|
|
3708
|
+
case "preserve": return BindingJsx.Preserve;
|
|
3709
|
+
default: return void 0;
|
|
3716
3710
|
}
|
|
3717
|
-
if (input.mode === "preserve") return { type: "Preserve" };
|
|
3718
|
-
const mode = input.mode ?? "automatic";
|
|
3719
|
-
return {
|
|
3720
|
-
type: "Enable",
|
|
3721
|
-
field0: {
|
|
3722
|
-
runtime: mode,
|
|
3723
|
-
importSource: mode === "classic" ? input.importSource : mode === "automatic" ? input.jsxImportSource : void 0,
|
|
3724
|
-
pragma: input.factory,
|
|
3725
|
-
pragmaFrag: input.fragment,
|
|
3726
|
-
development: input.development,
|
|
3727
|
-
refresh: input.refresh
|
|
3728
|
-
}
|
|
3729
|
-
};
|
|
3730
3711
|
}
|
|
3731
3712
|
function bindingifyWatch(watch$1) {
|
|
3732
3713
|
if (watch$1) return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rolldown/browser",
|
|
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
|
"homepage": "https://rolldown.rs/",
|
|
6
6
|
"type": "module",
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
import { __esm } from "./chunk-DSsiIF1Z.mjs";
|
|
2
|
-
|
|
3
|
-
//#region src/utils/misc.ts
|
|
4
|
-
function arraify(value) {
|
|
5
|
-
return Array.isArray(value) ? value : [value];
|
|
6
|
-
}
|
|
7
|
-
function isNullish(value) {
|
|
8
|
-
return value === null || value === void 0;
|
|
9
|
-
}
|
|
10
|
-
function isPromiseLike(value) {
|
|
11
|
-
return value && (typeof value === "object" || typeof value === "function") && typeof value.then === "function";
|
|
12
|
-
}
|
|
13
|
-
function unimplemented(info) {
|
|
14
|
-
if (info) throw new Error(`unimplemented: ${info}`);
|
|
15
|
-
throw new Error("unimplemented");
|
|
16
|
-
}
|
|
17
|
-
function unreachable(info) {
|
|
18
|
-
if (info) throw new Error(`unreachable: ${info}`);
|
|
19
|
-
throw new Error("unreachable");
|
|
20
|
-
}
|
|
21
|
-
function unsupported(info) {
|
|
22
|
-
throw new Error(`UNSUPPORTED: ${info}`);
|
|
23
|
-
}
|
|
24
|
-
function noop(..._args) {}
|
|
25
|
-
var init_misc = __esm({ "src/utils/misc.ts"() {} });
|
|
26
|
-
|
|
27
|
-
//#endregion
|
|
28
|
-
//#region ../pluginutils/dist/index.js
|
|
29
|
-
function and(...args) {
|
|
30
|
-
return new And(...args);
|
|
31
|
-
}
|
|
32
|
-
function or(...args) {
|
|
33
|
-
return new Or(...args);
|
|
34
|
-
}
|
|
35
|
-
function not(expr) {
|
|
36
|
-
return new Not(expr);
|
|
37
|
-
}
|
|
38
|
-
function id(pattern, params) {
|
|
39
|
-
return new Id(pattern, params);
|
|
40
|
-
}
|
|
41
|
-
function moduleType(pattern) {
|
|
42
|
-
return new ModuleType(pattern);
|
|
43
|
-
}
|
|
44
|
-
function code(pattern) {
|
|
45
|
-
return new Code(pattern);
|
|
46
|
-
}
|
|
47
|
-
function query(key, pattern) {
|
|
48
|
-
return new Query(key, pattern);
|
|
49
|
-
}
|
|
50
|
-
function include(expr) {
|
|
51
|
-
return new Include(expr);
|
|
52
|
-
}
|
|
53
|
-
function exclude(expr) {
|
|
54
|
-
return new Exclude(expr);
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* convert a queryObject to FilterExpression like
|
|
58
|
-
* ```js
|
|
59
|
-
* and(query(k1, v1), query(k2, v2))
|
|
60
|
-
* ```
|
|
61
|
-
* @param queryFilterObject The query filter object needs to be matched.
|
|
62
|
-
* @returns a `And` FilterExpression
|
|
63
|
-
*/
|
|
64
|
-
function queries(queryFilter) {
|
|
65
|
-
let arr = Object.entries(queryFilter).map(([key, value]) => {
|
|
66
|
-
return new Query(key, value);
|
|
67
|
-
});
|
|
68
|
-
return and(...arr);
|
|
69
|
-
}
|
|
70
|
-
var And, Or, Not, Id, ModuleType, Code, Query, Include, Exclude;
|
|
71
|
-
var init_dist = __esm({ "../pluginutils/dist/index.js"() {
|
|
72
|
-
And = class {
|
|
73
|
-
kind;
|
|
74
|
-
args;
|
|
75
|
-
constructor(...args) {
|
|
76
|
-
if (args.length === 0) throw new Error("`And` expects at least one operand");
|
|
77
|
-
this.args = args;
|
|
78
|
-
this.kind = "and";
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
|
-
Or = class {
|
|
82
|
-
kind;
|
|
83
|
-
args;
|
|
84
|
-
constructor(...args) {
|
|
85
|
-
if (args.length === 0) throw new Error("`Or` expects at least one operand");
|
|
86
|
-
this.args = args;
|
|
87
|
-
this.kind = "or";
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
Not = class {
|
|
91
|
-
kind;
|
|
92
|
-
expr;
|
|
93
|
-
constructor(expr) {
|
|
94
|
-
this.expr = expr;
|
|
95
|
-
this.kind = "not";
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
Id = class {
|
|
99
|
-
kind;
|
|
100
|
-
pattern;
|
|
101
|
-
params;
|
|
102
|
-
constructor(pattern, params) {
|
|
103
|
-
this.pattern = pattern;
|
|
104
|
-
this.kind = "id";
|
|
105
|
-
this.params = params ?? { cleanUrl: false };
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
ModuleType = class {
|
|
109
|
-
kind;
|
|
110
|
-
pattern;
|
|
111
|
-
constructor(pattern) {
|
|
112
|
-
this.pattern = pattern;
|
|
113
|
-
this.kind = "moduleType";
|
|
114
|
-
}
|
|
115
|
-
};
|
|
116
|
-
Code = class {
|
|
117
|
-
kind;
|
|
118
|
-
pattern;
|
|
119
|
-
constructor(expr) {
|
|
120
|
-
this.pattern = expr;
|
|
121
|
-
this.kind = "code";
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
Query = class {
|
|
125
|
-
kind;
|
|
126
|
-
key;
|
|
127
|
-
pattern;
|
|
128
|
-
constructor(key, pattern) {
|
|
129
|
-
this.pattern = pattern;
|
|
130
|
-
this.key = key;
|
|
131
|
-
this.kind = "query";
|
|
132
|
-
}
|
|
133
|
-
};
|
|
134
|
-
Include = class {
|
|
135
|
-
kind;
|
|
136
|
-
expr;
|
|
137
|
-
constructor(expr) {
|
|
138
|
-
this.expr = expr;
|
|
139
|
-
this.kind = "include";
|
|
140
|
-
}
|
|
141
|
-
};
|
|
142
|
-
Exclude = class {
|
|
143
|
-
kind;
|
|
144
|
-
expr;
|
|
145
|
-
constructor(expr) {
|
|
146
|
-
this.expr = expr;
|
|
147
|
-
this.kind = "exclude";
|
|
148
|
-
}
|
|
149
|
-
};
|
|
150
|
-
} });
|
|
151
|
-
|
|
152
|
-
//#endregion
|
|
153
|
-
export { and as and$1, arraify, code as code$1, exclude as exclude$1, id as id$1, include as include$1, init_dist, init_misc, isNullish, isPromiseLike, moduleType as moduleType$1, noop, not as not$1, or as or$1, queries as queries$1, query as query$1, unimplemented, unreachable, unsupported };
|