rolldown 1.0.0-beta.7-commit.b7224c1 → 1.0.0-beta.7-commit.8d551a2

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 (34) hide show
  1. package/bin/cli.mjs +2 -0
  2. package/dist/{cjs/cli.cjs → cli.cjs} +4 -5
  3. package/dist/cli.mjs +1829 -0
  4. package/dist/{cjs/experimental-index.cjs → experimental-index.cjs} +3 -3
  5. package/dist/{esm/experimental-index.mjs → experimental-index.mjs} +13 -2
  6. package/dist/{cjs/index.cjs → index.cjs} +2 -2
  7. package/dist/index.mjs +5 -0
  8. package/dist/{cjs/parallel-plugin-worker.cjs → parallel-plugin-worker.cjs} +3 -4
  9. package/dist/parallel-plugin-worker.mjs +47 -0
  10. package/dist/parse-ast-index.cjs +4 -0
  11. package/dist/parse-ast-index.mjs +4 -0
  12. package/dist/shared/chunk-DUYDk_2O.mjs +33 -0
  13. package/dist/shared/{parse-ast-index-DaIG9gVZ.mjs → parse-ast-index-5U4JtZBO.mjs} +108 -110
  14. package/dist/shared/{parse-ast-index-CkTB4l_X.cjs → parse-ast-index-BfKb9n4T.cjs} +1 -1
  15. package/dist/shared/prompt-W5YHe0v6.mjs +854 -0
  16. package/dist/shared/src-B5-P3A9k.mjs +4311 -0
  17. package/dist/shared/{src-DLdaSnAQ.cjs → src-DrZP0HZs.cjs} +15 -4
  18. package/dist/tsconfig.tsbuildinfo +1 -1
  19. package/dist/types/api/rolldown/rolldown-build.d.ts +1 -0
  20. package/dist/types/binding.d.ts +8 -2
  21. package/dist/types/index.d.ts +2 -2
  22. package/dist/types/options/input-options.d.ts +5 -1
  23. package/dist/types/plugin/index.d.ts +1 -2
  24. package/package.json +39 -38
  25. package/bin/cli.js +0 -2
  26. package/dist/cjs/parse-ast-index.cjs +0 -4
  27. package/dist/esm/cli.mjs +0 -1755
  28. package/dist/esm/index.mjs +0 -4
  29. package/dist/esm/parallel-plugin-worker.mjs +0 -41
  30. package/dist/esm/parse-ast-index.mjs +0 -3
  31. package/dist/shared/prompt-C6jWWCza.mjs +0 -852
  32. package/dist/shared/src-4GSMzVRq.mjs +0 -2888
  33. /package/dist/{cjs/parallel-plugin.cjs → parallel-plugin.cjs} +0 -0
  34. /package/dist/{esm/parallel-plugin.mjs → parallel-plugin.mjs} +0 -0
@@ -1,4 +0,0 @@
1
- import "../shared/parse-ast-index-DaIG9gVZ.mjs";
2
- import { VERSION, build, defineConfig, rolldown, watch } from "../shared/src-4GSMzVRq.mjs";
3
-
4
- export { VERSION, build, defineConfig, rolldown, watch };
@@ -1,41 +0,0 @@
1
- import { import_binding } from "../shared/parse-ast-index-DaIG9gVZ.mjs";
2
- import { PluginContextData, bindingifyPlugin } from "../shared/src-4GSMzVRq.mjs";
3
- import { parentPort, workerData } from "node:worker_threads";
4
-
5
- //#region src/parallel-plugin-worker.ts
6
- const { registryId, pluginInfos, threadNumber } = workerData;
7
- (async () => {
8
- try {
9
- const plugins = await Promise.all(pluginInfos.map(async (pluginInfo) => {
10
- const pluginModule = await import(pluginInfo.fileUrl);
11
- const definePluginImpl = pluginModule.default;
12
- const plugin = await definePluginImpl(pluginInfo.options, { threadNumber });
13
- return {
14
- index: pluginInfo.index,
15
- plugin: bindingifyPlugin(
16
- plugin,
17
- {},
18
- {},
19
- // TODO need to find a way to share pluginContextData
20
- new PluginContextData(),
21
- [],
22
- () => {},
23
- "info",
24
- // TODO: support this.meta.watchMode
25
- false
26
- )
27
- };
28
- }));
29
- (0, import_binding.registerPlugins)(registryId, plugins);
30
- parentPort.postMessage({ type: "success" });
31
- } catch (error) {
32
- parentPort.postMessage({
33
- type: "error",
34
- error
35
- });
36
- } finally {
37
- parentPort.unref();
38
- }
39
- })();
40
-
41
- //#endregion
@@ -1,3 +0,0 @@
1
- import { parseAst, parseAstAsync } from "../shared/parse-ast-index-DaIG9gVZ.mjs";
2
-
3
- export { parseAst, parseAstAsync };