@voidzero-dev/vite-plus-core 0.1.15-alpha.4 → 0.1.15-alpha.6

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.
@@ -1,8 +1,8 @@
1
- import { c as globalLogger } from "./main-BgAbc3Rw.js";
2
- import { t as enableDebug } from "./debug-C4FmgzkJ-A9B4RM_w.js";
3
- import { i as resolveUserConfig, n as buildWithConfigs, r as mergeConfig, t as build$1 } from "./build-DpU0PBVv-CUY7qeWj.js";
1
+ import { c as globalLogger } from "./main-CYOGr7IM.js";
2
+ import { t as enableDebug } from "./debug-BmAPbhgA-BPQhbB8P.js";
3
+ import { a as resolveUserConfig, i as mergeConfig, n as buildWithConfigs, t as build$1 } from "./build-DU-BFLB1-BP6FOpRZ.js";
4
4
  import * as Rolldown from "@voidzero-dev/vite-plus-core/rolldown";
5
- //#region ../../node_modules/.pnpm/tsdown@0.21.5_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.5_@tsdown+exe@0.21.5_@type_bddbe1807a7ea96241d07b33ef15a1ae/node_modules/tsdown/dist/config.mjs
5
+ //#region ../../node_modules/.pnpm/tsdown@0.21.7_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.7_@tsdown+exe@0.21.7_@type_f4ea40ca957034c1fa8bb4b9c4426b84/node_modules/tsdown/dist/config.mjs
6
6
  function defineConfig(options) {
7
7
  return options;
8
8
  }
@@ -1,13 +1,12 @@
1
1
  import { r as __toESM, t as __commonJSMin } from "./chunk-CSNpwdVU.js";
2
2
  import { createRequire } from "node:module";
3
- import { pathToFileURL } from "node:url";
4
3
  import process$1, { cwd } from "node:process";
5
4
  import readline from "node:readline";
6
5
  import { spawn } from "node:child_process";
7
6
  import { delimiter, dirname, normalize, resolve } from "node:path";
8
7
  import { PassThrough } from "node:stream";
9
- const picomatch = createRequire(import.meta.url)("./npm_entry_picomatch.cjs");
10
- var __require = /* @__PURE__ */ createRequire(import.meta.url);
8
+ //#region ../../node_modules/.pnpm/tsdown@0.21.7_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.7_@tsdown+exe@0.21.7_@type_f4ea40ca957034c1fa8bb4b9c4426b84/node_modules/tsdown/dist/general-D3muxt2f.mjs
9
+ const picomatch = createRequire(import.meta.url)("picomatch");
11
10
  function toArray(val, defaultValue) {
12
11
  if (Array.isArray(val)) return val;
13
12
  else if (val == null) {
@@ -42,11 +41,9 @@ function pkgExists(moduleName) {
42
41
  } catch {}
43
42
  return false;
44
43
  }
45
- async function importWithError(moduleName, resolvePaths) {
46
- let resolved;
47
- if (resolvePaths) resolved = pathToFileURL(__require.resolve(moduleName, { paths: resolvePaths })).href;
44
+ async function importWithError(moduleName) {
48
45
  try {
49
- return await import(resolved || moduleName);
46
+ return await import(moduleName);
50
47
  } catch (error) {
51
48
  throw new Error(`Failed to import module "${moduleName}". Please ensure it is installed.`, { cause: error });
52
49
  }
@@ -172,7 +169,7 @@ const { Ansis, fg, bg, rgb, bgRgb, hex, bgHex, reset, inverse, hidden, visible,
172
169
  module.exports = w, w.default = w;
173
170
  })))(), 1)).default;
174
171
  //#endregion
175
- //#region ../../node_modules/.pnpm/tsdown@0.21.5_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.5_@tsdown+exe@0.21.5_@type_bddbe1807a7ea96241d07b33ef15a1ae/node_modules/tsdown/dist/logger-BU0v7CAk.mjs
172
+ //#region ../../node_modules/.pnpm/tsdown@0.21.7_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.7_@tsdown+exe@0.21.7_@type_f4ea40ca957034c1fa8bb4b9c4426b84/node_modules/tsdown/dist/logger-uV8l1UFa.mjs
176
173
  const LogLevels = {
177
174
  silent: 0,
178
175
  error: 1,
@@ -296,8 +293,8 @@ function hue2rgb(p, q, t) {
296
293
  return p;
297
294
  }
298
295
  //#endregion
299
- //#region ../../node_modules/.pnpm/tsdown@0.21.5_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.5_@tsdown+exe@0.21.5_@type_bddbe1807a7ea96241d07b33ef15a1ae/node_modules/tsdown/dist/package-BIUrKRH5.mjs
300
- var version = "0.21.5";
296
+ //#region ../../node_modules/.pnpm/tsdown@0.21.7_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.7_@tsdown+exe@0.21.7_@type_f4ea40ca957034c1fa8bb4b9c4426b84/node_modules/tsdown/dist/package-CBgnLfjl.mjs
297
+ var version = "0.21.7";
301
298
  //#endregion
302
299
  //#region ../../node_modules/.pnpm/tinyexec@1.0.4/node_modules/tinyexec/dist/main.mjs
303
300
  var l = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports);
@@ -899,4 +896,4 @@ const R = (e, t, n) => {
899
896
  };
900
897
  const z = R;
901
898
  //#endregion
902
- export { resolveComma as C, toArray as E, promiseWithResolvers as S, slash as T, debounce as _, createLogger as a, noop as b, globalLogger as c, bold as d, dim as f, yellow as g, underline as h, LogLevels as i, prettyFormat as l, red as m, z as n, generateColor as o, green as p, version as r, getNameLabel as s, R as t, blue as u, importWithError as v, resolveRegex as w, pkgExists as x, matchPattern as y };
899
+ export { promiseWithResolvers as C, toArray as D, slash as E, pkgExists as S, resolveRegex as T, yellow as _, createLogger as a, matchPattern as b, globalLogger as c, bold as d, dim as f, underline as g, red as h, LogLevels as i, prettyFormat as l, hex as m, z as n, generateColor as o, green as p, version as r, getNameLabel as s, R as t, blue as u, debounce as v, resolveComma as w, noop as x, importWithError as y };
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { c as globalLogger, f as dim, g as yellow, r as version, t as R } from "./main-BgAbc3Rw.js";
3
- import { t as enableDebug } from "./debug-C4FmgzkJ-A9B4RM_w.js";
2
+ import { _ as yellow, c as globalLogger, m as hex, r as version, t as R, u as blue } from "./main-CYOGr7IM.js";
3
+ import { t as enableDebug } from "./debug-BmAPbhgA-BPQhbB8P.js";
4
4
  import module, { createRequire } from "node:module";
5
5
  import process$1 from "node:process";
6
6
  import { VERSION } from "@voidzero-dev/vite-plus-core/rolldown";
@@ -629,8 +629,8 @@ cli.command("[...files]", "Bundle files", {
629
629
  allowUnknownOptions: true
630
630
  }).option("-c, --config <filename>", "Use a custom config file").option("--config-loader <loader>", "Config loader to use: auto, native, unrun", { default: "auto" }).option("--no-config", "Disable config file").option("-f, --format <format>", "Bundle format: esm, cjs, iife, umd", { default: "esm" }).option("--clean", "Clean output directory, --no-clean to disable").option("--deps.never-bundle <module>", "Mark dependencies as external").option("--minify", "Minify output").option("--devtools", "Enable devtools integration").option("--debug [feat]", "Show debug logs").option("--target <target>", "Bundle target, e.g \"es2015\", \"esnext\"").option("-l, --logLevel <level>", "Set log level: info, warn, error, silent").option("--fail-on-warn", "Fail on warnings", { default: true }).option("--no-write", "Disable writing files to disk, incompatible with watch mode").option("-d, --out-dir <dir>", "Output directory", { default: "dist" }).option("--treeshake", "Tree-shake bundle", { default: true }).option("--sourcemap", "Generate source map", { default: false }).option("--shims", "Enable cjs and esm shims ", { default: false }).option("--platform <platform>", "Target platform", { default: "node" }).option("--dts", "Generate dts files").option("--publint", "Enable publint", { default: false }).option("--attw", "Enable Are the types wrong integration", { default: false }).option("--unused", "Enable unused dependencies check", { default: false }).option("-w, --watch [path]", "Watch mode").option("--ignore-watch <path>", "Ignore custom paths in watch mode").option("--from-vite [vitest]", "Reuse config from Vite or Vitest").option("--report", "Size report", { default: true }).option("--env.* <value>", "Define compile-time env variables").option("--env-file <file>", "Load environment variables from a file, when used together with --env, variables in --env take precedence").option("--env-prefix <prefix>", "Prefix for env variables to inject into the bundle", { default: "TSDOWN_" }).option("--on-success <command>", "Command to run on success").option("--copy <dir>", "Copy files to output dir").option("--public-dir <dir>", "Alias for --copy, deprecated").option("--tsconfig <tsconfig>", "Set tsconfig path").option("--unbundle", "Unbundle mode").option("--root <dir>", "Root directory of input files").option("--exe", "Bundle as executable").option("-W, --workspace [dir]", "Enable workspace mode").option("-F, --filter <pattern>", "Filter configs (cwd or name), e.g. /pkg-name$/ or pkg-name").option("--exports", "Generate export-related metadata for package.json (experimental)").action(async (input, flags) => {
631
631
  globalLogger.level = flags.logLevel || "info";
632
- globalLogger.info(`tsdown ${dim`v${version}`} powered by rolldown ${dim`v${VERSION}`}`);
633
- const { build } = await import("./build-D-zhBXEK-X12uvwLb.js");
632
+ globalLogger.info(`${blue`tsdown v${version}`} powered by ${hex("#ff7e17")`rolldown v${VERSION}`}`);
633
+ const { build } = await import("./build-DU-BFLB1-BCro_0va.js").then((n) => n.r);
634
634
  if (input.length > 0) flags.entry = input;
635
635
  await build(flags);
636
636
  });
@@ -1,9 +1,9 @@
1
1
  import { t as createDebug } from "./node-B3Gdtau1.js";
2
- import { n as RE_DTS, r as RE_DTS_MAP } from "./filename-UU7z2A9Z.js";
3
- import { n as globalContext } from "./tsc-context-BQtoHArj.js";
2
+ import { n as RE_DTS, r as RE_DTS_MAP } from "./filename-DQnUJlio-B_23lF2M.js";
3
+ import { n as globalContext } from "./tsc-context-CltQOpVo.js";
4
4
  import { createRequire } from "node:module";
5
- import { pathToFileURL } from "node:url";
6
5
  import path from "node:path";
6
+ import { pathToFileURL } from "node:url";
7
7
  const ts = createRequire(import.meta.url)("typescript");
8
8
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
9
9
  const debug$4 = createDebug("rolldown-plugin-dts:tsc-system");
@@ -1,6 +1,6 @@
1
1
  import { t as createDebug } from "./node-B3Gdtau1.js";
2
2
  import path from "node:path";
3
- //#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.22.5_@typescript+native-preview@7.0.0-dev.20260122.2_oxc-resolver_ee01c189cef60d67143f173de4d10478/node_modules/rolldown-plugin-dts/dist/tsc-context.mjs
3
+ //#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.23.2_@typescript+native-preview@7.0.0-dev.20260122.2_oxc-resolver_904f32a050a832a0b86262f953874d92/node_modules/rolldown-plugin-dts/dist/tsc-context.mjs
4
4
  const debug = createDebug("rolldown-plugin-dts:tsc-context");
5
5
  function createContext() {
6
6
  return {
@@ -101,7 +101,7 @@ const ROLLUP_HOOKS = [
101
101
  "onLog"
102
102
  ];
103
103
  const VERSION = version;
104
- const VITE_PLUS_VERSION = process.env.VITE_PLUS_VERSION || VERSION;
104
+ const VITE_PLUS_VERSION = process.env.VP_VERSION || VERSION;
105
105
  const DEFAULT_MAIN_FIELDS = [
106
106
  "browser",
107
107
  "module",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voidzero-dev/vite-plus-core",
3
- "version": "0.1.15-alpha.4",
3
+ "version": "0.1.15-alpha.6",
4
4
  "description": "The Unified Toolchain for the Web",
5
5
  "homepage": "https://viteplus.dev/guide",
6
6
  "bugs": {
@@ -127,14 +127,14 @@
127
127
  "semver": "^7.7.3",
128
128
  "tinyglobby": "^0.2.15",
129
129
  "tree-kill": "^1.2.2",
130
- "tsdown": "^0.21.5",
131
- "vite": "npm:@voidzero-dev/vite-plus-core@0.1.15-alpha.4",
132
- "rolldown": "1.0.0-rc.12"
130
+ "tsdown": "^0.21.7",
131
+ "rolldown": "1.0.0-rc.12",
132
+ "vite": "npm:@voidzero-dev/vite-plus-core@0.1.15-alpha.6"
133
133
  },
134
134
  "peerDependencies": {
135
135
  "@arethetypeswrong/core": "^0.18.1",
136
- "@tsdown/css": "0.21.5",
137
- "@tsdown/exe": "0.21.5",
136
+ "@tsdown/css": "0.21.7",
137
+ "@tsdown/exe": "0.21.7",
138
138
  "@types/node": "^20.19.0 || >=22.12.0",
139
139
  "@vitejs/devtools": "^0.1.0",
140
140
  "esbuild": "^0.27.0",
@@ -216,7 +216,7 @@
216
216
  "bundledVersions": {
217
217
  "vite": "8.0.3",
218
218
  "rolldown": "1.0.0-rc.12",
219
- "tsdown": "0.21.5"
219
+ "tsdown": "0.21.7"
220
220
  },
221
221
  "scripts": {
222
222
  "build": "oxnode -C dev ./build.ts"
@@ -1,2 +0,0 @@
1
- import { t as build$1 } from "./build-DpU0PBVv-CUY7qeWj.js";
2
- export { build$1 as build };