vite 7.1.11 → 7.1.12

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.
@@ -3937,10 +3937,10 @@ var require_is_reference = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnp
3937
3937
  }) });
3938
3938
 
3939
3939
  //#endregion
3940
- //#region ../../node_modules/.pnpm/@rollup+plugin-commonjs@28.0.8_rollup@4.43.0/node_modules/@rollup/plugin-commonjs/dist/es/index.js
3940
+ //#region ../../node_modules/.pnpm/@rollup+plugin-commonjs@28.0.6_rollup@4.43.0/node_modules/@rollup/plugin-commonjs/dist/es/index.js
3941
3941
  var import_commondir = /* @__PURE__ */ __toESM(require_commondir(), 1);
3942
3942
  var import_is_reference = /* @__PURE__ */ __toESM(require_is_reference(), 1);
3943
- var version$1 = "28.0.8";
3943
+ var version$1 = "28.0.6";
3944
3944
  var peerDependencies = { rollup: "^2.68.0||^3.0.0||^4.0.0" };
3945
3945
  function tryParse(parse$17, code, id) {
3946
3946
  try {
@@ -4276,11 +4276,6 @@ function getEsImportProxy(id, defaultIsModuleExports, moduleSideEffects) {
4276
4276
  syntheticNamedExports: "__moduleExports"
4277
4277
  };
4278
4278
  }
4279
- function getExternalBuiltinRequireProxy(id) {
4280
- return `import { createRequire } from 'node:module';
4281
- const require = createRequire(import.meta.url);
4282
- export function __require() { return require(${JSON.stringify(id)}); }`;
4283
- }
4284
4279
  function getCandidatesForExtension(resolved, extension$1) {
4285
4280
  return [resolved + extension$1, `${resolved}${sep$1}index${extension$1}`];
4286
4281
  }
@@ -4442,19 +4437,11 @@ function getRequireResolver(extensions$1, detectCyclesAndConditional, currentlyR
4442
4437
  parentMeta.isCommonJS = getTypeForFullyAnalyzedModule(parentId);
4443
4438
  fullyAnalyzedModules[parentId] = true;
4444
4439
  return requireTargets.map(({ id: dependencyId, allowProxy }, index) => {
4445
- let isCommonJS = parentMeta.isRequiredCommonJS[dependencyId] = getTypeForFullyAnalyzedModule(dependencyId);
4446
- const isExternalWrapped = isWrappedId(dependencyId, EXTERNAL_SUFFIX);
4447
- if (parentMeta.initialCommonJSType === IS_WRAPPED_COMMONJS && !allowProxy && isExternalWrapped) {
4448
- if (unwrapId$1(dependencyId, EXTERNAL_SUFFIX).startsWith("node:")) {
4449
- isCommonJS = IS_WRAPPED_COMMONJS;
4450
- parentMeta.isRequiredCommonJS[dependencyId] = isCommonJS;
4451
- }
4452
- }
4440
+ const isCommonJS = parentMeta.isRequiredCommonJS[dependencyId] = getTypeForFullyAnalyzedModule(dependencyId);
4453
4441
  const isWrappedCommonJS = isCommonJS === IS_WRAPPED_COMMONJS;
4454
4442
  fullyAnalyzedModules[dependencyId] = true;
4455
- const moduleInfo = isWrappedCommonJS && !isExternalWrapped ? rollupContext.getModuleInfo(dependencyId) : null;
4456
4443
  return {
4457
- wrappedModuleSideEffects: !isWrappedCommonJS ? false : moduleInfo?.moduleSideEffects ?? true,
4444
+ wrappedModuleSideEffects: isWrappedCommonJS && rollupContext.getModuleInfo(dependencyId).moduleSideEffects,
4458
4445
  source: sources[index].source,
4459
4446
  id: allowProxy ? wrapId$1(dependencyId, isWrappedCommonJS ? WRAPPED_SUFFIX : PROXY_SUFFIX) : dependencyId,
4460
4447
  isCommonJS
@@ -5138,7 +5125,6 @@ function commonjs(options$1 = {}) {
5138
5125
  }
5139
5126
  if (isWrappedId(id, EXTERNAL_SUFFIX)) {
5140
5127
  const actualId = unwrapId$1(id, EXTERNAL_SUFFIX);
5141
- if (actualId.startsWith("node:")) return getExternalBuiltinRequireProxy(actualId);
5142
5128
  return getUnknownRequireProxy(actualId, isEsmExternal(actualId) ? getRequireReturnsDefault(actualId) : true);
5143
5129
  }
5144
5130
  if (id.endsWith(ENTRY_SUFFIX)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite",
3
- "version": "7.1.11",
3
+ "version": "7.1.12",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Evan You",
@@ -86,7 +86,7 @@
86
86
  "@polka/compression": "^1.0.0-next.25",
87
87
  "@rolldown/pluginutils": "^1.0.0-beta.43",
88
88
  "@rollup/plugin-alias": "^5.1.1",
89
- "@rollup/plugin-commonjs": "^28.0.8",
89
+ "@rollup/plugin-commonjs": "28.0.6",
90
90
  "@rollup/plugin-dynamic-import-vars": "2.1.4",
91
91
  "@rollup/pluginutils": "^5.3.0",
92
92
  "@types/escape-html": "^1.0.4",