@rolldown/browser 1.0.0-rc.9 → 1.0.0
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 +207 -72
- package/dist/config.d.mts +1 -1
- package/dist/config.mjs +2 -7
- package/dist/{constructors-BgL_dmUe.js → constructors-BXVEHwHm.js} +8 -2
- package/dist/{error-DkAP_6fk.js → error-DMfKBGWU.js} +1 -1
- package/dist/experimental-index.browser.mjs +10 -10
- package/dist/experimental-index.d.mts +17 -19
- package/dist/experimental-index.mjs +11 -11
- package/dist/experimental-runtime-types.d.ts +14 -5
- package/dist/filter-index.d.mts +1 -1
- package/dist/index.browser.mjs +4 -4
- package/dist/index.d.mts +4 -3
- package/dist/index.mjs +4 -8
- package/dist/{normalize-string-or-regex-TtAGUp42.js → normalize-string-or-regex-CBPw_c5O.js} +21 -11
- package/dist/parallel-plugin-worker.mjs +1 -4
- package/dist/parallel-plugin.d.mts +2 -2
- package/dist/parse-ast-index.d.mts +1 -2
- package/dist/parse-ast-index.mjs +1 -1
- package/dist/plugins-index.browser.mjs +2 -2
- package/dist/plugins-index.d.mts +3 -3
- package/dist/plugins-index.mjs +2 -2
- package/dist/{transform-UkHb5h4g.js → resolve-tsconfig-eqfrsvjc.js} +28 -5
- package/dist/rolldown-binding.wasi-browser.js +6 -0
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/{rolldown-build-sRmdtwRU.js → rolldown-build-CKS7EawU.js} +211 -197
- package/dist/shared/binding-CaVxb0SV.d.mts +3198 -0
- package/dist/shared/{bindingify-input-options-Cfptl9gw.mjs → bindingify-input-options-CboGFdC4.mjs} +125 -57
- package/dist/shared/{constructors-C1tQjDsj.d.mts → constructors-B1JYJxhf.d.mts} +7 -3
- package/dist/shared/{constructors-C7Kkidxk.mjs → constructors-DO36gIcC.mjs} +8 -2
- package/dist/shared/{define-config-B1J71V4c.d.mts → define-config-Bah0mfyR.d.mts} +81 -29
- package/dist/shared/{load-config-B6MMusXN.mjs → load-config-BwBgui4p.mjs} +1 -1
- package/dist/shared/{normalize-string-or-regex-CF3Uz6aU.mjs → normalize-string-or-regex-Dq6w-2tU.mjs} +21 -11
- package/dist/shared/{parse-DDUnGYGU.mjs → parse-Lc1YQk0q.mjs} +1 -1
- package/dist/shared/{prompt-BYQIwEjg.mjs → prompt-U5ajztzG.mjs} +4 -2
- package/dist/shared/{transform-B_n5An0U.mjs → resolve-tsconfig-Cwoo4h_o.mjs} +27 -4
- package/dist/shared/{rolldown-BDqeiCX1.mjs → rolldown-WowDTCZP.mjs} +1 -1
- package/dist/shared/{rolldown-build-DZ7tJkeQ.mjs → rolldown-build-DIb-iqkO.mjs} +89 -143
- package/dist/shared/{transform-BSAGL1b_.d.mts → transform-kP3ISMFT.d.mts} +30 -13
- package/dist/shared/{utils-6wxe_LMG.d.mts → utils-KRVeJqya.d.mts} +1 -1
- package/dist/shared/{watch-Cj4uDLQX.mjs → watch-B81_EvN-.mjs} +2 -2
- package/dist/utils-index.browser.mjs +5 -5
- package/dist/utils-index.d.mts +4 -4
- package/dist/utils-index.mjs +5 -6
- package/dist/wasi-worker-browser.mjs +8 -0
- package/package.json +4 -2
- package/dist/shared/types-Cx3HYorz.d.mts +0 -1302
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as logCycleLoading, f as logNoFileSystemInBrowser, g as getCodeFrame, h as locate, i as bindingifyManifestPlugin, l as logInputHookInOutputPlugin, m as logPluginError, n as BuiltinPlugin, o as augmentCodeLocation, p as logParseError, r as bindingifyBuiltInPlugin, s as error, t as normalizedStringOrRegex, u as logInvalidLogPosition } from "./normalize-string-or-regex-
|
|
2
|
-
import { i as unwrapBindingResult, o as parseSync$1, s as bindingifySourcemap$1, t as aggregateBindingErrorsIntoJsError } from "./error-
|
|
1
|
+
import { c as logCycleLoading, f as logNoFileSystemInBrowser, g as getCodeFrame, h as locate, i as bindingifyManifestPlugin, l as logInputHookInOutputPlugin, m as logPluginError, n as BuiltinPlugin, o as augmentCodeLocation, p as logParseError, r as bindingifyBuiltInPlugin, s as error, t as normalizedStringOrRegex, u as logInvalidLogPosition } from "./normalize-string-or-regex-CBPw_c5O.js";
|
|
2
|
+
import { i as unwrapBindingResult, o as parseSync$1, s as bindingifySourcemap$1, t as aggregateBindingErrorsIntoJsError } from "./error-DMfKBGWU.js";
|
|
3
3
|
import { BindingAttachDebugInfo, BindingBundler, BindingChunkModuleOrderBy, BindingLogLevel, BindingMagicString, BindingPluginOrder, BindingPropertyReadSideEffects, BindingPropertyWriteSideEffects, shutdownAsyncRuntime, startAsyncRuntime } from "./rolldown-binding.wasi-browser.js";
|
|
4
4
|
//#region ../../node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs
|
|
5
5
|
let _lazyMatch = () => {
|
|
@@ -454,7 +454,7 @@ const win32 = /* @__PURE__ */ mix(";");
|
|
|
454
454
|
*
|
|
455
455
|
* @category Plugin APIs
|
|
456
456
|
*/
|
|
457
|
-
const VERSION = "1.0.0
|
|
457
|
+
const VERSION = "1.0.0";
|
|
458
458
|
//#endregion
|
|
459
459
|
//#region src/constants/index.ts
|
|
460
460
|
/**
|
|
@@ -660,6 +660,8 @@ const ANONYMOUS_OUTPUT_PLUGIN_PREFIX = "at output position ";
|
|
|
660
660
|
//#endregion
|
|
661
661
|
//#region src/plugin/minimal-plugin-context.ts
|
|
662
662
|
var MinimalPluginContextImpl = class {
|
|
663
|
+
pluginName;
|
|
664
|
+
hookName;
|
|
663
665
|
info;
|
|
664
666
|
warn;
|
|
665
667
|
debug;
|
|
@@ -747,7 +749,7 @@ function getSortedPlugins(hookName, plugins) {
|
|
|
747
749
|
];
|
|
748
750
|
}
|
|
749
751
|
//#endregion
|
|
750
|
-
//#region ../../node_modules/.pnpm/valibot@1.
|
|
752
|
+
//#region ../../node_modules/.pnpm/valibot@1.3.1_typescript@6.0.3/node_modules/valibot/dist/index.mjs
|
|
751
753
|
let store$4;
|
|
752
754
|
/**
|
|
753
755
|
* Returns the global configuration.
|
|
@@ -1839,9 +1841,7 @@ function styleText(...args) {
|
|
|
1839
1841
|
}
|
|
1840
1842
|
//#endregion
|
|
1841
1843
|
//#region src/utils/validator.ts
|
|
1842
|
-
function isTypeTrue() {}
|
|
1843
1844
|
const StringOrRegExpSchema = /* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ instance(RegExp)]);
|
|
1844
|
-
isTypeTrue();
|
|
1845
1845
|
function vFunction() {
|
|
1846
1846
|
return /* @__PURE__ */ function_();
|
|
1847
1847
|
}
|
|
@@ -1850,32 +1850,25 @@ const LogLevelSchema = /* @__PURE__ */ union([
|
|
|
1850
1850
|
/* @__PURE__ */ literal("info"),
|
|
1851
1851
|
/* @__PURE__ */ literal("warn")
|
|
1852
1852
|
]);
|
|
1853
|
-
isTypeTrue();
|
|
1854
1853
|
const LogLevelOptionSchema = /* @__PURE__ */ union([LogLevelSchema, /* @__PURE__ */ literal("silent")]);
|
|
1855
|
-
isTypeTrue();
|
|
1856
1854
|
const LogLevelWithErrorSchema = /* @__PURE__ */ union([LogLevelSchema, /* @__PURE__ */ literal("error")]);
|
|
1857
|
-
isTypeTrue();
|
|
1858
1855
|
const RollupLogSchema = /* @__PURE__ */ any();
|
|
1859
1856
|
const RollupLogWithStringSchema = /* @__PURE__ */ union([RollupLogSchema, /* @__PURE__ */ string()]);
|
|
1860
|
-
isTypeTrue();
|
|
1861
1857
|
const InputOptionSchema = /* @__PURE__ */ union([
|
|
1862
1858
|
/* @__PURE__ */ string(),
|
|
1863
1859
|
/* @__PURE__ */ array(/* @__PURE__ */ string()),
|
|
1864
1860
|
/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string())
|
|
1865
1861
|
]);
|
|
1866
|
-
isTypeTrue();
|
|
1867
1862
|
const ExternalOptionFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([
|
|
1868
1863
|
/* @__PURE__ */ string(),
|
|
1869
1864
|
/* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
1870
1865
|
/* @__PURE__ */ boolean()
|
|
1871
1866
|
])), /* @__PURE__ */ returns(/* @__PURE__ */ nullish(/* @__PURE__ */ boolean())));
|
|
1872
|
-
isTypeTrue();
|
|
1873
1867
|
const ExternalOptionSchema = /* @__PURE__ */ union([
|
|
1874
1868
|
StringOrRegExpSchema,
|
|
1875
1869
|
/* @__PURE__ */ array(StringOrRegExpSchema),
|
|
1876
1870
|
ExternalOptionFunctionSchema
|
|
1877
1871
|
]);
|
|
1878
|
-
isTypeTrue();
|
|
1879
1872
|
const ModuleTypesSchema = /* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ union([
|
|
1880
1873
|
/* @__PURE__ */ literal("asset"),
|
|
1881
1874
|
/* @__PURE__ */ literal("base64"),
|
|
@@ -1891,76 +1884,63 @@ const ModuleTypesSchema = /* @__PURE__ */ record(/* @__PURE__ */ string(), /* @_
|
|
|
1891
1884
|
/* @__PURE__ */ literal("ts"),
|
|
1892
1885
|
/* @__PURE__ */ literal("tsx")
|
|
1893
1886
|
]));
|
|
1894
|
-
isTypeTrue();
|
|
1895
|
-
const JsxOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1896
|
-
runtime: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("classic"), /* @__PURE__ */ literal("automatic")])), /* @__PURE__ */ description("Which runtime to use")),
|
|
1897
|
-
development: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Development specific information")),
|
|
1898
|
-
throwIfNamespace: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Toggles whether to throw an error when a tag name uses an XML namespace")),
|
|
1899
|
-
pure: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Mark JSX elements and top-level React method calls as pure for tree shaking.")),
|
|
1900
|
-
importSource: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Import the factory of element and fragment if mode is classic")),
|
|
1901
|
-
pragma: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Jsx element transformation")),
|
|
1902
|
-
pragmaFrag: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Jsx fragment transformation")),
|
|
1903
|
-
refresh: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ any()])), /* @__PURE__ */ description("Enable react fast refresh"))
|
|
1904
|
-
});
|
|
1905
|
-
isTypeTrue();
|
|
1906
|
-
const HelperModeSchema = /* @__PURE__ */ union([/* @__PURE__ */ literal("Runtime"), /* @__PURE__ */ literal("External")]);
|
|
1907
|
-
const DecoratorOptionSchema = /* @__PURE__ */ object({
|
|
1908
|
-
legacy: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1909
|
-
emitDecoratorMetadata: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1910
|
-
});
|
|
1911
|
-
isTypeTrue();
|
|
1912
|
-
const HelpersSchema = /* @__PURE__ */ object({ mode: /* @__PURE__ */ optional(HelperModeSchema) });
|
|
1913
|
-
isTypeTrue();
|
|
1914
|
-
const TypescriptSchema = /* @__PURE__ */ object({
|
|
1915
|
-
jsxPragma: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
1916
|
-
jsxPragmaFrag: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
1917
|
-
onlyRemoveTypeImports: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1918
|
-
allowNamespaces: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1919
|
-
allowDeclareFields: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1920
|
-
removeClassFieldsWithoutInitializer: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1921
|
-
declaration: /* @__PURE__ */ optional(/* @__PURE__ */ object({
|
|
1922
|
-
stripInternal: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1923
|
-
sourcemap: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1924
|
-
})),
|
|
1925
|
-
rewriteImportExtensions: /* @__PURE__ */ optional(/* @__PURE__ */ union([
|
|
1926
|
-
/* @__PURE__ */ literal("rewrite"),
|
|
1927
|
-
/* @__PURE__ */ literal("remove"),
|
|
1928
|
-
/* @__PURE__ */ boolean()
|
|
1929
|
-
]))
|
|
1930
|
-
});
|
|
1931
|
-
isTypeTrue();
|
|
1932
|
-
const AssumptionsSchema = /* @__PURE__ */ object({
|
|
1933
|
-
ignoreFunctionLength: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1934
|
-
noDocumentAll: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1935
|
-
objectRestNoSymbols: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1936
|
-
pureGetters: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1937
|
-
setPublicClassFields: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1938
|
-
});
|
|
1939
|
-
isTypeTrue();
|
|
1940
|
-
const TransformPluginsSchema = /* @__PURE__ */ object({
|
|
1941
|
-
styledComponents: /* @__PURE__ */ optional(/* @__PURE__ */ any()),
|
|
1942
|
-
taggedTemplateEscape: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1943
|
-
});
|
|
1944
|
-
isTypeTrue();
|
|
1945
1887
|
const TransformOptionsSchema = /* @__PURE__ */ object({
|
|
1946
|
-
assumptions: /* @__PURE__ */ optional(
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1888
|
+
assumptions: /* @__PURE__ */ optional(/* @__PURE__ */ object({
|
|
1889
|
+
ignoreFunctionLength: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1890
|
+
noDocumentAll: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1891
|
+
objectRestNoSymbols: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1892
|
+
pureGetters: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1893
|
+
setPublicClassFields: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1894
|
+
})),
|
|
1895
|
+
typescript: /* @__PURE__ */ optional(/* @__PURE__ */ object({
|
|
1896
|
+
jsxPragma: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
1897
|
+
jsxPragmaFrag: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
1898
|
+
onlyRemoveTypeImports: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1899
|
+
allowNamespaces: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1900
|
+
allowDeclareFields: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1901
|
+
removeClassFieldsWithoutInitializer: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1902
|
+
optimizeConstEnums: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1903
|
+
optimizeEnums: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1904
|
+
declaration: /* @__PURE__ */ optional(/* @__PURE__ */ object({
|
|
1905
|
+
stripInternal: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1906
|
+
sourcemap: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1907
|
+
})),
|
|
1908
|
+
rewriteImportExtensions: /* @__PURE__ */ optional(/* @__PURE__ */ union([
|
|
1909
|
+
/* @__PURE__ */ literal("rewrite"),
|
|
1910
|
+
/* @__PURE__ */ literal("remove"),
|
|
1911
|
+
/* @__PURE__ */ boolean()
|
|
1912
|
+
]))
|
|
1913
|
+
})),
|
|
1914
|
+
helpers: /* @__PURE__ */ optional(/* @__PURE__ */ object({ mode: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("Runtime"), /* @__PURE__ */ literal("External")])) })),
|
|
1915
|
+
decorator: /* @__PURE__ */ optional(/* @__PURE__ */ object({
|
|
1916
|
+
legacy: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1917
|
+
emitDecoratorMetadata: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1918
|
+
})),
|
|
1950
1919
|
jsx: /* @__PURE__ */ optional(/* @__PURE__ */ union([
|
|
1951
1920
|
/* @__PURE__ */ literal(false),
|
|
1952
1921
|
/* @__PURE__ */ literal("preserve"),
|
|
1953
1922
|
/* @__PURE__ */ literal("react"),
|
|
1954
1923
|
/* @__PURE__ */ literal("react-jsx"),
|
|
1955
|
-
|
|
1924
|
+
/* @__PURE__ */ strictObject({
|
|
1925
|
+
runtime: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("classic"), /* @__PURE__ */ literal("automatic")])), /* @__PURE__ */ description("Which runtime to use")),
|
|
1926
|
+
development: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Development specific information")),
|
|
1927
|
+
throwIfNamespace: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Toggles whether to throw an error when a tag name uses an XML namespace")),
|
|
1928
|
+
pure: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Mark JSX elements and top-level React method calls as pure for tree shaking.")),
|
|
1929
|
+
importSource: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Import the factory of element and fragment if mode is classic")),
|
|
1930
|
+
pragma: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Jsx element transformation")),
|
|
1931
|
+
pragmaFrag: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Jsx fragment transformation")),
|
|
1932
|
+
refresh: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ any()])), /* @__PURE__ */ description("Enable react fast refresh"))
|
|
1933
|
+
})
|
|
1956
1934
|
])),
|
|
1957
1935
|
target: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ array(/* @__PURE__ */ string())])), /* @__PURE__ */ description("The JavaScript target environment")),
|
|
1958
1936
|
define: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string())), /* @__PURE__ */ description("Define global variables (syntax: key:value,key2:value2)")),
|
|
1959
1937
|
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")),
|
|
1960
1938
|
dropLabels: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())), /* @__PURE__ */ description("Remove labeled statements with these label names")),
|
|
1961
|
-
plugins: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(
|
|
1939
|
+
plugins: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ object({
|
|
1940
|
+
styledComponents: /* @__PURE__ */ optional(/* @__PURE__ */ any()),
|
|
1941
|
+
taggedTemplateEscape: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
1942
|
+
})), /* @__PURE__ */ description("Third-party plugins to use"))
|
|
1962
1943
|
});
|
|
1963
|
-
isTypeTrue();
|
|
1964
1944
|
const WatcherFileWatcherOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1965
1945
|
usePolling: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Use polling-based file watching instead of native OS events")),
|
|
1966
1946
|
pollInterval: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ number()), /* @__PURE__ */ description("Poll interval in milliseconds (only used when usePolling is true)")),
|
|
@@ -1980,7 +1960,6 @@ const WatcherOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
1980
1960
|
clearScreen: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to clear the screen when a rebuild is triggered")),
|
|
1981
1961
|
onInvalidate: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(vFunction()), /* @__PURE__ */ description("An optional function that will be called immediately every time a module changes that is part of the build."))
|
|
1982
1962
|
});
|
|
1983
|
-
isTypeTrue();
|
|
1984
1963
|
const ChecksOptionsSchema = /* @__PURE__ */ strictObject({
|
|
1985
1964
|
circularDependency: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when detecting circular dependency")),
|
|
1986
1965
|
eval: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when detecting uses of direct `eval`s")),
|
|
@@ -2003,52 +1982,39 @@ const ChecksOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
2003
1982
|
unsupportedTsconfigOption: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a tsconfig option or combination of options is not supported")),
|
|
2004
1983
|
ineffectiveDynamicImport: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a module is dynamically imported but also statically imported, making the dynamic import ineffective for code splitting"))
|
|
2005
1984
|
});
|
|
2006
|
-
isTypeTrue();
|
|
2007
|
-
const CompressOptionsKeepNamesSchema = /* @__PURE__ */ strictObject({
|
|
2008
|
-
function: /* @__PURE__ */ boolean(),
|
|
2009
|
-
class: /* @__PURE__ */ boolean()
|
|
2010
|
-
});
|
|
2011
|
-
isTypeTrue();
|
|
2012
|
-
const CompressTreeshakeOptionsSchema = /* @__PURE__ */ strictObject({
|
|
2013
|
-
annotations: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
2014
|
-
manualPureFunctions: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
|
|
2015
|
-
propertyReadSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ literal("always")])),
|
|
2016
|
-
unknownGlobalSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
2017
|
-
invalidImportSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
2018
|
-
});
|
|
2019
|
-
isTypeTrue();
|
|
2020
|
-
const CompressOptionsSchema = /* @__PURE__ */ strictObject({
|
|
2021
|
-
target: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ array(/* @__PURE__ */ string())])),
|
|
2022
|
-
dropConsole: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
2023
|
-
dropDebugger: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
2024
|
-
keepNames: /* @__PURE__ */ optional(CompressOptionsKeepNamesSchema),
|
|
2025
|
-
unused: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ literal("keep_assign")])),
|
|
2026
|
-
joinVars: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
2027
|
-
sequences: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
2028
|
-
dropLabels: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
|
|
2029
|
-
maxIterations: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
2030
|
-
treeshake: /* @__PURE__ */ optional(CompressTreeshakeOptionsSchema)
|
|
2031
|
-
});
|
|
2032
|
-
isTypeTrue();
|
|
2033
|
-
const MangleOptionsKeepNamesSchema = /* @__PURE__ */ strictObject({
|
|
2034
|
-
function: /* @__PURE__ */ boolean(),
|
|
2035
|
-
class: /* @__PURE__ */ boolean()
|
|
2036
|
-
});
|
|
2037
|
-
isTypeTrue();
|
|
2038
|
-
const MangleOptionsSchema = /* @__PURE__ */ strictObject({
|
|
2039
|
-
toplevel: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
2040
|
-
keepNames: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), MangleOptionsKeepNamesSchema])),
|
|
2041
|
-
debug: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
2042
|
-
});
|
|
2043
|
-
isTypeTrue();
|
|
2044
|
-
const CodegenOptionsSchema = /* @__PURE__ */ strictObject({ removeWhitespace: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()) });
|
|
2045
|
-
isTypeTrue();
|
|
2046
1985
|
const MinifyOptionsSchema = /* @__PURE__ */ strictObject({
|
|
2047
|
-
compress: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(),
|
|
2048
|
-
|
|
2049
|
-
|
|
1986
|
+
compress: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
|
|
1987
|
+
target: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ array(/* @__PURE__ */ string())])),
|
|
1988
|
+
dropConsole: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1989
|
+
dropDebugger: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1990
|
+
keepNames: /* @__PURE__ */ optional(/* @__PURE__ */ strictObject({
|
|
1991
|
+
function: /* @__PURE__ */ boolean(),
|
|
1992
|
+
class: /* @__PURE__ */ boolean()
|
|
1993
|
+
})),
|
|
1994
|
+
unused: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ literal("keep_assign")])),
|
|
1995
|
+
joinVars: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1996
|
+
sequences: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
1997
|
+
dropLabels: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
|
|
1998
|
+
maxIterations: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
1999
|
+
treeshake: /* @__PURE__ */ optional(/* @__PURE__ */ strictObject({
|
|
2000
|
+
annotations: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
2001
|
+
manualPureFunctions: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
|
|
2002
|
+
propertyReadSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ literal("always")])),
|
|
2003
|
+
propertyWriteSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
2004
|
+
unknownGlobalSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
2005
|
+
invalidImportSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
2006
|
+
}))
|
|
2007
|
+
})])),
|
|
2008
|
+
mangle: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
|
|
2009
|
+
toplevel: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
2010
|
+
keepNames: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
|
|
2011
|
+
function: /* @__PURE__ */ boolean(),
|
|
2012
|
+
class: /* @__PURE__ */ boolean()
|
|
2013
|
+
})])),
|
|
2014
|
+
debug: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
2015
|
+
})])),
|
|
2016
|
+
codegen: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({ removeWhitespace: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()) })]))
|
|
2050
2017
|
});
|
|
2051
|
-
isTypeTrue();
|
|
2052
2018
|
const ResolveOptionsSchema = /* @__PURE__ */ strictObject({
|
|
2053
2019
|
alias: /* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ union([
|
|
2054
2020
|
/* @__PURE__ */ literal(false),
|
|
@@ -2066,7 +2032,6 @@ const ResolveOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
2066
2032
|
symlinks: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
2067
2033
|
tsconfigFilename: /* @__PURE__ */ optional(/* @__PURE__ */ string())
|
|
2068
2034
|
});
|
|
2069
|
-
isTypeTrue();
|
|
2070
2035
|
const TreeshakingOptionsSchema = /* @__PURE__ */ strictObject({
|
|
2071
2036
|
moduleSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ any()),
|
|
2072
2037
|
annotations: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
@@ -2077,7 +2042,6 @@ const TreeshakingOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
2077
2042
|
propertyReadSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal(false), /* @__PURE__ */ literal("always")])),
|
|
2078
2043
|
propertyWriteSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal(false), /* @__PURE__ */ literal("always")]))
|
|
2079
2044
|
});
|
|
2080
|
-
isTypeTrue();
|
|
2081
2045
|
const OptimizationOptionsSchema = /* @__PURE__ */ strictObject({
|
|
2082
2046
|
inlineConst: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
|
|
2083
2047
|
mode: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("all"), /* @__PURE__ */ literal("smart")])),
|
|
@@ -2085,24 +2049,19 @@ const OptimizationOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
2085
2049
|
})])), /* @__PURE__ */ description("Enable crossmodule constant inlining")),
|
|
2086
2050
|
pifeForModuleWrappers: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Use PIFE pattern for module wrappers"))
|
|
2087
2051
|
});
|
|
2088
|
-
isTypeTrue();
|
|
2089
2052
|
const LogOrStringHandlerSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([LogLevelWithErrorSchema, RollupLogWithStringSchema])));
|
|
2090
|
-
isTypeTrue();
|
|
2091
2053
|
const OnLogSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([
|
|
2092
2054
|
LogLevelSchema,
|
|
2093
2055
|
RollupLogSchema,
|
|
2094
2056
|
LogOrStringHandlerSchema
|
|
2095
2057
|
])));
|
|
2096
|
-
isTypeTrue();
|
|
2097
2058
|
const OnwarnSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([RollupLogSchema, /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ union([RollupLogWithStringSchema, /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ returns(RollupLogWithStringSchema))])])))])));
|
|
2098
|
-
isTypeTrue();
|
|
2099
2059
|
const DevModeSchema = /* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
|
|
2100
2060
|
port: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
2101
2061
|
host: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
2102
2062
|
implement: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
|
|
2103
2063
|
lazy: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
|
|
2104
2064
|
})]);
|
|
2105
|
-
isTypeTrue();
|
|
2106
2065
|
const InputOptionsSchema = /* @__PURE__ */ strictObject({
|
|
2107
2066
|
input: /* @__PURE__ */ optional(InputOptionSchema),
|
|
2108
2067
|
plugins: /* @__PURE__ */ optional(/* @__PURE__ */ custom(() => true)),
|
|
@@ -2155,7 +2114,6 @@ const InputOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
2155
2114
|
context: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("The value of `this` at the top level of each module.")),
|
|
2156
2115
|
tsconfig: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ string()])), /* @__PURE__ */ description("Path to the tsconfig.json file."))
|
|
2157
2116
|
});
|
|
2158
|
-
isTypeTrue();
|
|
2159
2117
|
const InputCliOverrideSchema = /* @__PURE__ */ strictObject({
|
|
2160
2118
|
input: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())), /* @__PURE__ */ description("Entry file")),
|
|
2161
2119
|
external: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())), /* @__PURE__ */ description("Comma-separated list of module ids to exclude from the bundle `<module-id>,...`")),
|
|
@@ -2184,32 +2142,22 @@ const ModuleFormatSchema = /* @__PURE__ */ union([
|
|
|
2184
2142
|
/* @__PURE__ */ literal("iife"),
|
|
2185
2143
|
/* @__PURE__ */ literal("umd")
|
|
2186
2144
|
]);
|
|
2187
|
-
isTypeTrue();
|
|
2188
2145
|
const AddonFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ custom(() => true)])), /* @__PURE__ */ returnsAsync(/* @__PURE__ */ unionAsync([/* @__PURE__ */ string(), /* @__PURE__ */ pipeAsync(/* @__PURE__ */ promise(), /* @__PURE__ */ awaitAsync(), /* @__PURE__ */ string())])));
|
|
2189
|
-
isTypeTrue();
|
|
2190
2146
|
const ChunkFileNamesFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ custom(() => true)])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
|
|
2191
|
-
isTypeTrue();
|
|
2192
2147
|
const ChunkFileNamesSchema = /* @__PURE__ */ union([/* @__PURE__ */ string(), ChunkFileNamesFunctionSchema]);
|
|
2193
2148
|
const AssetFileNamesFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ custom(() => true)])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
|
|
2194
|
-
isTypeTrue();
|
|
2195
2149
|
const AssetFileNamesSchema = /* @__PURE__ */ union([/* @__PURE__ */ string(), AssetFileNamesFunctionSchema]);
|
|
2196
2150
|
const SanitizeFileNameFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string()])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
|
|
2197
|
-
isTypeTrue();
|
|
2198
2151
|
const SanitizeFileNameSchema = /* @__PURE__ */ union([/* @__PURE__ */ boolean(), SanitizeFileNameFunctionSchema]);
|
|
2199
2152
|
const GlobalsFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string()])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
|
|
2200
|
-
isTypeTrue();
|
|
2201
2153
|
const PathsFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string()])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
|
|
2202
|
-
isTypeTrue();
|
|
2203
2154
|
const ManualChunksFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string(), /* @__PURE__ */ object({})])), /* @__PURE__ */ returns(/* @__PURE__ */ nullish(/* @__PURE__ */ string())));
|
|
2204
|
-
isTypeTrue();
|
|
2205
2155
|
const AdvancedChunksNameFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string(), /* @__PURE__ */ object({})])), /* @__PURE__ */ returns(/* @__PURE__ */ nullish(/* @__PURE__ */ string())));
|
|
2206
|
-
isTypeTrue();
|
|
2207
2156
|
const AdvancedChunksTestFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string()])), /* @__PURE__ */ returns(/* @__PURE__ */ union([
|
|
2208
2157
|
/* @__PURE__ */ boolean(),
|
|
2209
2158
|
/* @__PURE__ */ void_(),
|
|
2210
2159
|
/* @__PURE__ */ undefined_()
|
|
2211
2160
|
])));
|
|
2212
|
-
isTypeTrue();
|
|
2213
2161
|
const AdvancedChunksSchema = /* @__PURE__ */ strictObject({
|
|
2214
2162
|
includeDependenciesRecursively: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
2215
2163
|
minSize: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
@@ -2227,18 +2175,15 @@ const AdvancedChunksSchema = /* @__PURE__ */ strictObject({
|
|
|
2227
2175
|
minModuleSize: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
2228
2176
|
maxModuleSize: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
2229
2177
|
entriesAware: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
|
|
2230
|
-
entriesAwareMergeThreshold: /* @__PURE__ */ optional(/* @__PURE__ */ number())
|
|
2178
|
+
entriesAwareMergeThreshold: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
|
|
2179
|
+
tags: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string()))
|
|
2231
2180
|
})))
|
|
2232
2181
|
});
|
|
2233
|
-
isTypeTrue();
|
|
2234
|
-
const GeneratedCodePresetSchema = /* @__PURE__ */ union([/* @__PURE__ */ literal("es5"), /* @__PURE__ */ literal("es2015")]);
|
|
2235
|
-
isTypeTrue();
|
|
2236
2182
|
const GeneratedCodeOptionsSchema = /* @__PURE__ */ strictObject({
|
|
2237
2183
|
symbols: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to use Symbol.toStringTag for namespace objects")),
|
|
2238
|
-
preset: /* @__PURE__ */ optional(
|
|
2184
|
+
preset: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("es5"), /* @__PURE__ */ literal("es2015")])),
|
|
2239
2185
|
profilerNames: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to add readable names to internal variables for profiling purposes"))
|
|
2240
2186
|
});
|
|
2241
|
-
isTypeTrue();
|
|
2242
2187
|
const OutputOptionsSchema = /* @__PURE__ */ strictObject({
|
|
2243
2188
|
dir: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Output directory, defaults to `dist` if `file` is not set")),
|
|
2244
2189
|
file: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Single output file")),
|
|
@@ -2261,6 +2206,7 @@ const OutputOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
2261
2206
|
])), /* @__PURE__ */ description(`Generate sourcemap (\`-s inline\` for inline, or \`-s\` for \`.map\` file)`)),
|
|
2262
2207
|
sourcemapBaseUrl: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Base URL used to prefix sourcemap paths")),
|
|
2263
2208
|
sourcemapDebugIds: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Inject sourcemap debug IDs")),
|
|
2209
|
+
sourcemapExcludeSources: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Exclude source content from sourcemaps")),
|
|
2264
2210
|
sourcemapIgnoreList: /* @__PURE__ */ optional(/* @__PURE__ */ union([
|
|
2265
2211
|
/* @__PURE__ */ boolean(),
|
|
2266
2212
|
/* @__PURE__ */ custom(() => true),
|
|
@@ -2313,7 +2259,6 @@ const OutputOptionsSchema = /* @__PURE__ */ strictObject({
|
|
|
2313
2259
|
strictExecutionOrder: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Lets modules be executed in the order they are declared.")),
|
|
2314
2260
|
strict: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ literal("auto")])), /* @__PURE__ */ description("Whether to always output `\"use strict\"` directive in non-ES module outputs."))
|
|
2315
2261
|
});
|
|
2316
|
-
isTypeTrue();
|
|
2317
2262
|
const getAddonDescription = (placement, wrapper) => {
|
|
2318
2263
|
return `Code to insert the ${styleText("bold", placement)} of the bundled file (${styleText("bold", wrapper)} the wrapper function)`;
|
|
2319
2264
|
};
|
|
@@ -2505,7 +2450,7 @@ function bindingAssetSource(source) {
|
|
|
2505
2450
|
return { inner: source };
|
|
2506
2451
|
}
|
|
2507
2452
|
//#endregion
|
|
2508
|
-
//#region \0@oxc-project+runtime@0.
|
|
2453
|
+
//#region \0@oxc-project+runtime@0.129.0/helpers/decorate.js
|
|
2509
2454
|
function __decorate(decorators, target, key, desc) {
|
|
2510
2455
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2511
2456
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -2515,6 +2460,7 @@ function __decorate(decorators, target, key, desc) {
|
|
|
2515
2460
|
//#endregion
|
|
2516
2461
|
//#region src/types/output-asset-impl.ts
|
|
2517
2462
|
var OutputAssetImpl = class extends PlainObjectLike {
|
|
2463
|
+
bindingAsset;
|
|
2518
2464
|
type = "asset";
|
|
2519
2465
|
constructor(bindingAsset) {
|
|
2520
2466
|
super();
|
|
@@ -2618,6 +2564,7 @@ function transformChunkModules(modules) {
|
|
|
2618
2564
|
//#endregion
|
|
2619
2565
|
//#region src/types/output-chunk-impl.ts
|
|
2620
2566
|
var OutputChunkImpl = class extends PlainObjectLike {
|
|
2567
|
+
bindingChunk;
|
|
2621
2568
|
type = "chunk";
|
|
2622
2569
|
constructor(bindingChunk) {
|
|
2623
2570
|
super();
|
|
@@ -2850,6 +2797,7 @@ function collectChangedBundle(changed, bundle) {
|
|
|
2850
2797
|
//#endregion
|
|
2851
2798
|
//#region src/types/rolldown-output-impl.ts
|
|
2852
2799
|
var RolldownOutputImpl = class extends PlainObjectLike {
|
|
2800
|
+
bindingOutputs;
|
|
2853
2801
|
constructor(bindingOutputs) {
|
|
2854
2802
|
super();
|
|
2855
2803
|
this.bindingOutputs = bindingOutputs;
|
|
@@ -2877,7 +2825,73 @@ Object.defineProperty(BindingMagicString.prototype, "isRolldownMagicString", {
|
|
|
2877
2825
|
writable: false,
|
|
2878
2826
|
configurable: false
|
|
2879
2827
|
});
|
|
2880
|
-
|
|
2828
|
+
function assertString(content, msg) {
|
|
2829
|
+
if (typeof content !== "string") throw new TypeError(msg);
|
|
2830
|
+
}
|
|
2831
|
+
const nativeAppend = BindingMagicString.prototype.append;
|
|
2832
|
+
const nativePrepend = BindingMagicString.prototype.prepend;
|
|
2833
|
+
const nativeAppendLeft = BindingMagicString.prototype.appendLeft;
|
|
2834
|
+
const nativeAppendRight = BindingMagicString.prototype.appendRight;
|
|
2835
|
+
const nativePrependLeft = BindingMagicString.prototype.prependLeft;
|
|
2836
|
+
const nativePrependRight = BindingMagicString.prototype.prependRight;
|
|
2837
|
+
const nativeOverwrite = BindingMagicString.prototype.overwrite;
|
|
2838
|
+
const nativeUpdate = BindingMagicString.prototype.update;
|
|
2839
|
+
BindingMagicString.prototype.append = function(content) {
|
|
2840
|
+
assertString(content, "outro content must be a string");
|
|
2841
|
+
return nativeAppend.call(this, content);
|
|
2842
|
+
};
|
|
2843
|
+
BindingMagicString.prototype.prepend = function(content) {
|
|
2844
|
+
assertString(content, "outro content must be a string");
|
|
2845
|
+
return nativePrepend.call(this, content);
|
|
2846
|
+
};
|
|
2847
|
+
BindingMagicString.prototype.appendLeft = function(index, content) {
|
|
2848
|
+
assertString(content, "inserted content must be a string");
|
|
2849
|
+
return nativeAppendLeft.call(this, index, content);
|
|
2850
|
+
};
|
|
2851
|
+
BindingMagicString.prototype.appendRight = function(index, content) {
|
|
2852
|
+
assertString(content, "inserted content must be a string");
|
|
2853
|
+
return nativeAppendRight.call(this, index, content);
|
|
2854
|
+
};
|
|
2855
|
+
BindingMagicString.prototype.prependLeft = function(index, content) {
|
|
2856
|
+
assertString(content, "inserted content must be a string");
|
|
2857
|
+
return nativePrependLeft.call(this, index, content);
|
|
2858
|
+
};
|
|
2859
|
+
BindingMagicString.prototype.prependRight = function(index, content) {
|
|
2860
|
+
assertString(content, "inserted content must be a string");
|
|
2861
|
+
return nativePrependRight.call(this, index, content);
|
|
2862
|
+
};
|
|
2863
|
+
BindingMagicString.prototype.overwrite = function(start, end, content, options) {
|
|
2864
|
+
assertString(content, "replacement content must be a string");
|
|
2865
|
+
return nativeOverwrite.call(this, start, end, content, options);
|
|
2866
|
+
};
|
|
2867
|
+
BindingMagicString.prototype.update = function(start, end, content, options) {
|
|
2868
|
+
assertString(content, "replacement content must be a string");
|
|
2869
|
+
return nativeUpdate.call(this, start, end, content, options);
|
|
2870
|
+
};
|
|
2871
|
+
const nativeReplace = BindingMagicString.prototype.replace;
|
|
2872
|
+
const nativeReplaceAll = BindingMagicString.prototype.replaceAll;
|
|
2873
|
+
BindingMagicString.prototype.replace = function(searchValue, replacement) {
|
|
2874
|
+
if (typeof searchValue === "string") return nativeReplace.call(this, searchValue, replacement);
|
|
2875
|
+
if (searchValue.global) searchValue.lastIndex = 0;
|
|
2876
|
+
const lastMatchEnd = this.replaceRegex(searchValue, replacement);
|
|
2877
|
+
if (searchValue.global) searchValue.lastIndex = 0;
|
|
2878
|
+
else if (searchValue.sticky) searchValue.lastIndex = lastMatchEnd === -1 ? 0 : lastMatchEnd;
|
|
2879
|
+
return this;
|
|
2880
|
+
};
|
|
2881
|
+
BindingMagicString.prototype.replaceAll = function(searchValue, replacement) {
|
|
2882
|
+
if (typeof searchValue === "string") return nativeReplaceAll.call(this, searchValue, replacement);
|
|
2883
|
+
if (!searchValue.global) throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");
|
|
2884
|
+
searchValue.lastIndex = 0;
|
|
2885
|
+
this.replaceRegex(searchValue, replacement);
|
|
2886
|
+
searchValue.lastIndex = 0;
|
|
2887
|
+
return this;
|
|
2888
|
+
};
|
|
2889
|
+
/**
|
|
2890
|
+
* A native MagicString implementation powered by Rust.
|
|
2891
|
+
*
|
|
2892
|
+
* @experimental
|
|
2893
|
+
*/
|
|
2894
|
+
const RolldownMagicString = BindingMagicString;
|
|
2881
2895
|
//#endregion
|
|
2882
2896
|
//#region src/parse-ast-index.ts
|
|
2883
2897
|
function wrap(result, filename, sourceText) {
|
|
@@ -3040,7 +3054,7 @@ function exclude(expr) {
|
|
|
3040
3054
|
return new Exclude(expr);
|
|
3041
3055
|
}
|
|
3042
3056
|
//#endregion
|
|
3043
|
-
//#region ../../node_modules/.pnpm/remeda@2.33.
|
|
3057
|
+
//#region ../../node_modules/.pnpm/remeda@2.33.7/node_modules/remeda/dist/lazyDataLastImpl-DtF3cihj.js
|
|
3044
3058
|
function e(e, t, n) {
|
|
3045
3059
|
let r = (n) => e(n, ...t);
|
|
3046
3060
|
return n === void 0 ? r : Object.assign(r, {
|
|
@@ -3049,7 +3063,7 @@ function e(e, t, n) {
|
|
|
3049
3063
|
});
|
|
3050
3064
|
}
|
|
3051
3065
|
//#endregion
|
|
3052
|
-
//#region ../../node_modules/.pnpm/remeda@2.33.
|
|
3066
|
+
//#region ../../node_modules/.pnpm/remeda@2.33.7/node_modules/remeda/dist/purry.js
|
|
3053
3067
|
function t$1(t, n, r) {
|
|
3054
3068
|
let i = t.length - n.length;
|
|
3055
3069
|
if (i === 0) return t(...n);
|
|
@@ -3057,7 +3071,7 @@ function t$1(t, n, r) {
|
|
|
3057
3071
|
throw Error(`Wrong number of arguments`);
|
|
3058
3072
|
}
|
|
3059
3073
|
//#endregion
|
|
3060
|
-
//#region ../../node_modules/.pnpm/remeda@2.33.
|
|
3074
|
+
//#region ../../node_modules/.pnpm/remeda@2.33.7/node_modules/remeda/dist/partition.js
|
|
3061
3075
|
function t(...t) {
|
|
3062
3076
|
return t$1(n, t);
|
|
3063
3077
|
}
|
|
@@ -3266,6 +3280,11 @@ function throwNoFileSystemError(method) {
|
|
|
3266
3280
|
//#endregion
|
|
3267
3281
|
//#region src/plugin/plugin-context.ts
|
|
3268
3282
|
var PluginContextImpl = class extends MinimalPluginContextImpl {
|
|
3283
|
+
outputOptions;
|
|
3284
|
+
context;
|
|
3285
|
+
data;
|
|
3286
|
+
onLog;
|
|
3287
|
+
currentLoadingModule;
|
|
3269
3288
|
fs = fsModule;
|
|
3270
3289
|
getModuleInfo;
|
|
3271
3290
|
constructor(outputOptions, context, plugin, data, onLog, logLevel, watchMode, currentLoadingModule) {
|
|
@@ -3373,6 +3392,7 @@ var PluginContextImpl = class extends MinimalPluginContextImpl {
|
|
|
3373
3392
|
//#endregion
|
|
3374
3393
|
//#region src/plugin/load-plugin-context.ts
|
|
3375
3394
|
var LoadPluginContextImpl = class extends PluginContextImpl {
|
|
3395
|
+
inner;
|
|
3376
3396
|
constructor(outputOptions, context, plugin, data, inner, moduleId, onLog, logLevelOption, watchMode) {
|
|
3377
3397
|
super(outputOptions, context, plugin, data, onLog, logLevelOption, watchMode, moduleId);
|
|
3378
3398
|
this.inner = inner;
|
|
@@ -3384,6 +3404,9 @@ var LoadPluginContextImpl = class extends PluginContextImpl {
|
|
|
3384
3404
|
//#endregion
|
|
3385
3405
|
//#region src/plugin/transform-plugin-context.ts
|
|
3386
3406
|
var TransformPluginContextImpl = class extends PluginContextImpl {
|
|
3407
|
+
inner;
|
|
3408
|
+
moduleId;
|
|
3409
|
+
moduleSource;
|
|
3387
3410
|
constructor(outputOptions, context, plugin, data, inner, moduleId, moduleSource, onLog, LogLevelOption, watchMode) {
|
|
3388
3411
|
super(outputOptions, context, plugin, data, onLog, LogLevelOption, watchMode, moduleId);
|
|
3389
3412
|
this.inner = inner;
|
|
@@ -3521,7 +3544,7 @@ function bindingifyTransform(args) {
|
|
|
3521
3544
|
Object.defineProperties(meta, {
|
|
3522
3545
|
magicString: { get() {
|
|
3523
3546
|
if (magicStringInstance) return magicStringInstance;
|
|
3524
|
-
magicStringInstance = new
|
|
3547
|
+
magicStringInstance = new RolldownMagicString(code);
|
|
3525
3548
|
return magicStringInstance;
|
|
3526
3549
|
} },
|
|
3527
3550
|
ast: { get() {
|
|
@@ -3555,7 +3578,7 @@ function bindingifyTransform(args) {
|
|
|
3555
3578
|
let normalizedCode = void 0;
|
|
3556
3579
|
let map = ret.map;
|
|
3557
3580
|
if (typeof ret.code === "string") normalizedCode = ret.code;
|
|
3558
|
-
else if (ret.code instanceof
|
|
3581
|
+
else if (ret.code instanceof RolldownMagicString) {
|
|
3559
3582
|
let magicString = ret.code;
|
|
3560
3583
|
normalizedCode = magicString.toString();
|
|
3561
3584
|
let fallbackSourcemap = ctx.sendMagicString(magicString);
|
|
@@ -3644,14 +3667,14 @@ function bindingifyRenderChunk(args) {
|
|
|
3644
3667
|
if (args.options.experimental?.nativeMagicString) Object.defineProperty(renderChunkMeta, "magicString", {
|
|
3645
3668
|
get() {
|
|
3646
3669
|
if (magicStringInstance) return magicStringInstance;
|
|
3647
|
-
magicStringInstance = new
|
|
3670
|
+
magicStringInstance = new RolldownMagicString(code);
|
|
3648
3671
|
return magicStringInstance;
|
|
3649
3672
|
},
|
|
3650
3673
|
configurable: true
|
|
3651
3674
|
});
|
|
3652
3675
|
const ret = await handler.call(new PluginContextImpl(args.outputOptions, ctx, args.plugin, args.pluginContextData, args.onLog, args.logLevel, args.watchMode), code, transformRenderedChunk(chunk), args.pluginContextData.getOutputOptions(opts), renderChunkMeta);
|
|
3653
3676
|
if (ret == null) return;
|
|
3654
|
-
if (ret instanceof
|
|
3677
|
+
if (ret instanceof RolldownMagicString) {
|
|
3655
3678
|
const normalizedCode = ret.toString();
|
|
3656
3679
|
const generatedMap = ret.generateMap();
|
|
3657
3680
|
return {
|
|
@@ -3666,7 +3689,7 @@ function bindingifyRenderChunk(args) {
|
|
|
3666
3689
|
};
|
|
3667
3690
|
}
|
|
3668
3691
|
if (typeof ret === "string") return { code: ret };
|
|
3669
|
-
if (ret.code instanceof
|
|
3692
|
+
if (ret.code instanceof RolldownMagicString) {
|
|
3670
3693
|
const magicString = ret.code;
|
|
3671
3694
|
const normalizedCode = magicString.toString();
|
|
3672
3695
|
if (ret.map === null) return { code: normalizedCode };
|
|
@@ -3841,30 +3864,6 @@ function bindingifyCloseWatcher(args) {
|
|
|
3841
3864
|
}
|
|
3842
3865
|
//#endregion
|
|
3843
3866
|
//#region src/plugin/generated/hook-usage.ts
|
|
3844
|
-
let HookUsageKind = /* @__PURE__ */ function(HookUsageKind) {
|
|
3845
|
-
HookUsageKind[HookUsageKind["buildStart"] = 1] = "buildStart";
|
|
3846
|
-
HookUsageKind[HookUsageKind["resolveId"] = 2] = "resolveId";
|
|
3847
|
-
HookUsageKind[HookUsageKind["resolveDynamicImport"] = 4] = "resolveDynamicImport";
|
|
3848
|
-
HookUsageKind[HookUsageKind["load"] = 8] = "load";
|
|
3849
|
-
HookUsageKind[HookUsageKind["transform"] = 16] = "transform";
|
|
3850
|
-
HookUsageKind[HookUsageKind["moduleParsed"] = 32] = "moduleParsed";
|
|
3851
|
-
HookUsageKind[HookUsageKind["buildEnd"] = 64] = "buildEnd";
|
|
3852
|
-
HookUsageKind[HookUsageKind["renderStart"] = 128] = "renderStart";
|
|
3853
|
-
HookUsageKind[HookUsageKind["renderError"] = 256] = "renderError";
|
|
3854
|
-
HookUsageKind[HookUsageKind["renderChunk"] = 512] = "renderChunk";
|
|
3855
|
-
HookUsageKind[HookUsageKind["augmentChunkHash"] = 1024] = "augmentChunkHash";
|
|
3856
|
-
HookUsageKind[HookUsageKind["generateBundle"] = 2048] = "generateBundle";
|
|
3857
|
-
HookUsageKind[HookUsageKind["writeBundle"] = 4096] = "writeBundle";
|
|
3858
|
-
HookUsageKind[HookUsageKind["closeBundle"] = 8192] = "closeBundle";
|
|
3859
|
-
HookUsageKind[HookUsageKind["watchChange"] = 16384] = "watchChange";
|
|
3860
|
-
HookUsageKind[HookUsageKind["closeWatcher"] = 32768] = "closeWatcher";
|
|
3861
|
-
HookUsageKind[HookUsageKind["transformAst"] = 65536] = "transformAst";
|
|
3862
|
-
HookUsageKind[HookUsageKind["banner"] = 131072] = "banner";
|
|
3863
|
-
HookUsageKind[HookUsageKind["footer"] = 262144] = "footer";
|
|
3864
|
-
HookUsageKind[HookUsageKind["intro"] = 524288] = "intro";
|
|
3865
|
-
HookUsageKind[HookUsageKind["outro"] = 1048576] = "outro";
|
|
3866
|
-
return HookUsageKind;
|
|
3867
|
-
}({});
|
|
3868
3867
|
var HookUsage = class {
|
|
3869
3868
|
bitflag = BigInt(0);
|
|
3870
3869
|
constructor() {}
|
|
@@ -3877,26 +3876,26 @@ var HookUsage = class {
|
|
|
3877
3876
|
};
|
|
3878
3877
|
function extractHookUsage(plugin) {
|
|
3879
3878
|
let hookUsage = new HookUsage();
|
|
3880
|
-
if (plugin.buildStart) hookUsage.union(
|
|
3881
|
-
if (plugin.resolveId) hookUsage.union(
|
|
3882
|
-
if (plugin.resolveDynamicImport) hookUsage.union(
|
|
3883
|
-
if (plugin.load) hookUsage.union(
|
|
3884
|
-
if (plugin.transform) hookUsage.union(
|
|
3885
|
-
if (plugin.moduleParsed) hookUsage.union(
|
|
3886
|
-
if (plugin.buildEnd) hookUsage.union(
|
|
3887
|
-
if (plugin.renderStart) hookUsage.union(
|
|
3888
|
-
if (plugin.renderError) hookUsage.union(
|
|
3889
|
-
if (plugin.renderChunk) hookUsage.union(
|
|
3890
|
-
if (plugin.augmentChunkHash) hookUsage.union(
|
|
3891
|
-
if (plugin.generateBundle) hookUsage.union(
|
|
3892
|
-
if (plugin.writeBundle) hookUsage.union(
|
|
3893
|
-
if (plugin.closeBundle) hookUsage.union(
|
|
3894
|
-
if (plugin.watchChange) hookUsage.union(
|
|
3895
|
-
if (plugin.closeWatcher) hookUsage.union(
|
|
3896
|
-
if (plugin.banner) hookUsage.union(
|
|
3897
|
-
if (plugin.footer) hookUsage.union(
|
|
3898
|
-
if (plugin.intro) hookUsage.union(
|
|
3899
|
-
if (plugin.outro) hookUsage.union(
|
|
3879
|
+
if (plugin.buildStart) hookUsage.union(1);
|
|
3880
|
+
if (plugin.resolveId) hookUsage.union(2);
|
|
3881
|
+
if (plugin.resolveDynamicImport) hookUsage.union(4);
|
|
3882
|
+
if (plugin.load) hookUsage.union(8);
|
|
3883
|
+
if (plugin.transform) hookUsage.union(16);
|
|
3884
|
+
if (plugin.moduleParsed) hookUsage.union(32);
|
|
3885
|
+
if (plugin.buildEnd) hookUsage.union(64);
|
|
3886
|
+
if (plugin.renderStart) hookUsage.union(128);
|
|
3887
|
+
if (plugin.renderError) hookUsage.union(256);
|
|
3888
|
+
if (plugin.renderChunk) hookUsage.union(512);
|
|
3889
|
+
if (plugin.augmentChunkHash) hookUsage.union(1024);
|
|
3890
|
+
if (plugin.generateBundle) hookUsage.union(2048);
|
|
3891
|
+
if (plugin.writeBundle) hookUsage.union(4096);
|
|
3892
|
+
if (plugin.closeBundle) hookUsage.union(8192);
|
|
3893
|
+
if (plugin.watchChange) hookUsage.union(16384);
|
|
3894
|
+
if (plugin.closeWatcher) hookUsage.union(32768);
|
|
3895
|
+
if (plugin.banner) hookUsage.union(131072);
|
|
3896
|
+
if (plugin.footer) hookUsage.union(262144);
|
|
3897
|
+
if (plugin.intro) hookUsage.union(524288);
|
|
3898
|
+
if (plugin.outro) hookUsage.union(1048576);
|
|
3900
3899
|
return hookUsage;
|
|
3901
3900
|
}
|
|
3902
3901
|
//#endregion
|
|
@@ -4022,6 +4021,8 @@ function wrapHandlers(plugin) {
|
|
|
4022
4021
|
//#endregion
|
|
4023
4022
|
//#region src/options/normalized-input-options.ts
|
|
4024
4023
|
var NormalizedInputOptionsImpl = class extends PlainObjectLike {
|
|
4024
|
+
onLog;
|
|
4025
|
+
inputPlugins;
|
|
4025
4026
|
inner;
|
|
4026
4027
|
constructor(inner, onLog, inputPlugins) {
|
|
4027
4028
|
super();
|
|
@@ -4056,6 +4057,9 @@ __decorate([lazyProp], NormalizedInputOptionsImpl.prototype, "context", null);
|
|
|
4056
4057
|
//#endregion
|
|
4057
4058
|
//#region src/options/normalized-output-options.ts
|
|
4058
4059
|
var NormalizedOutputOptionsImpl = class extends PlainObjectLike {
|
|
4060
|
+
inner;
|
|
4061
|
+
outputOptions;
|
|
4062
|
+
normalizedOutputPlugins;
|
|
4059
4063
|
constructor(inner, outputOptions, normalizedOutputPlugins) {
|
|
4060
4064
|
super();
|
|
4061
4065
|
this.inner = inner;
|
|
@@ -4146,6 +4150,9 @@ var NormalizedOutputOptionsImpl = class extends PlainObjectLike {
|
|
|
4146
4150
|
get sourcemapDebugIds() {
|
|
4147
4151
|
return this.inner.sourcemapDebugIds;
|
|
4148
4152
|
}
|
|
4153
|
+
get sourcemapExcludeSources() {
|
|
4154
|
+
return this.inner.sourcemapExcludeSources;
|
|
4155
|
+
}
|
|
4149
4156
|
get sourcemapIgnoreList() {
|
|
4150
4157
|
return this.outputOptions.sourcemapIgnoreList;
|
|
4151
4158
|
}
|
|
@@ -4221,6 +4228,7 @@ __decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "globals", null);
|
|
|
4221
4228
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "paths", null);
|
|
4222
4229
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "hashCharacters", null);
|
|
4223
4230
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "sourcemapDebugIds", null);
|
|
4231
|
+
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "sourcemapExcludeSources", null);
|
|
4224
4232
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "sourcemapIgnoreList", null);
|
|
4225
4233
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "sourcemapPathTransform", null);
|
|
4226
4234
|
__decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "minify", null);
|
|
@@ -4240,6 +4248,10 @@ function normalizeAddon(value) {
|
|
|
4240
4248
|
//#endregion
|
|
4241
4249
|
//#region src/plugin/plugin-context-data.ts
|
|
4242
4250
|
var PluginContextData = class {
|
|
4251
|
+
onLog;
|
|
4252
|
+
outputOptions;
|
|
4253
|
+
normalizedInputPlugins;
|
|
4254
|
+
normalizedOutputPlugins;
|
|
4243
4255
|
moduleOptionMap = /* @__PURE__ */ new Map();
|
|
4244
4256
|
resolveOptionsMap = /* @__PURE__ */ new Map();
|
|
4245
4257
|
loadModulePromiseMap = /* @__PURE__ */ new Map();
|
|
@@ -4605,6 +4617,7 @@ function bindingifyPreserveEntrySignatures(preserveEntrySignatures) {
|
|
|
4605
4617
|
//#endregion
|
|
4606
4618
|
//#region src/types/chunking-context.ts
|
|
4607
4619
|
var ChunkingContextImpl = class {
|
|
4620
|
+
context;
|
|
4608
4621
|
constructor(context) {
|
|
4609
4622
|
this.context = context;
|
|
4610
4623
|
}
|
|
@@ -5060,7 +5073,7 @@ const logger = createConsola({ formatOptions: { date: false } });
|
|
|
5060
5073
|
//#endregion
|
|
5061
5074
|
//#region src/utils/bindingify-output-options.ts
|
|
5062
5075
|
function bindingifyOutputOptions(outputOptions) {
|
|
5063
|
-
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 } = outputOptions;
|
|
5076
|
+
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 } = outputOptions;
|
|
5064
5077
|
if (legalComments != null) logger.warn("`legalComments` option is deprecated, please use `comments.legal` instead.");
|
|
5065
5078
|
const { inlineDynamicImports, advancedChunks } = bindingifyCodeSplitting(outputOptions.codeSplitting, outputOptions.inlineDynamicImports, outputOptions.advancedChunks, manualChunks);
|
|
5066
5079
|
return {
|
|
@@ -5072,6 +5085,7 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
5072
5085
|
sourcemap: bindingifySourcemap(sourcemap),
|
|
5073
5086
|
sourcemapBaseUrl,
|
|
5074
5087
|
sourcemapDebugIds,
|
|
5088
|
+
sourcemapExcludeSources,
|
|
5075
5089
|
sourcemapIgnoreList: sourcemapIgnoreList ?? /node_modules/,
|
|
5076
5090
|
sourcemapPathTransform,
|
|
5077
5091
|
banner: bindingifyAddon(banner),
|
|
@@ -5341,4 +5355,4 @@ var RolldownBuild = class RolldownBuild {
|
|
|
5341
5355
|
}
|
|
5342
5356
|
};
|
|
5343
5357
|
//#endregion
|
|
5344
|
-
export { validateOption as a, arraify as c, transformToRollupOutput as i, RUNTIME_MODULE_ID as l, createBundlerOptions as n, PluginDriver as o,
|
|
5358
|
+
export { validateOption as a, arraify as c, transformToRollupOutput as i, RUNTIME_MODULE_ID as l, createBundlerOptions as n, PluginDriver as o, RolldownMagicString as r, LOG_LEVEL_WARN as s, RolldownBuild as t, VERSION as u };
|