rolldown 1.0.0-beta.7-commit.25f3c61 → 1.0.0-beta.7-commit.170d158
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} +4 -5
- package/dist/cli.mjs +1829 -0
- package/dist/{cjs/experimental-index.cjs → experimental-index.cjs} +3 -3
- package/dist/{esm/experimental-index.mjs → experimental-index.mjs} +13 -2
- package/dist/{cjs/index.cjs → index.cjs} +2 -2
- package/dist/index.mjs +5 -0
- package/dist/{cjs/parallel-plugin-worker.cjs → parallel-plugin-worker.cjs} +3 -4
- package/dist/parallel-plugin-worker.mjs +47 -0
- package/dist/parse-ast-index.cjs +4 -0
- package/dist/parse-ast-index.mjs +4 -0
- package/dist/shared/chunk-DUYDk_2O.mjs +33 -0
- package/dist/shared/{parse-ast-index-DNOUVcBy.mjs → parse-ast-index-5U4JtZBO.mjs} +108 -110
- package/dist/shared/{parse-ast-index-0ei4fTjl.cjs → parse-ast-index-BfKb9n4T.cjs} +1 -1
- package/dist/shared/prompt-W5YHe0v6.mjs +854 -0
- package/dist/shared/{src-BPcsb-4N.cjs → src-B0nHUJsv.cjs} +26 -7
- package/dist/shared/src-kyIoH7SP.mjs +4319 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/api/rolldown/rolldown-build.d.ts +1 -0
- package/dist/types/binding.d.ts +8 -2
- package/dist/types/options/input-options.d.ts +5 -1
- package/package.json +32 -31
- package/bin/cli.js +0 -2
- package/dist/cjs/parse-ast-index.cjs +0 -4
- package/dist/esm/cli.mjs +0 -1755
- package/dist/esm/index.mjs +0 -4
- package/dist/esm/parallel-plugin-worker.mjs +0 -41
- package/dist/esm/parse-ast-index.mjs +0 -3
- package/dist/shared/prompt-C6jWWCza.mjs +0 -852
- package/dist/shared/src-DllTyFDp.mjs +0 -2888
- /package/dist/{cjs/parallel-plugin.cjs → parallel-plugin.cjs} +0 -0
- /package/dist/{esm/parallel-plugin.mjs → parallel-plugin.mjs} +0 -0
package/dist/esm/index.mjs
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { import_binding } from "../shared/parse-ast-index-DNOUVcBy.mjs";
|
|
2
|
-
import { PluginContextData, bindingifyPlugin } from "../shared/src-DllTyFDp.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
|