rolldown 1.0.0-beta.3-commit.e170e6e → 1.0.0-beta.30
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/bin/cli.mjs +2 -0
- package/dist/{cjs/cli.cjs → cli.cjs} +620 -620
- package/dist/cli.d.cts +1 -0
- package/dist/cli.d.mts +1 -0
- package/dist/{esm/cli.mjs → cli.mjs} +596 -593
- package/dist/config.cjs +12 -0
- package/dist/config.d.cts +10 -0
- package/dist/config.d.mts +10 -0
- package/dist/config.mjs +10 -0
- package/dist/experimental-index.cjs +105 -0
- package/dist/experimental-index.d.cts +58 -0
- package/dist/experimental-index.d.mts +58 -0
- package/dist/experimental-index.mjs +82 -0
- package/dist/experimental-runtime-types.d.ts +66 -0
- package/dist/filter-index.cjs +105 -0
- package/dist/filter-index.d.cts +4 -0
- package/dist/filter-index.d.mts +4 -0
- package/dist/filter-index.mjs +44 -0
- package/dist/index.cjs +9 -0
- package/dist/index.d.cts +3 -0
- package/dist/index.d.mts +3 -0
- package/dist/index.mjs +5 -0
- package/dist/{cjs/parallel-plugin-worker.cjs → parallel-plugin-worker.cjs} +6 -15
- package/dist/parallel-plugin-worker.d.cts +1 -0
- package/dist/parallel-plugin-worker.d.mts +1 -0
- package/dist/{esm/parallel-plugin-worker.mjs → parallel-plugin-worker.mjs} +5 -13
- package/dist/{cjs/parallel-plugin.cjs → parallel-plugin.cjs} +1 -2
- package/dist/parallel-plugin.d.cts +14 -0
- package/dist/parallel-plugin.d.mts +14 -0
- package/dist/{esm/parallel-plugin.mjs → parallel-plugin.mjs} +0 -1
- package/dist/parse-ast-index.cjs +4 -0
- package/dist/parse-ast-index.d.cts +8 -0
- package/dist/parse-ast-index.d.mts +8 -0
- package/dist/parse-ast-index.mjs +3 -0
- package/dist/shared/binding-BAyrv67G.d.cts +1309 -0
- package/dist/shared/binding-DUz1Q2JW.d.mts +1309 -0
- package/dist/shared/{chunk-qZFfknuJ.cjs → chunk-DDkG_k5U.cjs} +0 -1
- package/dist/shared/define-config-CMH1jWhX.d.cts +1331 -0
- package/dist/shared/define-config-D_KKKWbo.d.mts +1331 -0
- package/dist/shared/load-config-BWjPkvnW.mjs +119 -0
- package/dist/shared/load-config-BtTrX40c.cjs +125 -0
- package/dist/shared/misc-CQeo-AFx.mjs +22 -0
- package/dist/shared/misc-DksvspN4.cjs +58 -0
- package/dist/shared/parse-ast-index-DrqwhzH4.cjs +784 -0
- package/dist/shared/parse-ast-index-DyFjvjrb.mjs +656 -0
- package/dist/shared/{prompt-CxK9euq3.mjs → prompt-C5jz26Zn.mjs} +241 -240
- package/dist/shared/{prompt-ZZScCEWI.cjs → prompt-QNI93ne7.cjs} +245 -245
- package/dist/shared/src-CRRyjCYJ.cjs +4573 -0
- package/dist/shared/src-DR2upIfp.mjs +4381 -0
- package/package.json +69 -69
- package/bin/cli.js +0 -2
- package/dist/cjs/experimental-index.cjs +0 -85
- package/dist/cjs/index.cjs +0 -8
- package/dist/cjs/parse-ast-index.cjs +0 -4
- package/dist/esm/experimental-index.mjs +0 -57
- package/dist/esm/index.mjs +0 -4
- package/dist/esm/parse-ast-index.mjs +0 -3
- package/dist/shared/parse-ast-index-DIxeQDpE.mjs +0 -674
- package/dist/shared/parse-ast-index-Dh_sWnMa.cjs +0 -719
- package/dist/shared/src-CLo-BgXK.cjs +0 -3007
- package/dist/shared/src-CTS_IQ3m.mjs +0 -2826
- package/dist/types/api/build.d.ts +0 -18
- package/dist/types/api/experimental.d.ts +0 -7
- package/dist/types/api/rolldown/index.d.ts +0 -3
- package/dist/types/api/rolldown/rolldown-build.d.ts +0 -13
- package/dist/types/api/watch/index.d.ts +0 -3
- package/dist/types/api/watch/watch-emitter.d.ts +0 -31
- package/dist/types/api/watch/watcher.d.ts +0 -13
- package/dist/types/binding.d.ts +0 -1435
- package/dist/types/builtin-plugin/alias-plugin.d.ts +0 -10
- package/dist/types/builtin-plugin/constructors.d.ts +0 -21
- package/dist/types/builtin-plugin/replace-plugin.d.ts +0 -28
- package/dist/types/builtin-plugin/transform-plugin.d.ts +0 -9
- package/dist/types/builtin-plugin/utils.d.ts +0 -8
- package/dist/types/cli/arguments/alias.d.ts +0 -16
- package/dist/types/cli/arguments/index.d.ts +0 -15
- package/dist/types/cli/arguments/normalize.d.ts +0 -12
- package/dist/types/cli/arguments/utils.d.ts +0 -8
- package/dist/types/cli/colors.d.ts +0 -11
- package/dist/types/cli/commands/bundle.d.ts +0 -3
- package/dist/types/cli/commands/help.d.ts +0 -1
- package/dist/types/cli/index.d.ts +0 -1
- package/dist/types/cli/load-config.d.ts +0 -5
- package/dist/types/cli/logger.d.ts +0 -5
- package/dist/types/constants/plugin-context.d.ts +0 -7
- package/dist/types/constants/plugin.d.ts +0 -45
- package/dist/types/experimental-index.d.ts +0 -9
- package/dist/types/index.d.ts +0 -30
- package/dist/types/log/log-handler.d.ts +0 -4
- package/dist/types/log/logger.d.ts +0 -6
- package/dist/types/log/logging.d.ts +0 -12
- package/dist/types/log/logs.d.ts +0 -18
- package/dist/types/options/input-options.d.ts +0 -181
- package/dist/types/options/normalized-input-options.d.ts +0 -18
- package/dist/types/options/normalized-output-options.d.ts +0 -70
- package/dist/types/options/output-options.d.ts +0 -182
- package/dist/types/options/watch-options.d.ts +0 -5
- package/dist/types/parallel-plugin-worker.d.ts +0 -1
- package/dist/types/parallel-plugin.d.ts +0 -1
- package/dist/types/parse-ast-index.d.ts +0 -5
- package/dist/types/plugin/bindingify-build-hooks.d.ts +0 -10
- package/dist/types/plugin/bindingify-hook-filter.d.ts +0 -7
- package/dist/types/plugin/bindingify-output-hooks.d.ts +0 -14
- package/dist/types/plugin/bindingify-plugin-hook-meta.d.ts +0 -8
- package/dist/types/plugin/bindingify-plugin.d.ts +0 -16
- package/dist/types/plugin/bindingify-watch-hooks.d.ts +0 -5
- package/dist/types/plugin/hook-filter.d.ts +0 -48
- package/dist/types/plugin/index.d.ts +0 -134
- package/dist/types/plugin/minimal-plugin-context.d.ts +0 -23
- package/dist/types/plugin/parallel-plugin-implementation.d.ts +0 -10
- package/dist/types/plugin/parallel-plugin.d.ts +0 -9
- package/dist/types/plugin/plugin-context-data.d.ts +0 -17
- package/dist/types/plugin/plugin-context.d.ts +0 -67
- package/dist/types/plugin/plugin-driver.d.ts +0 -8
- package/dist/types/plugin/transform-plugin-context.d.ts +0 -28
- package/dist/types/types/assert.d.ts +0 -14
- package/dist/types/types/config-export.d.ts +0 -5
- package/dist/types/types/misc.d.ts +0 -40
- package/dist/types/types/module-info.d.ts +0 -15
- package/dist/types/types/module-side-effects.d.ts +0 -12
- package/dist/types/types/output-bundle.d.ts +0 -4
- package/dist/types/types/rolldown-options.d.ts +0 -5
- package/dist/types/types/rolldown-output.d.ts +0 -66
- package/dist/types/types/schema.d.ts +0 -33
- package/dist/types/types/sourcemap.d.ts +0 -14
- package/dist/types/types/utils.d.ts +0 -13
- package/dist/types/utils/asset-source.d.ts +0 -4
- package/dist/types/utils/async-flatten.d.ts +0 -1
- package/dist/types/utils/bindingify-input-options.d.ts +0 -7
- package/dist/types/utils/bindingify-output-options.d.ts +0 -5
- package/dist/types/utils/code-frame.d.ts +0 -1
- package/dist/types/utils/compose-js-plugins.d.ts +0 -2
- package/dist/types/utils/create-bundler-option.d.ts +0 -11
- package/dist/types/utils/create-bundler.d.ts +0 -8
- package/dist/types/utils/define-config.d.ts +0 -5
- package/dist/types/utils/error.d.ts +0 -2
- package/dist/types/utils/initialize-parallel-plugins.d.ts +0 -19
- package/dist/types/utils/misc.d.ts +0 -6
- package/dist/types/utils/normalize-hook.d.ts +0 -7
- package/dist/types/utils/normalize-plugin-option.d.ts +0 -13
- package/dist/types/utils/normalize-string-or-regex.d.ts +0 -2
- package/dist/types/utils/plugin/index.d.ts +0 -2
- package/dist/types/utils/transform-module-info.d.ts +0 -4
- package/dist/types/utils/transform-rendered-chunk.d.ts +0 -4
- package/dist/types/utils/transform-rendered-module.d.ts +0 -3
- package/dist/types/utils/transform-side-effects.d.ts +0 -3
- package/dist/types/utils/transform-sourcemap.d.ts +0 -3
- package/dist/types/utils/transform-to-rollup-output.d.ts +0 -11
- package/dist/types/utils/validator.d.ts +0 -6
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rolldown",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.30",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
|
+
"type": "module",
|
|
5
6
|
"homepage": "https://rolldown.rs/",
|
|
6
7
|
"repository": {
|
|
7
8
|
"type": "git",
|
|
@@ -24,35 +25,39 @@
|
|
|
24
25
|
"!dist/*.node"
|
|
25
26
|
],
|
|
26
27
|
"bin": {
|
|
27
|
-
"rolldown": "./bin/cli.
|
|
28
|
+
"rolldown": "./bin/cli.mjs"
|
|
28
29
|
},
|
|
29
|
-
"main": "./dist/
|
|
30
|
-
"types": "./dist/
|
|
30
|
+
"main": "./dist/index.cjs",
|
|
31
|
+
"types": "./dist/index.d.cts",
|
|
31
32
|
"exports": {
|
|
32
33
|
".": {
|
|
33
|
-
"
|
|
34
|
-
"require": "./dist/
|
|
35
|
-
|
|
34
|
+
"import": "./dist/index.mjs",
|
|
35
|
+
"require": "./dist/index.cjs"
|
|
36
|
+
},
|
|
37
|
+
"./config": {
|
|
38
|
+
"import": "./dist/config.mjs",
|
|
39
|
+
"require": "./dist/config.cjs"
|
|
36
40
|
},
|
|
37
41
|
"./experimental": {
|
|
38
|
-
"
|
|
39
|
-
"require": "./dist/
|
|
40
|
-
|
|
42
|
+
"import": "./dist/experimental-index.mjs",
|
|
43
|
+
"require": "./dist/experimental-index.cjs"
|
|
44
|
+
},
|
|
45
|
+
"./filter": {
|
|
46
|
+
"import": "./dist/filter-index.mjs",
|
|
47
|
+
"require": "./dist/filter-index.cjs"
|
|
41
48
|
},
|
|
42
|
-
"./
|
|
43
|
-
"
|
|
44
|
-
"require": "./dist/
|
|
45
|
-
"import": "./dist/esm/parallel-plugin.mjs"
|
|
49
|
+
"./parallelPlugin": {
|
|
50
|
+
"import": "./dist/parallel-plugin.mjs",
|
|
51
|
+
"require": "./dist/parallel-plugin.cjs"
|
|
46
52
|
},
|
|
47
53
|
"./parseAst": {
|
|
48
|
-
"
|
|
49
|
-
"require": "./dist/
|
|
50
|
-
"import": "./dist/esm/parse-ast-index.mjs"
|
|
54
|
+
"import": "./dist/parse-ast-index.mjs",
|
|
55
|
+
"require": "./dist/parse-ast-index.cjs"
|
|
51
56
|
},
|
|
52
57
|
"./package.json": "./package.json"
|
|
53
58
|
},
|
|
54
59
|
"imports": {
|
|
55
|
-
"#parallel-plugin-worker": "./dist/
|
|
60
|
+
"#parallel-plugin-worker": "./dist/parallel-plugin-worker.mjs"
|
|
56
61
|
},
|
|
57
62
|
"publishConfig": {
|
|
58
63
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -72,89 +77,84 @@
|
|
|
72
77
|
"aarch64-unknown-linux-gnu",
|
|
73
78
|
"aarch64-apple-darwin",
|
|
74
79
|
"aarch64-unknown-linux-musl",
|
|
80
|
+
"aarch64-unknown-linux-ohos",
|
|
75
81
|
"aarch64-pc-windows-msvc",
|
|
82
|
+
"aarch64-linux-android",
|
|
76
83
|
"wasm32-wasip1-threads"
|
|
77
84
|
],
|
|
78
85
|
"wasm": {
|
|
79
86
|
"initialMemory": 16384,
|
|
80
87
|
"browser": {
|
|
81
|
-
"fs": true
|
|
88
|
+
"fs": true,
|
|
89
|
+
"asyncInit": true
|
|
82
90
|
}
|
|
83
91
|
},
|
|
84
92
|
"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"
|
|
85
93
|
},
|
|
86
94
|
"dependencies": {
|
|
87
|
-
"@oxc-project/
|
|
88
|
-
"@
|
|
89
|
-
"
|
|
90
|
-
|
|
91
|
-
"peerDependencies": {
|
|
92
|
-
"@oxc-project/runtime": "0.56.0"
|
|
93
|
-
},
|
|
94
|
-
"peerDependenciesMeta": {
|
|
95
|
-
"@oxc-project/runtime": {
|
|
96
|
-
"optional": true
|
|
97
|
-
}
|
|
95
|
+
"@oxc-project/runtime": "=0.78.0",
|
|
96
|
+
"@oxc-project/types": "=0.78.0",
|
|
97
|
+
"ansis": "^4.0.0",
|
|
98
|
+
"@rolldown/pluginutils": "1.0.0-beta.30"
|
|
98
99
|
},
|
|
99
100
|
"devDependencies": {
|
|
100
|
-
"@
|
|
101
|
-
"@napi-rs/
|
|
102
|
-
"@
|
|
103
|
-
"@
|
|
104
|
-
"@
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"consola": "^3.2.3",
|
|
101
|
+
"@napi-rs/cli": "^3.0.0",
|
|
102
|
+
"@napi-rs/wasm-runtime": "^1.0.0",
|
|
103
|
+
"@oxc-node/cli": "^0.0.30",
|
|
104
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
105
|
+
"@valibot/to-json-schema": "1.3.0",
|
|
106
|
+
"buble": "^0.20.0",
|
|
107
|
+
"consola": "^3.4.2",
|
|
108
108
|
"emnapi": "^1.2.0",
|
|
109
109
|
"execa": "^9.2.0",
|
|
110
|
-
"fs-extra": "^11.2.0",
|
|
111
110
|
"glob": "^11.0.0",
|
|
112
|
-
"
|
|
113
|
-
"
|
|
111
|
+
"oxc-parser": "=0.78.0",
|
|
112
|
+
"pathe": "^2.0.3",
|
|
114
113
|
"remeda": "^2.10.0",
|
|
114
|
+
"rolldown-plugin-dts": "^0.14.0",
|
|
115
115
|
"rollup": "^4.18.0",
|
|
116
116
|
"signal-exit": "4.1.0",
|
|
117
117
|
"source-map": "^0.7.4",
|
|
118
|
-
"tsx": "^4.19.
|
|
119
|
-
"
|
|
120
|
-
"typedoc": "^0.27.6",
|
|
118
|
+
"tsx": "^4.19.4",
|
|
119
|
+
"typedoc": "^0.28.0",
|
|
121
120
|
"typescript": "^5.7.3",
|
|
122
|
-
"
|
|
123
|
-
"
|
|
124
|
-
"rolldown": "1.0.0-beta.
|
|
125
|
-
"@rolldown/testing": "0.0.1"
|
|
121
|
+
"valibot": "1.1.0",
|
|
122
|
+
"@rolldown/testing": "0.0.1",
|
|
123
|
+
"rolldown": "1.0.0-beta.30"
|
|
126
124
|
},
|
|
127
125
|
"optionalDependencies": {
|
|
128
|
-
"@rolldown/binding-darwin-
|
|
129
|
-
"@rolldown/binding-
|
|
130
|
-
"@rolldown/binding-linux-
|
|
131
|
-
"@rolldown/binding-linux-
|
|
132
|
-
"@rolldown/binding-
|
|
133
|
-
"@rolldown/binding-
|
|
134
|
-
"@rolldown/binding-linux-
|
|
135
|
-
"@rolldown/binding-linux-
|
|
136
|
-
"@rolldown/binding-
|
|
137
|
-
"@rolldown/binding-
|
|
138
|
-
"@rolldown/binding-
|
|
139
|
-
"@rolldown/binding-win32-
|
|
126
|
+
"@rolldown/binding-darwin-x64": "1.0.0-beta.30",
|
|
127
|
+
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.30",
|
|
128
|
+
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.30",
|
|
129
|
+
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.30",
|
|
130
|
+
"@rolldown/binding-freebsd-x64": "1.0.0-beta.30",
|
|
131
|
+
"@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.30",
|
|
132
|
+
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.30",
|
|
133
|
+
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.30",
|
|
134
|
+
"@rolldown/binding-darwin-arm64": "1.0.0-beta.30",
|
|
135
|
+
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.30",
|
|
136
|
+
"@rolldown/binding-linux-arm64-ohos": "1.0.0-beta.30",
|
|
137
|
+
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.30",
|
|
138
|
+
"@rolldown/binding-android-arm64": "1.0.0-beta.30",
|
|
139
|
+
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.30"
|
|
140
140
|
},
|
|
141
141
|
"scripts": {
|
|
142
142
|
"# Scrips for binding #": "_",
|
|
143
143
|
"artifacts": "napi artifacts --cwd ./src --package-json-path ../package.json -o=../artifacts --npm-dir ../npm",
|
|
144
|
-
"build-binding": "
|
|
144
|
+
"build-binding": "oxnode ./build-binding.ts",
|
|
145
145
|
"build-binding:release": "pnpm build-binding --release",
|
|
146
|
+
"build-binding:memory-profile": "pnpm build-binding --profile memory-profile --features default_global_allocator",
|
|
146
147
|
"build-binding:wasi": "pnpm build-binding --target wasm32-wasip1-threads",
|
|
147
148
|
"build-binding:wasi:release": "pnpm build-binding --profile release-wasi --target wasm32-wasip1-threads",
|
|
148
149
|
"# Scrips for node #": "_",
|
|
149
|
-
"
|
|
150
|
-
"build-node": "tsx ./build.ts",
|
|
151
|
-
"build-types": "tsc -p ./tsconfig.json",
|
|
152
|
-
"build-js-glue": "run-s build-types build-node build-types-check",
|
|
153
|
-
"build-native:debug": "run-s build-binding build-js-glue",
|
|
154
|
-
"build-native:release": "run-s build-binding:release build-js-glue",
|
|
155
|
-
"build-wasi:debug": "run-s build-binding build-binding:wasi build-node",
|
|
156
|
-
"build-wasi:release": "run-s build-binding build-binding:wasi:release build-node",
|
|
150
|
+
"build-node": "tsx -C dev ./build.ts",
|
|
157
151
|
"build-types-check": "tsc -p ./tsconfig.check.json",
|
|
152
|
+
"build-js-glue": "pnpm run --sequential '/^build-(node|types-check)$/'",
|
|
153
|
+
"build-native:debug": "pnpm run --sequential '/^build-(binding|js-glue)$/'",
|
|
154
|
+
"build-native:release": "pnpm run --sequential '/^build-(binding:release|js-glue)$/'",
|
|
155
|
+
"build-native:memory-profile": "pnpm run --sequential '/^build-(binding:memory-profile|js-glue)$/'",
|
|
156
|
+
"build-browser:debug": "BROWSER_PKG=1 pnpm run --sequential '/^build-(binding|binding:wasi|node)$/'",
|
|
157
|
+
"build-browser:release": "BROWSER_PKG=1 pnpm run --sequential '/^build-(binding|binding:wasi:release|node)$/'",
|
|
158
158
|
"# Scrips for docs #": "_",
|
|
159
159
|
"extract-options-doc": "typedoc"
|
|
160
160
|
}
|
package/bin/cli.js
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const require_chunk = require('../shared/chunk-qZFfknuJ.cjs');
|
|
3
|
-
const require_src = require('../shared/src-CLo-BgXK.cjs');
|
|
4
|
-
const require_parse_ast_index = require('../shared/parse-ast-index-Dh_sWnMa.cjs');
|
|
5
|
-
const node_url = require_chunk.__toESM(require("node:url"));
|
|
6
|
-
|
|
7
|
-
//#region src/plugin/parallel-plugin.ts
|
|
8
|
-
function defineParallelPlugin(pluginPath) {
|
|
9
|
-
return (options) => {
|
|
10
|
-
return { _parallel: {
|
|
11
|
-
fileUrl: (0, node_url.pathToFileURL)(pluginPath).href,
|
|
12
|
-
options
|
|
13
|
-
} };
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
//#endregion
|
|
18
|
-
//#region src/api/experimental.ts
|
|
19
|
-
const experimental_scan = async (input) => {
|
|
20
|
-
const { bundler, stopWorkers } = await require_src.createBundler(input, {});
|
|
21
|
-
const output = await bundler.scan();
|
|
22
|
-
require_src.handleOutputErrors(output);
|
|
23
|
-
await stopWorkers?.();
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
//#endregion
|
|
27
|
-
//#region src/builtin-plugin/transform-plugin.ts
|
|
28
|
-
function normalizeEcmaTransformPluginConfig(config) {
|
|
29
|
-
if (!config) return void 0;
|
|
30
|
-
let normalizedConfig = {
|
|
31
|
-
...config,
|
|
32
|
-
exclude: require_src.normalizedStringOrRegex(config.exclude),
|
|
33
|
-
include: require_src.normalizedStringOrRegex(config.include)
|
|
34
|
-
};
|
|
35
|
-
return normalizedConfig;
|
|
36
|
-
}
|
|
37
|
-
function transformPlugin(config) {
|
|
38
|
-
return new require_src.BuiltinPlugin("builtin:transform", normalizeEcmaTransformPluginConfig(config));
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
//#endregion
|
|
42
|
-
//#region src/builtin-plugin/replace-plugin.ts
|
|
43
|
-
function replacePlugin(values = {}, options = {}) {
|
|
44
|
-
return new require_src.BuiltinPlugin("builtin:replace", {
|
|
45
|
-
...options,
|
|
46
|
-
values
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
//#endregion
|
|
51
|
-
//#region src/builtin-plugin/alias-plugin.ts
|
|
52
|
-
function aliasPlugin(config) {
|
|
53
|
-
return new require_src.BuiltinPlugin("builtin:alias", config);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
//#endregion
|
|
57
|
-
exports.aliasPlugin = aliasPlugin
|
|
58
|
-
exports.buildImportAnalysisPlugin = require_src.buildImportAnalysisPlugin
|
|
59
|
-
exports.composePlugins = require_src.composeJsPlugins
|
|
60
|
-
exports.defineParallelPlugin = defineParallelPlugin
|
|
61
|
-
exports.dynamicImportVarsPlugin = require_src.dynamicImportVarsPlugin
|
|
62
|
-
exports.importGlobPlugin = require_src.importGlobPlugin
|
|
63
|
-
exports.jsonPlugin = require_src.jsonPlugin
|
|
64
|
-
exports.loadFallbackPlugin = require_src.loadFallbackPlugin
|
|
65
|
-
exports.manifestPlugin = require_src.manifestPlugin
|
|
66
|
-
exports.moduleFederationPlugin = require_src.moduleFederationPlugin
|
|
67
|
-
exports.modulePreloadPolyfillPlugin = require_src.modulePreloadPolyfillPlugin
|
|
68
|
-
Object.defineProperty(exports, 'moduleRunnerTransform', {
|
|
69
|
-
enumerable: true,
|
|
70
|
-
get: function () {
|
|
71
|
-
return import_binding.moduleRunnerTransform;
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
exports.replacePlugin = replacePlugin
|
|
75
|
-
exports.scan = experimental_scan
|
|
76
|
-
Object.defineProperty(exports, 'transform', {
|
|
77
|
-
enumerable: true,
|
|
78
|
-
get: function () {
|
|
79
|
-
return import_binding.transform;
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
exports.transformPlugin = transformPlugin
|
|
83
|
-
exports.viteResolvePlugin = require_src.viteResolvePlugin
|
|
84
|
-
exports.wasmFallbackPlugin = require_src.wasmFallbackPlugin
|
|
85
|
-
exports.wasmHelperPlugin = require_src.wasmHelperPlugin
|
package/dist/cjs/index.cjs
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
const require_src = require('../shared/src-CLo-BgXK.cjs');
|
|
2
|
-
require('../shared/parse-ast-index-Dh_sWnMa.cjs');
|
|
3
|
-
|
|
4
|
-
exports.VERSION = require_src.VERSION
|
|
5
|
-
exports.build = require_src.build
|
|
6
|
-
exports.defineConfig = require_src.defineConfig
|
|
7
|
-
exports.rolldown = require_src.rolldown
|
|
8
|
-
exports.watch = require_src.watch
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { import_binding } from "../shared/parse-ast-index-DIxeQDpE.mjs";
|
|
2
|
-
import { BuiltinPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "../shared/src-CTS_IQ3m.mjs";
|
|
3
|
-
import { pathToFileURL } from "node:url";
|
|
4
|
-
|
|
5
|
-
//#region src/plugin/parallel-plugin.ts
|
|
6
|
-
function defineParallelPlugin(pluginPath) {
|
|
7
|
-
return (options) => {
|
|
8
|
-
return { _parallel: {
|
|
9
|
-
fileUrl: pathToFileURL(pluginPath).href,
|
|
10
|
-
options
|
|
11
|
-
} };
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
//#endregion
|
|
16
|
-
//#region src/api/experimental.ts
|
|
17
|
-
const experimental_scan = async (input) => {
|
|
18
|
-
const { bundler, stopWorkers } = await createBundler(input, {});
|
|
19
|
-
const output = await bundler.scan();
|
|
20
|
-
handleOutputErrors(output);
|
|
21
|
-
await stopWorkers?.();
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
//#endregion
|
|
25
|
-
//#region src/builtin-plugin/transform-plugin.ts
|
|
26
|
-
function normalizeEcmaTransformPluginConfig(config) {
|
|
27
|
-
if (!config) return void 0;
|
|
28
|
-
let normalizedConfig = {
|
|
29
|
-
...config,
|
|
30
|
-
exclude: normalizedStringOrRegex(config.exclude),
|
|
31
|
-
include: normalizedStringOrRegex(config.include)
|
|
32
|
-
};
|
|
33
|
-
return normalizedConfig;
|
|
34
|
-
}
|
|
35
|
-
function transformPlugin(config) {
|
|
36
|
-
return new BuiltinPlugin("builtin:transform", normalizeEcmaTransformPluginConfig(config));
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
//#endregion
|
|
40
|
-
//#region src/builtin-plugin/replace-plugin.ts
|
|
41
|
-
function replacePlugin(values = {}, options = {}) {
|
|
42
|
-
return new BuiltinPlugin("builtin:replace", {
|
|
43
|
-
...options,
|
|
44
|
-
values
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
//#endregion
|
|
49
|
-
//#region src/builtin-plugin/alias-plugin.ts
|
|
50
|
-
function aliasPlugin(config) {
|
|
51
|
-
return new BuiltinPlugin("builtin:alias", config);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
//#endregion
|
|
55
|
-
var moduleRunnerTransform = import_binding.moduleRunnerTransform;
|
|
56
|
-
var transform = import_binding.transform;
|
|
57
|
-
export { aliasPlugin, buildImportAnalysisPlugin, composeJsPlugins as composePlugins, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, moduleRunnerTransform, replacePlugin, experimental_scan as scan, transform, transformPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin };
|
package/dist/esm/index.mjs
DELETED