robuild 0.2.2 → 0.2.3
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/_chunks/{build-DeROCGLc.mjs → build-CNPfGUF2.mjs} +9 -7
- package/dist/_chunks/build-Dstxx_ve.mjs +2 -0
- package/dist/_chunks/{dist-D0KplbyY.mjs → dist-BHTRvvCk.mjs} +1 -1
- package/dist/_chunks/{package-CPHhLlk6.mjs → package-DgXMIpBS.mjs} +19 -19
- package/dist/cli.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +19 -19
- package/dist/_chunks/build-D0MXJmgE.mjs +0 -2
|
@@ -1143,7 +1143,7 @@ function normalizeWasmConfig(config) {
|
|
|
1143
1143
|
*/
|
|
1144
1144
|
async function createWasmPlugin(config) {
|
|
1145
1145
|
try {
|
|
1146
|
-
const { wasm } = await import("./dist-
|
|
1146
|
+
const { wasm } = await import("./dist-BHTRvvCk.mjs");
|
|
1147
1147
|
return wasm({
|
|
1148
1148
|
maxFileSize: config.maxFileSize,
|
|
1149
1149
|
fileName: config.fileName,
|
|
@@ -1540,9 +1540,10 @@ async function rolldownBuild(ctx, entry, hooks, config) {
|
|
|
1540
1540
|
const hasDefaultExport = parseSync(srcPath, srcContents).module.staticExports.flatMap((e) => e.entries.map((e) => e.exportName.kind === "Default" ? "default" : e.exportName.name)).includes("default");
|
|
1541
1541
|
const firstLine = srcContents.split("\n")[0];
|
|
1542
1542
|
const hasShebangLine = firstLine.startsWith("#!");
|
|
1543
|
-
|
|
1543
|
+
const relativeSrcPath = relative(dirname(distPath), srcPath);
|
|
1544
|
+
await writeFile(distPath, `${hasShebangLine ? `${firstLine}\n` : ""}export * from "${relativeSrcPath}";\n${hasDefaultExport ? `export { default } from "${relativeSrcPath}";\n` : ""}`, "utf8");
|
|
1544
1545
|
if (hasShebangLine) await makeExecutable(distPath);
|
|
1545
|
-
await writeFile(distPath.replace(/\.mjs$/, ".d.mts"), `export * from "${
|
|
1546
|
+
await writeFile(distPath.replace(/\.mjs$/, ".d.mts"), `export * from "${relativeSrcPath}";\n${hasDefaultExport ? `export { default } from "${relativeSrcPath}";\n` : ""}`, "utf8");
|
|
1546
1547
|
}
|
|
1547
1548
|
return;
|
|
1548
1549
|
}
|
|
@@ -1978,7 +1979,8 @@ async function transformModule(entryPath, entry) {
|
|
|
1978
1979
|
for (const staticImport of parsed.module.staticImports) rewriteSpecifier(staticImport.moduleRequest);
|
|
1979
1980
|
for (const staticExport of parsed.module.staticExports) for (const staticExportEntry of staticExport.entries) if (staticExportEntry.moduleRequest) rewriteSpecifier(staticExportEntry.moduleRequest);
|
|
1980
1981
|
sourceText = magicString.toString();
|
|
1981
|
-
const
|
|
1982
|
+
const relativeSrcPath = relative(entry.outDir, entryPath);
|
|
1983
|
+
const transformed = await transform(relativeSrcPath, sourceText, {
|
|
1982
1984
|
...entry.oxc,
|
|
1983
1985
|
...sourceOptions,
|
|
1984
1986
|
cwd: dirname(entryPath),
|
|
@@ -1997,7 +1999,7 @@ async function transformModule(entryPath, entry) {
|
|
|
1997
1999
|
throw error;
|
|
1998
2000
|
}
|
|
1999
2001
|
if (entry.minify) {
|
|
2000
|
-
const res = await minify(
|
|
2002
|
+
const res = await minify(relativeSrcPath, transformed.code, entry.minify === true ? {} : entry.minify);
|
|
2001
2003
|
transformed.code = res.code;
|
|
2002
2004
|
transformed.map = res.map;
|
|
2003
2005
|
}
|
|
@@ -2330,7 +2332,7 @@ function createBuildResult(entries, startTime) {
|
|
|
2330
2332
|
* Perform watch build using rolldown's built-in watch mode
|
|
2331
2333
|
*/
|
|
2332
2334
|
async function performWatchBuild(config, ctx, startTime) {
|
|
2333
|
-
const { performBuild } = await import("./build-
|
|
2335
|
+
const { performBuild } = await import("./build-Dstxx_ve.mjs");
|
|
2334
2336
|
await performBuild(config, ctx, startTime);
|
|
2335
2337
|
const bundleEntries = (config.entries || []).filter((entry) => {
|
|
2336
2338
|
if (typeof entry === "string") return !entry.endsWith("/");
|
|
@@ -2350,7 +2352,7 @@ async function performWatchBuild(config, ctx, startTime) {
|
|
|
2350
2352
|
*/
|
|
2351
2353
|
async function startRolldownWatch(config, ctx, bundleEntries) {
|
|
2352
2354
|
logger.info("Watching for changes...");
|
|
2353
|
-
const { inheritConfig } = await import("./build-
|
|
2355
|
+
const { inheritConfig } = await import("./build-Dstxx_ve.mjs");
|
|
2354
2356
|
const watchConfigs = [];
|
|
2355
2357
|
for (const rawEntry of bundleEntries) {
|
|
2356
2358
|
let entry = typeof rawEntry === "string" ? parseEntryString(rawEntry) : rawEntry;
|
|
@@ -3,7 +3,7 @@ import { readFile } from "node:fs/promises";
|
|
|
3
3
|
import { createHash } from "node:crypto";
|
|
4
4
|
import { Buffer } from "node:buffer";
|
|
5
5
|
import { exactRegex, id, include, or } from "rolldown/filter";
|
|
6
|
-
//#region node_modules/.pnpm/rolldown-plugin-wasm@0.2.1_rolldown@1.0.
|
|
6
|
+
//#region node_modules/.pnpm/rolldown-plugin-wasm@0.2.1_rolldown@1.0.1/node_modules/rolldown-plugin-wasm/dist/index.mjs
|
|
7
7
|
const HELPERS_ID = "\0wasm-helpers.js";
|
|
8
8
|
const nodeFilePath = `
|
|
9
9
|
const { readFile } = process.getBuiltinModule('fs/promises')
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
var package_default = {
|
|
3
3
|
name: "robuild",
|
|
4
4
|
type: "module",
|
|
5
|
-
version: "0.2.
|
|
5
|
+
version: "0.2.3",
|
|
6
6
|
packageManager: "pnpm@10.11.1",
|
|
7
7
|
description: "Zero-config ESM/TS package builder. Powered by Rolldown and Oxc",
|
|
8
8
|
license: "MIT",
|
|
@@ -43,44 +43,44 @@ var package_default = {
|
|
|
43
43
|
"prepare": "husky"
|
|
44
44
|
},
|
|
45
45
|
dependencies: {
|
|
46
|
-
"c12": "4.0.0-beta.
|
|
46
|
+
"c12": "4.0.0-beta.5",
|
|
47
47
|
"cac": "^7.0.0",
|
|
48
48
|
"chokidar": "^5.0.0",
|
|
49
49
|
"consola": "^3.4.2",
|
|
50
50
|
"exsolve": "^1.0.8",
|
|
51
51
|
"glob": "^13.0.6",
|
|
52
|
-
"jiti": "^2.
|
|
52
|
+
"jiti": "^2.7.0",
|
|
53
53
|
"js-yaml": "^4.1.1",
|
|
54
54
|
"magic-string": "^0.30.21",
|
|
55
|
-
"minimatch": "^10.2.
|
|
56
|
-
"oxc-minify": "^0.
|
|
57
|
-
"oxc-parser": "^0.
|
|
58
|
-
"oxc-transform": "^0.
|
|
55
|
+
"minimatch": "^10.2.5",
|
|
56
|
+
"oxc-minify": "^0.131.0",
|
|
57
|
+
"oxc-parser": "^0.131.0",
|
|
58
|
+
"oxc-transform": "^0.131.0",
|
|
59
59
|
"pretty-bytes": "^7.1.0",
|
|
60
|
-
"rolldown": "1.0.
|
|
61
|
-
"rolldown-plugin-dts": "^0.
|
|
62
|
-
"tinyglobby": "^0.2.
|
|
63
|
-
"typescript": "^
|
|
60
|
+
"rolldown": "1.0.1",
|
|
61
|
+
"rolldown-plugin-dts": "^0.25.1",
|
|
62
|
+
"tinyglobby": "^0.2.16",
|
|
63
|
+
"typescript": "^6.0.3"
|
|
64
64
|
},
|
|
65
65
|
devDependencies: {
|
|
66
66
|
"@types/js-yaml": "^4.0.9",
|
|
67
|
-
"@types/node": "^25.
|
|
68
|
-
"@vitest/coverage-v8": "^4.1.
|
|
67
|
+
"@types/node": "^25.8.0",
|
|
68
|
+
"@vitest/coverage-v8": "^4.1.6",
|
|
69
69
|
"automd": "^0.4.3",
|
|
70
70
|
"changelogen": "^0.6.2",
|
|
71
71
|
"esno": "^4.8.0",
|
|
72
72
|
"git-cz": "^4.9.0",
|
|
73
73
|
"husky": "^9.1.7",
|
|
74
74
|
"lightningcss": "^1.32.0",
|
|
75
|
-
"lint-staged": "^
|
|
76
|
-
"oxlint": "^1.
|
|
75
|
+
"lint-staged": "^17.0.4",
|
|
76
|
+
"oxlint": "^1.65.0",
|
|
77
77
|
"rolldown-plugin-wasm": "^0.2.1",
|
|
78
|
-
"turbo": "^2.
|
|
78
|
+
"turbo": "^2.9.14",
|
|
79
79
|
"unplugin-lightningcss": "^0.4.5",
|
|
80
|
-
"vite": "^
|
|
80
|
+
"vite": "^7.3.3",
|
|
81
81
|
"vitepress": "^1.6.4",
|
|
82
|
-
"vitepress-plugin-group-icons": "^1.7.
|
|
83
|
-
"vitest": "^4.1.
|
|
82
|
+
"vitepress-plugin-group-icons": "^1.7.5",
|
|
83
|
+
"vitest": "^4.1.6"
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
86
|
//#endregion
|
package/dist/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { _ as configureLogger, t as build, v as logger } from "./_chunks/build-
|
|
2
|
+
import { _ as configureLogger, t as build, v as logger } from "./_chunks/build-CNPfGUF2.mjs";
|
|
3
3
|
import module from "node:module";
|
|
4
4
|
import { colors } from "consola/utils";
|
|
5
5
|
import process from "node:process";
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as resolveCssOptions, S as esbuildTargetToLightningCSS, a as createSkipNodeModulesPlugin, b as createCssCodeSplitPlugin, c as createNodeShimsPlugin, d as hasShebang, f as makeExecutable, g as hasGlobImports, h as createGlobImportPlugin, i as RobuildPluginManager, l as createShimsPlugin, m as nodeProtocolPlugin, o as DEFAULT_SHIMS_CONFIG, p as shebangPlugin, s as createBrowserShimsPlugin, t as build, u as SHEBANG_RE, v as logger, x as createLightningCSSPlugin, y as createBuiltinCssPlugin } from "./_chunks/build-
|
|
1
|
+
import { C as resolveCssOptions, S as esbuildTargetToLightningCSS, a as createSkipNodeModulesPlugin, b as createCssCodeSplitPlugin, c as createNodeShimsPlugin, d as hasShebang, f as makeExecutable, g as hasGlobImports, h as createGlobImportPlugin, i as RobuildPluginManager, l as createShimsPlugin, m as nodeProtocolPlugin, o as DEFAULT_SHIMS_CONFIG, p as shebangPlugin, s as createBrowserShimsPlugin, t as build, u as SHEBANG_RE, v as logger, x as createLightningCSSPlugin, y as createBuiltinCssPlugin } from "./_chunks/build-CNPfGUF2.mjs";
|
|
2
2
|
import { t as defineConfig } from "./_chunks/config-DnVMMWOP.mjs";
|
|
3
3
|
import { extname } from "node:path";
|
|
4
4
|
import { readFile } from "node:fs/promises";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "robuild",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.3",
|
|
5
5
|
"packageManager": "pnpm@10.11.1",
|
|
6
6
|
"description": "Zero-config ESM/TS package builder. Powered by Rolldown and Oxc",
|
|
7
7
|
"license": "MIT",
|
|
@@ -44,43 +44,43 @@
|
|
|
44
44
|
"prepare": "husky"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"c12": "4.0.0-beta.
|
|
47
|
+
"c12": "4.0.0-beta.5",
|
|
48
48
|
"cac": "^7.0.0",
|
|
49
49
|
"chokidar": "^5.0.0",
|
|
50
50
|
"consola": "^3.4.2",
|
|
51
51
|
"exsolve": "^1.0.8",
|
|
52
52
|
"glob": "^13.0.6",
|
|
53
|
-
"jiti": "^2.
|
|
53
|
+
"jiti": "^2.7.0",
|
|
54
54
|
"js-yaml": "^4.1.1",
|
|
55
55
|
"magic-string": "^0.30.21",
|
|
56
|
-
"minimatch": "^10.2.
|
|
57
|
-
"oxc-minify": "^0.
|
|
58
|
-
"oxc-parser": "^0.
|
|
59
|
-
"oxc-transform": "^0.
|
|
56
|
+
"minimatch": "^10.2.5",
|
|
57
|
+
"oxc-minify": "^0.131.0",
|
|
58
|
+
"oxc-parser": "^0.131.0",
|
|
59
|
+
"oxc-transform": "^0.131.0",
|
|
60
60
|
"pretty-bytes": "^7.1.0",
|
|
61
|
-
"rolldown": "1.0.
|
|
62
|
-
"rolldown-plugin-dts": "^0.
|
|
63
|
-
"tinyglobby": "^0.2.
|
|
64
|
-
"typescript": "^
|
|
61
|
+
"rolldown": "1.0.1",
|
|
62
|
+
"rolldown-plugin-dts": "^0.25.1",
|
|
63
|
+
"tinyglobby": "^0.2.16",
|
|
64
|
+
"typescript": "^6.0.3"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@types/js-yaml": "^4.0.9",
|
|
68
|
-
"@types/node": "^25.
|
|
69
|
-
"@vitest/coverage-v8": "^4.1.
|
|
68
|
+
"@types/node": "^25.8.0",
|
|
69
|
+
"@vitest/coverage-v8": "^4.1.6",
|
|
70
70
|
"automd": "^0.4.3",
|
|
71
71
|
"changelogen": "^0.6.2",
|
|
72
72
|
"esno": "^4.8.0",
|
|
73
73
|
"git-cz": "^4.9.0",
|
|
74
74
|
"husky": "^9.1.7",
|
|
75
75
|
"lightningcss": "^1.32.0",
|
|
76
|
-
"lint-staged": "^
|
|
77
|
-
"oxlint": "^1.
|
|
76
|
+
"lint-staged": "^17.0.4",
|
|
77
|
+
"oxlint": "^1.65.0",
|
|
78
78
|
"rolldown-plugin-wasm": "^0.2.1",
|
|
79
|
-
"turbo": "^2.
|
|
79
|
+
"turbo": "^2.9.14",
|
|
80
80
|
"unplugin-lightningcss": "^0.4.5",
|
|
81
|
-
"vite": "^
|
|
81
|
+
"vite": "^7.3.3",
|
|
82
82
|
"vitepress": "^1.6.4",
|
|
83
|
-
"vitepress-plugin-group-icons": "^1.7.
|
|
84
|
-
"vitest": "^4.1.
|
|
83
|
+
"vitepress-plugin-group-icons": "^1.7.5",
|
|
84
|
+
"vitest": "^4.1.6"
|
|
85
85
|
}
|
|
86
86
|
}
|