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.
Files changed (149) hide show
  1. package/bin/cli.mjs +2 -0
  2. package/dist/{cjs/cli.cjs → cli.cjs} +620 -620
  3. package/dist/cli.d.cts +1 -0
  4. package/dist/cli.d.mts +1 -0
  5. package/dist/{esm/cli.mjs → cli.mjs} +596 -593
  6. package/dist/config.cjs +12 -0
  7. package/dist/config.d.cts +10 -0
  8. package/dist/config.d.mts +10 -0
  9. package/dist/config.mjs +10 -0
  10. package/dist/experimental-index.cjs +105 -0
  11. package/dist/experimental-index.d.cts +58 -0
  12. package/dist/experimental-index.d.mts +58 -0
  13. package/dist/experimental-index.mjs +82 -0
  14. package/dist/experimental-runtime-types.d.ts +66 -0
  15. package/dist/filter-index.cjs +105 -0
  16. package/dist/filter-index.d.cts +4 -0
  17. package/dist/filter-index.d.mts +4 -0
  18. package/dist/filter-index.mjs +44 -0
  19. package/dist/index.cjs +9 -0
  20. package/dist/index.d.cts +3 -0
  21. package/dist/index.d.mts +3 -0
  22. package/dist/index.mjs +5 -0
  23. package/dist/{cjs/parallel-plugin-worker.cjs → parallel-plugin-worker.cjs} +6 -15
  24. package/dist/parallel-plugin-worker.d.cts +1 -0
  25. package/dist/parallel-plugin-worker.d.mts +1 -0
  26. package/dist/{esm/parallel-plugin-worker.mjs → parallel-plugin-worker.mjs} +5 -13
  27. package/dist/{cjs/parallel-plugin.cjs → parallel-plugin.cjs} +1 -2
  28. package/dist/parallel-plugin.d.cts +14 -0
  29. package/dist/parallel-plugin.d.mts +14 -0
  30. package/dist/{esm/parallel-plugin.mjs → parallel-plugin.mjs} +0 -1
  31. package/dist/parse-ast-index.cjs +4 -0
  32. package/dist/parse-ast-index.d.cts +8 -0
  33. package/dist/parse-ast-index.d.mts +8 -0
  34. package/dist/parse-ast-index.mjs +3 -0
  35. package/dist/shared/binding-BAyrv67G.d.cts +1309 -0
  36. package/dist/shared/binding-DUz1Q2JW.d.mts +1309 -0
  37. package/dist/shared/{chunk-qZFfknuJ.cjs → chunk-DDkG_k5U.cjs} +0 -1
  38. package/dist/shared/define-config-CMH1jWhX.d.cts +1331 -0
  39. package/dist/shared/define-config-D_KKKWbo.d.mts +1331 -0
  40. package/dist/shared/load-config-BWjPkvnW.mjs +119 -0
  41. package/dist/shared/load-config-BtTrX40c.cjs +125 -0
  42. package/dist/shared/misc-CQeo-AFx.mjs +22 -0
  43. package/dist/shared/misc-DksvspN4.cjs +58 -0
  44. package/dist/shared/parse-ast-index-DrqwhzH4.cjs +784 -0
  45. package/dist/shared/parse-ast-index-DyFjvjrb.mjs +656 -0
  46. package/dist/shared/{prompt-CxK9euq3.mjs → prompt-C5jz26Zn.mjs} +241 -240
  47. package/dist/shared/{prompt-ZZScCEWI.cjs → prompt-QNI93ne7.cjs} +245 -245
  48. package/dist/shared/src-CRRyjCYJ.cjs +4573 -0
  49. package/dist/shared/src-DR2upIfp.mjs +4381 -0
  50. package/package.json +69 -69
  51. package/bin/cli.js +0 -2
  52. package/dist/cjs/experimental-index.cjs +0 -85
  53. package/dist/cjs/index.cjs +0 -8
  54. package/dist/cjs/parse-ast-index.cjs +0 -4
  55. package/dist/esm/experimental-index.mjs +0 -57
  56. package/dist/esm/index.mjs +0 -4
  57. package/dist/esm/parse-ast-index.mjs +0 -3
  58. package/dist/shared/parse-ast-index-DIxeQDpE.mjs +0 -674
  59. package/dist/shared/parse-ast-index-Dh_sWnMa.cjs +0 -719
  60. package/dist/shared/src-CLo-BgXK.cjs +0 -3007
  61. package/dist/shared/src-CTS_IQ3m.mjs +0 -2826
  62. package/dist/types/api/build.d.ts +0 -18
  63. package/dist/types/api/experimental.d.ts +0 -7
  64. package/dist/types/api/rolldown/index.d.ts +0 -3
  65. package/dist/types/api/rolldown/rolldown-build.d.ts +0 -13
  66. package/dist/types/api/watch/index.d.ts +0 -3
  67. package/dist/types/api/watch/watch-emitter.d.ts +0 -31
  68. package/dist/types/api/watch/watcher.d.ts +0 -13
  69. package/dist/types/binding.d.ts +0 -1435
  70. package/dist/types/builtin-plugin/alias-plugin.d.ts +0 -10
  71. package/dist/types/builtin-plugin/constructors.d.ts +0 -21
  72. package/dist/types/builtin-plugin/replace-plugin.d.ts +0 -28
  73. package/dist/types/builtin-plugin/transform-plugin.d.ts +0 -9
  74. package/dist/types/builtin-plugin/utils.d.ts +0 -8
  75. package/dist/types/cli/arguments/alias.d.ts +0 -16
  76. package/dist/types/cli/arguments/index.d.ts +0 -15
  77. package/dist/types/cli/arguments/normalize.d.ts +0 -12
  78. package/dist/types/cli/arguments/utils.d.ts +0 -8
  79. package/dist/types/cli/colors.d.ts +0 -11
  80. package/dist/types/cli/commands/bundle.d.ts +0 -3
  81. package/dist/types/cli/commands/help.d.ts +0 -1
  82. package/dist/types/cli/index.d.ts +0 -1
  83. package/dist/types/cli/load-config.d.ts +0 -5
  84. package/dist/types/cli/logger.d.ts +0 -5
  85. package/dist/types/constants/plugin-context.d.ts +0 -7
  86. package/dist/types/constants/plugin.d.ts +0 -45
  87. package/dist/types/experimental-index.d.ts +0 -9
  88. package/dist/types/index.d.ts +0 -30
  89. package/dist/types/log/log-handler.d.ts +0 -4
  90. package/dist/types/log/logger.d.ts +0 -6
  91. package/dist/types/log/logging.d.ts +0 -12
  92. package/dist/types/log/logs.d.ts +0 -18
  93. package/dist/types/options/input-options.d.ts +0 -181
  94. package/dist/types/options/normalized-input-options.d.ts +0 -18
  95. package/dist/types/options/normalized-output-options.d.ts +0 -70
  96. package/dist/types/options/output-options.d.ts +0 -182
  97. package/dist/types/options/watch-options.d.ts +0 -5
  98. package/dist/types/parallel-plugin-worker.d.ts +0 -1
  99. package/dist/types/parallel-plugin.d.ts +0 -1
  100. package/dist/types/parse-ast-index.d.ts +0 -5
  101. package/dist/types/plugin/bindingify-build-hooks.d.ts +0 -10
  102. package/dist/types/plugin/bindingify-hook-filter.d.ts +0 -7
  103. package/dist/types/plugin/bindingify-output-hooks.d.ts +0 -14
  104. package/dist/types/plugin/bindingify-plugin-hook-meta.d.ts +0 -8
  105. package/dist/types/plugin/bindingify-plugin.d.ts +0 -16
  106. package/dist/types/plugin/bindingify-watch-hooks.d.ts +0 -5
  107. package/dist/types/plugin/hook-filter.d.ts +0 -48
  108. package/dist/types/plugin/index.d.ts +0 -134
  109. package/dist/types/plugin/minimal-plugin-context.d.ts +0 -23
  110. package/dist/types/plugin/parallel-plugin-implementation.d.ts +0 -10
  111. package/dist/types/plugin/parallel-plugin.d.ts +0 -9
  112. package/dist/types/plugin/plugin-context-data.d.ts +0 -17
  113. package/dist/types/plugin/plugin-context.d.ts +0 -67
  114. package/dist/types/plugin/plugin-driver.d.ts +0 -8
  115. package/dist/types/plugin/transform-plugin-context.d.ts +0 -28
  116. package/dist/types/types/assert.d.ts +0 -14
  117. package/dist/types/types/config-export.d.ts +0 -5
  118. package/dist/types/types/misc.d.ts +0 -40
  119. package/dist/types/types/module-info.d.ts +0 -15
  120. package/dist/types/types/module-side-effects.d.ts +0 -12
  121. package/dist/types/types/output-bundle.d.ts +0 -4
  122. package/dist/types/types/rolldown-options.d.ts +0 -5
  123. package/dist/types/types/rolldown-output.d.ts +0 -66
  124. package/dist/types/types/schema.d.ts +0 -33
  125. package/dist/types/types/sourcemap.d.ts +0 -14
  126. package/dist/types/types/utils.d.ts +0 -13
  127. package/dist/types/utils/asset-source.d.ts +0 -4
  128. package/dist/types/utils/async-flatten.d.ts +0 -1
  129. package/dist/types/utils/bindingify-input-options.d.ts +0 -7
  130. package/dist/types/utils/bindingify-output-options.d.ts +0 -5
  131. package/dist/types/utils/code-frame.d.ts +0 -1
  132. package/dist/types/utils/compose-js-plugins.d.ts +0 -2
  133. package/dist/types/utils/create-bundler-option.d.ts +0 -11
  134. package/dist/types/utils/create-bundler.d.ts +0 -8
  135. package/dist/types/utils/define-config.d.ts +0 -5
  136. package/dist/types/utils/error.d.ts +0 -2
  137. package/dist/types/utils/initialize-parallel-plugins.d.ts +0 -19
  138. package/dist/types/utils/misc.d.ts +0 -6
  139. package/dist/types/utils/normalize-hook.d.ts +0 -7
  140. package/dist/types/utils/normalize-plugin-option.d.ts +0 -13
  141. package/dist/types/utils/normalize-string-or-regex.d.ts +0 -2
  142. package/dist/types/utils/plugin/index.d.ts +0 -2
  143. package/dist/types/utils/transform-module-info.d.ts +0 -4
  144. package/dist/types/utils/transform-rendered-chunk.d.ts +0 -4
  145. package/dist/types/utils/transform-rendered-module.d.ts +0 -3
  146. package/dist/types/utils/transform-side-effects.d.ts +0 -3
  147. package/dist/types/utils/transform-sourcemap.d.ts +0 -3
  148. package/dist/types/utils/transform-to-rollup-output.d.ts +0 -11
  149. 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-commit.e170e6e",
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.js"
28
+ "rolldown": "./bin/cli.mjs"
28
29
  },
29
- "main": "./dist/cjs/index.cjs",
30
- "types": "./dist/types/index.d.ts",
30
+ "main": "./dist/index.cjs",
31
+ "types": "./dist/index.d.cts",
31
32
  "exports": {
32
33
  ".": {
33
- "types": "./dist/types/index.d.ts",
34
- "require": "./dist/cjs/index.cjs",
35
- "import": "./dist/esm/index.mjs"
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
- "types": "./dist/types/experimental-index.d.ts",
39
- "require": "./dist/cjs/experimental-index.cjs",
40
- "import": "./dist/esm/experimental-index.mjs"
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
- "./parallel-plugin": {
43
- "types": "./dist/types/parallel-plugin.d.ts",
44
- "require": "./dist/cjs/parallel-plugin.cjs",
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
- "types": "./dist/types/parse-ast-index.d.ts",
49
- "require": "./dist/cjs/parse-ast-index.cjs",
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/esm/parallel-plugin-worker.mjs"
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/types": "0.56.0",
88
- "@valibot/to-json-schema": "1.0.0-rc.0",
89
- "valibot": "1.0.0-rc.3"
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
- "@jridgewell/sourcemap-codec": "^1.5.0",
101
- "@napi-rs/cli": "^3.0.0-alpha.72",
102
- "@napi-rs/wasm-runtime": "^0.2.4",
103
- "@oxc-node/core": "^0.0.19",
104
- "@types/fs-extra": "^11.0.4",
105
- "@types/lodash-es": "^4.17.12",
106
- "colorette": "^2.0.20",
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
- "locate-character": "^3.0.0",
113
- "npm-run-all2": "^7.0.0",
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.2",
119
- "type-fest": "^4.20.0",
120
- "typedoc": "^0.27.6",
118
+ "tsx": "^4.19.4",
119
+ "typedoc": "^0.28.0",
121
120
  "typescript": "^5.7.3",
122
- "unbuild": "^3.0.0",
123
- "why-is-node-running": "^3.0.0",
124
- "rolldown": "1.0.0-beta.3-commit.e170e6e",
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-arm64": "1.0.0-beta.3-commit.e170e6e",
129
- "@rolldown/binding-freebsd-x64": "1.0.0-beta.3-commit.e170e6e",
130
- "@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.3-commit.e170e6e",
131
- "@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.3-commit.e170e6e",
132
- "@rolldown/binding-darwin-x64": "1.0.0-beta.3-commit.e170e6e",
133
- "@rolldown/binding-linux-arm64-musl": "1.0.0-beta.3-commit.e170e6e",
134
- "@rolldown/binding-linux-x64-gnu": "1.0.0-beta.3-commit.e170e6e",
135
- "@rolldown/binding-linux-x64-musl": "1.0.0-beta.3-commit.e170e6e",
136
- "@rolldown/binding-wasm32-wasi": "1.0.0-beta.3-commit.e170e6e",
137
- "@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.3-commit.e170e6e",
138
- "@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.3-commit.e170e6e",
139
- "@rolldown/binding-win32-x64-msvc": "1.0.0-beta.3-commit.e170e6e"
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": "node ./build-binding.js",
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
- "bak_build-node": "unbuild",
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,2 +0,0 @@
1
- #!/usr/bin/env node
2
- import('../dist/esm/cli.mjs')
@@ -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
@@ -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,4 +0,0 @@
1
- const require_parse_ast_index = require('../shared/parse-ast-index-Dh_sWnMa.cjs');
2
-
3
- exports.parseAst = require_parse_ast_index.parseAst
4
- exports.parseAstAsync = require_parse_ast_index.parseAstAsync
@@ -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 };
@@ -1,4 +0,0 @@
1
- import "../shared/parse-ast-index-DIxeQDpE.mjs";
2
- import { VERSION, build, defineConfig, rolldown, watch } from "../shared/src-CTS_IQ3m.mjs";
3
-
4
- export { VERSION, build, defineConfig, rolldown, watch };
@@ -1,3 +0,0 @@
1
- import { parseAst, parseAstAsync } from "../shared/parse-ast-index-DIxeQDpE.mjs";
2
-
3
- export { parseAst, parseAstAsync };