@voidzero-dev/vite-plus-core 0.1.19-alpha.3 → 0.1.20-alpha.0

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.
@@ -72,7 +72,7 @@ var require_picocolors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
72
72
  }));
73
73
  //#endregion
74
74
  //#region ../../vite/packages/vite/package.json
75
- var version = "8.0.8";
75
+ var version = "8.0.9";
76
76
  //#endregion
77
77
  //#region ../../vite/packages/vite/src/node/constants.ts
78
78
  const ROLLUP_HOOKS = [
@@ -3412,13 +3412,10 @@ function traverseBetweenDirs(longerDir, shorterDir, cb) {
3412
3412
  //#region ../../vite/packages/vite/src/node/utils.ts
3413
3413
  var import_picocolors = /* @__PURE__ */ __toESM(require_picocolors(), 1);
3414
3414
  const createFilter$1 = createFilter$2;
3415
- const replaceSlashOrColonRE = /[/:]/g;
3416
- const replaceDotRE = /\./g;
3415
+ const invalidUrlPathCharRE = /[\u0000-\u001F"#$%&*+,:;<=>?[\]^`{|}\u007F]/g;
3417
3416
  const replaceNestedIdRE = /\s*>\s*/g;
3418
- const replaceHashRE = /#/g;
3419
- const replacePlusRE = /\+/g;
3420
3417
  const flattenId = (id) => {
3421
- return limitFlattenIdLength(id.replace(replaceSlashOrColonRE, "_").replace(replaceDotRE, "__").replace(replaceNestedIdRE, "___").replace(replaceHashRE, "____").replace(replacePlusRE, "_____"));
3418
+ return limitFlattenIdLength(id.replaceAll(/_+/g, "$&__").replaceAll("/", "_").replaceAll(".", "__").replace(replaceNestedIdRE, "_n_").replace(invalidUrlPathCharRE, (c) => "_0" + c.charCodeAt(0).toString(16) + "_"));
3422
3419
  };
3423
3420
  const FLATTEN_ID_HASH_LENGTH = 8;
3424
3421
  const FLATTEN_ID_MAX_FILE_LENGTH = 170;
@@ -15280,7 +15277,7 @@ var require_launch_editor_middleware = /* @__PURE__ */ __commonJSMin(((exports,
15280
15277
  };
15281
15278
  }));
15282
15279
  //#endregion
15283
- //#region ../../node_modules/.pnpm/@vercel+detect-agent@1.2.1/node_modules/@vercel/detect-agent/dist/index.js
15280
+ //#region ../../node_modules/.pnpm/@vercel+detect-agent@1.2.3/node_modules/@vercel/detect-agent/dist/index.js
15284
15281
  var require_dist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15285
15282
  var __defProp = Object.defineProperty;
15286
15283
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -15324,6 +15321,7 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15324
15321
  const OPENCODE = "opencode";
15325
15322
  const GITHUB_COPILOT = "github-copilot";
15326
15323
  const GITHUB_COPILOT_CLI = "github-copilot-cli";
15324
+ const V0 = "v0";
15327
15325
  const KNOWN_AGENTS = {
15328
15326
  CURSOR,
15329
15327
  CURSOR_CLI,
@@ -15336,7 +15334,8 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15336
15334
  ANTIGRAVITY,
15337
15335
  AUGMENT_CLI,
15338
15336
  OPENCODE,
15339
- GITHUB_COPILOT
15337
+ GITHUB_COPILOT,
15338
+ V0
15340
15339
  };
15341
15340
  async function determineAgent() {
15342
15341
  if (process.env.AI_AGENT) {
@@ -15346,6 +15345,10 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15346
15345
  isAgent: true,
15347
15346
  agent: { name: GITHUB_COPILOT }
15348
15347
  };
15348
+ if (name === V0) return {
15349
+ isAgent: true,
15350
+ agent: { name: V0 }
15351
+ };
15349
15352
  return {
15350
15353
  isAgent: true,
15351
15354
  agent: { name }
@@ -15356,7 +15359,7 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15356
15359
  isAgent: true,
15357
15360
  agent: { name: CURSOR }
15358
15361
  };
15359
- if (process.env.CURSOR_AGENT) return {
15362
+ if (process.env.CURSOR_AGENT || process.env.CURSOR_EXTENSION_HOST_ROLE === "agent-exec") return {
15360
15363
  isAgent: true,
15361
15364
  agent: { name: CURSOR_CLI }
15362
15365
  };
@@ -15487,12 +15490,21 @@ const MAX_PORT = 65535;
15487
15490
  async function httpServerStart(httpServer, serverOptions) {
15488
15491
  const { port: startPort, strictPort, host, logger } = serverOptions;
15489
15492
  for (let port = startPort; port <= MAX_PORT; port++) {
15490
- if (await isPortAvailable(port)) {
15493
+ const portAvailableOnWildcard = await isPortAvailable(port);
15494
+ if (strictPort) {
15495
+ const result = await tryBindServer(httpServer, port, host);
15496
+ if (result.success) {
15497
+ if (!portAvailableOnWildcard) logger.warn(import_picocolors.default.yellow(`Port ${port} is in use on a wildcard address, but ${host ?? "localhost"}:${port} is available. There may be another server running on a wildcard IP on port ${port}.`));
15498
+ return port;
15499
+ }
15500
+ if (result.error.code !== "EADDRINUSE") throw result.error;
15501
+ throw new Error(`Port ${port} is already in use`);
15502
+ }
15503
+ if (portAvailableOnWildcard) {
15491
15504
  const result = await tryBindServer(httpServer, port, host);
15492
15505
  if (result.success) return port;
15493
15506
  if (result.error.code !== "EADDRINUSE") throw result.error;
15494
15507
  }
15495
- if (strictPort) throw new Error(`Port ${port} is already in use`);
15496
15508
  logger.info(`Port ${port} is in use, trying another one...`);
15497
15509
  }
15498
15510
  throw new Error(`No available ports found between ${startPort} and ${MAX_PORT}`);
@@ -24570,6 +24582,7 @@ function assetPlugin(config) {
24570
24582
  this.addWatchFile(file);
24571
24583
  return {
24572
24584
  code: `export default ${JSON.stringify(await fsp.readFile(file, "utf-8"))}`,
24585
+ map: { mappings: "" },
24573
24586
  moduleType: "js"
24574
24587
  };
24575
24588
  }
@@ -25081,7 +25094,7 @@ var require_src$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
25081
25094
  };
25082
25095
  }));
25083
25096
  //#endregion
25084
- //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_yaml@2.8.2/node_modules/postcss-load-config/src/req.js
25097
+ //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.10_tsx@4.21.0_yaml@2.8.2/node_modules/postcss-load-config/src/req.js
25085
25098
  var require_req = /* @__PURE__ */ __commonJSMin(((exports, module) => {
25086
25099
  const { createRequire: createRequire$2 } = __require$1("node:module");
25087
25100
  const { fileURLToPath: fileURLToPath$2, pathToFileURL: pathToFileURL$1 } = __require$1("node:url");
@@ -25123,7 +25136,7 @@ var require_req = /* @__PURE__ */ __commonJSMin(((exports, module) => {
25123
25136
  module.exports = req;
25124
25137
  }));
25125
25138
  //#endregion
25126
- //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_yaml@2.8.2/node_modules/postcss-load-config/src/options.js
25139
+ //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.10_tsx@4.21.0_yaml@2.8.2/node_modules/postcss-load-config/src/options.js
25127
25140
  var require_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
25128
25141
  const req = require_req();
25129
25142
  /**
@@ -25157,7 +25170,7 @@ var require_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
25157
25170
  module.exports = options;
25158
25171
  }));
25159
25172
  //#endregion
25160
- //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_yaml@2.8.2/node_modules/postcss-load-config/src/plugins.js
25173
+ //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.10_tsx@4.21.0_yaml@2.8.2/node_modules/postcss-load-config/src/plugins.js
25161
25174
  var require_plugins = /* @__PURE__ */ __commonJSMin(((exports, module) => {
25162
25175
  const req = require_req();
25163
25176
  /**
@@ -25211,7 +25224,7 @@ var require_plugins = /* @__PURE__ */ __commonJSMin(((exports, module) => {
25211
25224
  module.exports = plugins;
25212
25225
  }));
25213
25226
  //#endregion
25214
- //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_yaml@2.8.2/node_modules/postcss-load-config/src/index.js
25227
+ //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.10_tsx@4.21.0_yaml@2.8.2/node_modules/postcss-load-config/src/index.js
25215
25228
  var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
25216
25229
  const { resolve: resolve$3 } = __require$1("node:path");
25217
25230
  const config = require_src$1();
@@ -25756,6 +25769,16 @@ function hasWorkspacePackageJSON(root) {
25756
25769
  return false;
25757
25770
  }
25758
25771
  }
25772
+ function hasWorkspaceDenoJSON(root) {
25773
+ for (const name of ["deno.json", "deno.jsonc"]) {
25774
+ const path = join(root, name);
25775
+ if (!isFileReadable(path)) continue;
25776
+ try {
25777
+ if ((JSON.parse(fs.readFileSync(path, "utf-8")) || {}).workspace) return true;
25778
+ } catch {}
25779
+ }
25780
+ return false;
25781
+ }
25759
25782
  function hasRootFile(root) {
25760
25783
  return ROOT_FILES.some((file) => fs.existsSync(join(root, file)));
25761
25784
  }
@@ -25778,6 +25801,7 @@ function searchForPackageRoot(current, root = current) {
25778
25801
  function searchForWorkspaceRoot(current, root = searchForPackageRoot(current)) {
25779
25802
  if (hasRootFile(current)) return current;
25780
25803
  if (hasWorkspacePackageJSON(current)) return current;
25804
+ if (hasWorkspaceDenoJSON(current)) return current;
25781
25805
  const dir = dirname(current);
25782
25806
  if (!dir || dir === current) return root;
25783
25807
  return searchForWorkspaceRoot(dir, root);
@@ -25816,7 +25840,9 @@ function manifestPlugin() {
25816
25840
  outPath,
25817
25841
  isOutputOptionsForLegacyChunks: environment.config.isOutputOptionsForLegacyChunks,
25818
25842
  cssEntries() {
25819
- return Object.fromEntries(cssEntriesMap.get(envs[environment.name]).entries());
25843
+ return Object.fromEntries([...cssEntriesMap.get(envs[environment.name]).values()].map(({ name, referenceId }) => {
25844
+ return [referenceId, name];
25845
+ }));
25820
25846
  }
25821
25847
  }),
25822
25848
  {
@@ -26204,7 +26230,10 @@ function cssPostPlugin(config) {
26204
26230
  originalFileName,
26205
26231
  source: chunkCSS
26206
26232
  });
26207
- if (isEntry) cssEntriesMap.get(this.environment).set(chunk.name, referenceId);
26233
+ if (isEntry) cssEntriesMap.get(this.environment).set(chunk.fileName, {
26234
+ referenceId,
26235
+ name: chunk.name
26236
+ });
26208
26237
  chunk.viteMetadata.importedCss.add(this.getFileName(referenceId));
26209
26238
  } else if (this.environment.config.consumer === "client") {
26210
26239
  chunkCSS = await finalizeCss(chunkCSS, config);
@@ -26287,7 +26316,7 @@ function cssPostPlugin(config) {
26287
26316
  const emptyJsPlaceholder = bundle[fileName];
26288
26317
  if (emptyJsPlaceholder.isEntry) {
26289
26318
  const { importedAssets, importedCss } = emptyJsPlaceholder.viteMetadata;
26290
- const cssReferenceId = cssEntriesMap.get(this.environment).get(emptyJsPlaceholder.name);
26319
+ const cssReferenceId = cssEntriesMap.get(this.environment).get(emptyJsPlaceholder.preliminaryFileName).referenceId;
26291
26320
  const realCssEntryName = this.getFileName(cssReferenceId);
26292
26321
  const realCssEntry = bundle[realCssEntryName];
26293
26322
  importedCss.delete(realCssEntryName);
@@ -30595,7 +30624,7 @@ var FullBundleDevEnvironment = class extends DevEnvironment {
30595
30624
  ...hmrOutput,
30596
30625
  code: typeof hmrOutput.code === "string" ? "[code]" : hmrOutput.code
30597
30626
  });
30598
- this.memoryFiles.set(hmrOutput.filename, { source: hmrOutput.code });
30627
+ this.memoryFiles.set(hmrOutput.filename, { source: hmrOutput.code + "\n; export {}" });
30599
30628
  if (hmrOutput.sourcemapFilename && hmrOutput.sourcemap) this.memoryFiles.set(hmrOutput.sourcemapFilename, { source: hmrOutput.sourcemap });
30600
30629
  const updates = hmrOutput.hmrBoundaries.map((boundary) => {
30601
30630
  return {
@@ -31495,32 +31524,6 @@ function memoryFilesMiddleware(server) {
31495
31524
  };
31496
31525
  }
31497
31526
  //#endregion
31498
- //#region ../../vite/packages/vite/src/node/server/middlewares/rejectNoCorsRequest.ts
31499
- /**
31500
- * A middleware that rejects no-cors mode requests that are not same-origin.
31501
- *
31502
- * We should avoid untrusted sites to load the script to avoid attacks like GHSA-4v9v-hfq4-rm2v.
31503
- * This is because:
31504
- * - the path of HMR patch files / entry point files can be predictable
31505
- * - the HMR patch files may not include ESM syntax
31506
- * (if they include ESM syntax, loading as a classic script would fail)
31507
- * - the HMR runtime in the browser has the list of all loaded modules
31508
- *
31509
- * https://github.com/webpack/webpack-dev-server/security/advisories/GHSA-4v9v-hfq4-rm2v
31510
- * https://green.sapphi.red/blog/local-server-security-best-practices#_2-using-xssi-and-modifying-the-prototype
31511
- * https://green.sapphi.red/blog/local-server-security-best-practices#properly-check-the-request-origin
31512
- */
31513
- function rejectNoCorsRequestMiddleware() {
31514
- return function viteRejectNoCorsRequestMiddleware(req, res, next) {
31515
- if (req.headers["sec-fetch-mode"] === "no-cors" && req.headers["sec-fetch-site"] !== "same-origin" && req.headers["sec-fetch-dest"] === "script") {
31516
- res.setHeader("Content-Type", "text/javascript");
31517
- res.end(`throw new Error(${JSON.stringify("[Vite] Cross-origin requests for classic scripts must be made with CORS mode enabled. Make sure to set the \"crossorigin\" attribute on your <script> tag.")});`);
31518
- return;
31519
- }
31520
- return next();
31521
- };
31522
- }
31523
- //#endregion
31524
31527
  //#region ../../vite/packages/vite/src/node/server/index.ts
31525
31528
  var server_exports = /* @__PURE__ */ __exportAll({
31526
31529
  _createServer: () => _createServer,
@@ -31774,25 +31777,27 @@ async function _createServer(inlineConfig = {}, options) {
31774
31777
  if (isUnlink) for (const environment of Object.values(server.environments)) environment.moduleGraph.onFileDelete(file);
31775
31778
  await onHMRUpdate(isUnlink ? "delete" : "create", file);
31776
31779
  };
31777
- watcher.on("change", async (file) => {
31780
+ const onFileChange = async (file) => {
31778
31781
  file = normalizePath$1(file);
31779
31782
  reloadOnTsconfigChange(server, file);
31780
31783
  await Promise.all(Object.values(server.environments).map((environment) => environment.pluginContainer.watchChange(file, { event: "update" })));
31781
31784
  for (const environment of Object.values(server.environments)) environment.moduleGraph.onFileChange(file);
31782
31785
  await onHMRUpdate("update", file);
31786
+ };
31787
+ watcher.on("change", (file) => {
31788
+ onFileChange(file).catch((e) => server.config.logger.error(e));
31783
31789
  });
31784
31790
  watcher.on("add", (file) => {
31785
- onFileAddUnlink(file, false);
31791
+ onFileAddUnlink(file, false).catch((e) => server.config.logger.error(e));
31786
31792
  });
31787
31793
  watcher.on("unlink", (file) => {
31788
- onFileAddUnlink(file, true);
31794
+ onFileAddUnlink(file, true).catch((e) => server.config.logger.error(e));
31789
31795
  });
31790
31796
  if (!middlewareMode && httpServer) httpServer.once("listening", () => {
31791
31797
  serverConfig.port = httpServer.address().port;
31792
31798
  });
31793
31799
  if (process.env.DEBUG) middlewares.use(timeMiddleware(root));
31794
31800
  middlewares.use(rejectInvalidRequestMiddleware());
31795
- middlewares.use(rejectNoCorsRequestMiddleware());
31796
31801
  const { cors } = serverConfig;
31797
31802
  if (cors !== false) middlewares.use((0, import_lib.default)(typeof cors === "boolean" ? {} : cors));
31798
31803
  const { allowedHosts } = serverConfig;
@@ -34705,7 +34710,7 @@ function createFilterForTransform(idFilter, codeFilter, moduleTypeFilter, cwd) {
34705
34710
  };
34706
34711
  }
34707
34712
  //#endregion
34708
- //#region ../../node_modules/.pnpm/@vitest+utils@4.1.2/node_modules/@vitest/utils/dist/helpers.js
34713
+ //#region ../../node_modules/.pnpm/@vitest+utils@4.1.4/node_modules/@vitest/utils/dist/helpers.js
34709
34714
  function notNullish(v) {
34710
34715
  return v != null;
34711
34716
  }
@@ -34713,7 +34718,7 @@ function isPrimitive(value) {
34713
34718
  return value === null || typeof value !== "function" && typeof value !== "object";
34714
34719
  }
34715
34720
  //#endregion
34716
- //#region ../../node_modules/.pnpm/@vitest+utils@4.1.2/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.js
34721
+ //#region ../../node_modules/.pnpm/@vitest+utils@4.1.4/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.js
34717
34722
  const _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
34718
34723
  function normalizeWindowsPath(input = "") {
34719
34724
  if (!input) return input;
@@ -34792,7 +34797,7 @@ const isAbsolute$2 = function(p) {
34792
34797
  return _IS_ABSOLUTE_RE.test(p);
34793
34798
  };
34794
34799
  //#endregion
34795
- //#region ../../node_modules/.pnpm/@vitest+utils@4.1.2/node_modules/@vitest/utils/dist/source-map.js
34800
+ //#region ../../node_modules/.pnpm/@vitest+utils@4.1.4/node_modules/@vitest/utils/dist/source-map.js
34796
34801
  var comma = ",".charCodeAt(0);
34797
34802
  var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
34798
34803
  var intToChar = new Uint8Array(64);
@@ -35079,7 +35084,7 @@ function parseSingleV8Stack(raw) {
35079
35084
  function parseStacktrace(stack, options = {}) {
35080
35085
  const { ignoreStackEntries = stackIgnorePatterns } = options;
35081
35086
  let stacks = !CHROME_IE_STACK_REGEXP.test(stack) ? parseFFOrSafariStackTrace(stack) : parseV8Stacktrace(stack);
35082
- const helperIndex = stacks.findLastIndex((s) => s.method === "__VITEST_HELPER__" || s.method === "async*__VITEST_HELPER__");
35087
+ const helperIndex = stacks.findLastIndex((s) => s.method === "__VITEST_HELPER__" || s.method === "async*__VITEST_HELPER__" || s.method === "async __VITEST_HELPER__");
35083
35088
  if (helperIndex >= 0) stacks = stacks.slice(helperIndex + 1);
35084
35089
  return stacks.map((stack) => {
35085
35090
  if (options.getUrlId) stack.file = options.getUrlId(stack.file);
@@ -38261,7 +38266,7 @@ function prepareOutDirPlugin() {
38261
38266
  const rendered = /* @__PURE__ */ new Set();
38262
38267
  return {
38263
38268
  name: "vite:prepare-out-dir",
38264
- options() {
38269
+ watchChange() {
38265
38270
  rendered.delete(this.environment);
38266
38271
  },
38267
38272
  renderStart: {
@@ -1,6 +1,6 @@
1
1
  import { r as __require, t as __commonJSMin } from "./chunk.js";
2
2
  import { t as require_lib } from "./lib.js";
3
- //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.8/node_modules/postcss-import/lib/format-import-prelude.js
3
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.10/node_modules/postcss-import/lib/format-import-prelude.js
4
4
  var require_format_import_prelude = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5
5
  module.exports = function formatImportPrelude(layer, media, supports) {
6
6
  const parts = [];
@@ -15,7 +15,7 @@ var require_format_import_prelude = /* @__PURE__ */ __commonJSMin(((exports, mod
15
15
  };
16
16
  }));
17
17
  //#endregion
18
- //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.8/node_modules/postcss-import/lib/base64-encoded-import.js
18
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.10/node_modules/postcss-import/lib/base64-encoded-import.js
19
19
  var require_base64_encoded_import = /* @__PURE__ */ __commonJSMin(((exports, module) => {
20
20
  const formatImportPrelude = require_format_import_prelude();
21
21
  module.exports = function base64EncodedConditionalImport(prelude, conditions) {
@@ -28,7 +28,7 @@ var require_base64_encoded_import = /* @__PURE__ */ __commonJSMin(((exports, mod
28
28
  };
29
29
  }));
30
30
  //#endregion
31
- //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.8/node_modules/postcss-import/lib/apply-conditions.js
31
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.10/node_modules/postcss-import/lib/apply-conditions.js
32
32
  var require_apply_conditions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
33
33
  const base64EncodedConditionalImport = require_base64_encoded_import();
34
34
  module.exports = function applyConditions(bundle, atRule) {
@@ -103,7 +103,7 @@ var require_apply_conditions = /* @__PURE__ */ __commonJSMin(((exports, module)
103
103
  };
104
104
  }));
105
105
  //#endregion
106
- //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.8/node_modules/postcss-import/lib/apply-raws.js
106
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.10/node_modules/postcss-import/lib/apply-raws.js
107
107
  var require_apply_raws = /* @__PURE__ */ __commonJSMin(((exports, module) => {
108
108
  module.exports = function applyRaws(bundle) {
109
109
  bundle.forEach((stmt, index) => {
@@ -117,7 +117,7 @@ var require_apply_raws = /* @__PURE__ */ __commonJSMin(((exports, module) => {
117
117
  };
118
118
  }));
119
119
  //#endregion
120
- //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.8/node_modules/postcss-import/lib/apply-styles.js
120
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.10/node_modules/postcss-import/lib/apply-styles.js
121
121
  var require_apply_styles = /* @__PURE__ */ __commonJSMin(((exports, module) => {
122
122
  module.exports = function applyStyles(bundle, styles) {
123
123
  styles.nodes = [];
@@ -137,7 +137,7 @@ var require_apply_styles = /* @__PURE__ */ __commonJSMin(((exports, module) => {
137
137
  };
138
138
  }));
139
139
  //#endregion
140
- //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.8/node_modules/postcss-import/lib/data-url.js
140
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.10/node_modules/postcss-import/lib/data-url.js
141
141
  var require_data_url = /* @__PURE__ */ __commonJSMin(((exports, module) => {
142
142
  const anyDataURLRegexp = /^data:text\/css(?:;(base64|plain))?,/i;
143
143
  const base64DataURLRegexp = /^data:text\/css;base64,/i;
@@ -156,7 +156,7 @@ var require_data_url = /* @__PURE__ */ __commonJSMin(((exports, module) => {
156
156
  };
157
157
  }));
158
158
  //#endregion
159
- //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.8/node_modules/postcss-import/lib/parse-statements.js
159
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.10/node_modules/postcss-import/lib/parse-statements.js
160
160
  var require_parse_statements = /* @__PURE__ */ __commonJSMin(((exports, module) => {
161
161
  const valueParser = require_lib();
162
162
  const { stringify } = valueParser;
@@ -281,7 +281,7 @@ var require_parse_statements = /* @__PURE__ */ __commonJSMin(((exports, module)
281
281
  }
282
282
  }));
283
283
  //#endregion
284
- //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.8/node_modules/postcss-import/lib/process-content.js
284
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.10/node_modules/postcss-import/lib/process-content.js
285
285
  var require_process_content = /* @__PURE__ */ __commonJSMin(((exports, module) => {
286
286
  const path$2 = __require("path");
287
287
  let sugarss;
@@ -315,7 +315,7 @@ var require_process_content = /* @__PURE__ */ __commonJSMin(((exports, module) =
315
315
  }
316
316
  }));
317
317
  //#endregion
318
- //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.8/node_modules/postcss-import/lib/parse-styles.js
318
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.10/node_modules/postcss-import/lib/parse-styles.js
319
319
  var require_parse_styles = /* @__PURE__ */ __commonJSMin(((exports, module) => {
320
320
  const path$1 = __require("path");
321
321
  const dataURL = require_data_url();
@@ -418,7 +418,7 @@ var require_parse_styles = /* @__PURE__ */ __commonJSMin(((exports, module) => {
418
418
  module.exports = parseStyles;
419
419
  }));
420
420
  //#endregion
421
- //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.8/node_modules/postcss-import/index.js
421
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.10/node_modules/postcss-import/index.js
422
422
  var require_postcss_import = /* @__PURE__ */ __commonJSMin(((exports, module) => {
423
423
  const path = __require("path");
424
424
  const applyConditions = require_apply_conditions();
@@ -759,7 +759,7 @@ cli.command("[root]", "start dev server").alias("serve").alias("dev").option("--
759
759
  process.exit(1);
760
760
  }
761
761
  });
762
- cli.command("build [root]", "build for production").option("--target <target>", `[string] transpile target (default: 'baseline-widely-available')`).option("--outDir <dir>", `[string] output directory (default: dist)`).option("--assetsDir <dir>", `[string] directory under outDir to place assets in (default: assets)`).option("--assetsInlineLimit <number>", `[number] static asset base64 inline threshold in bytes (default: 4096)`).option("--ssr [entry]", `[string] build specified entry for server-side rendering`).option("--sourcemap [output]", `[boolean | "inline" | "hidden"] output source maps for build (default: false)`).option("--minify [minifier]", "[boolean | \"terser\" | \"esbuild\"] enable/disable minification, or specify minifier to use (default: esbuild)").option("--manifest [name]", `[boolean | string] emit build manifest json`).option("--ssrManifest [name]", `[boolean | string] emit ssr manifest json`).option("--emptyOutDir", `[boolean] force empty outDir when it's outside of root`).option("-w, --watch", `[boolean] rebuilds when modules have changed on disk`).option("--app", `[boolean] same as \`builder: {}\``).action(async (root, options) => {
762
+ cli.command("build [root]", "build for production").option("--target <target>", `[string] transpile target (default: 'baseline-widely-available')`).option("--outDir <dir>", `[string] output directory (default: dist)`).option("--assetsDir <dir>", `[string] directory under outDir to place assets in (default: assets)`).option("--assetsInlineLimit <number>", `[number] static asset base64 inline threshold in bytes (default: 4096)`).option("--ssr [entry]", `[string] build specified entry for server-side rendering`).option("--sourcemap [output]", `[boolean | "inline" | "hidden"] output source maps for build (default: false)`).option("--minify [minifier]", "[boolean | \"oxc\" | \"terser\" | \"esbuild\"] enable/disable minification, or specify minifier to use (default: oxc)").option("--manifest [name]", `[boolean | string] emit build manifest json`).option("--ssrManifest [name]", `[boolean | string] emit ssr manifest json`).option("--emptyOutDir", `[boolean] force empty outDir when it's outside of root`).option("-w, --watch", `[boolean] rebuilds when modules have changed on disk`).option("--app", `[boolean] same as \`builder: {}\``).action(async (root, options) => {
763
763
  filterDuplicateOptions(options);
764
764
  const { createBuilder } = await import("./chunks/node.js").then((n) => n.w);
765
765
  const buildOptions = cleanGlobalCLIOptions(cleanBuilderCLIOptions(options));
@@ -526,7 +526,7 @@ const {${missingBindings.join(", ")}} = pkg;
526
526
  }
527
527
  }
528
528
  //#endregion
529
- //#region ../../node_modules/.pnpm/nanoid@5.1.7/node_modules/nanoid/non-secure/index.js
529
+ //#region ../../node_modules/.pnpm/nanoid@5.1.9/node_modules/nanoid/non-secure/index.js
530
530
  let nanoid = (size = 21) => {
531
531
  let id = "", i = size | 0;
532
532
  for (; i--;) id += "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[Math.random() * 64 | 0];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voidzero-dev/vite-plus-core",
3
- "version": "0.1.19-alpha.3",
3
+ "version": "0.1.20-alpha.0",
4
4
  "description": "The Unified Toolchain for the Web",
5
5
  "homepage": "https://viteplus.dev/guide",
6
6
  "bugs": {
@@ -100,13 +100,13 @@
100
100
  "./types/internal/*": null
101
101
  },
102
102
  "dependencies": {
103
- "@oxc-project/runtime": "=0.126.0",
104
- "@oxc-project/types": "=0.126.0",
103
+ "@oxc-project/runtime": "=0.127.0",
104
+ "@oxc-project/types": "=0.127.0",
105
105
  "lightningcss": "^1.30.2",
106
106
  "postcss": "^8.5.6"
107
107
  },
108
108
  "devDependencies": {
109
- "@ast-grep/napi": "^0.40.4",
109
+ "@ast-grep/napi": "^0.42.1",
110
110
  "@babel/generator": "^7.28.5",
111
111
  "@babel/parser": "^7.28.5",
112
112
  "@babel/types": "^7.28.5",
@@ -116,8 +116,8 @@
116
116
  "es-module-lexer": "^1.7.0",
117
117
  "hookable": "^6.0.1",
118
118
  "magic-string": "^0.30.21",
119
- "oxc-parser": "=0.126.0",
120
- "oxfmt": "=0.45.0",
119
+ "oxc-parser": "=0.127.0",
120
+ "oxfmt": "=0.46.0",
121
121
  "picocolors": "^1.1.1",
122
122
  "picomatch": "^4.0.3",
123
123
  "pkg-types": "^2.3.0",
@@ -128,8 +128,8 @@
128
128
  "tinyglobby": "^0.2.15",
129
129
  "tree-kill": "^1.2.2",
130
130
  "tsdown": "^0.21.9",
131
- "rolldown": "1.0.0-rc.16",
132
- "vite": "npm:@voidzero-dev/vite-plus-core@0.1.19-alpha.3"
131
+ "vite": "npm:@voidzero-dev/vite-plus-core@0.1.20-alpha.0",
132
+ "rolldown": "1.0.0-rc.16"
133
133
  },
134
134
  "peerDependencies": {
135
135
  "@arethetypeswrong/core": "^0.18.1",
@@ -214,7 +214,7 @@
214
214
  "node": "^20.19.0 || >=22.12.0"
215
215
  },
216
216
  "bundledVersions": {
217
- "vite": "8.0.8",
217
+ "vite": "8.0.9",
218
218
  "rolldown": "1.0.0-rc.16",
219
219
  "tsdown": "0.21.9"
220
220
  },