vite 6.0.5 → 6.0.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.

Potentially problematic release.


This version of vite might be problematic. Click here for more details.

@@ -9459,7 +9459,7 @@ function findNearestMainPackageData(basedir, packageCache) {
9459
9459
  ));
9460
9460
  }
9461
9461
  function loadPackageData(pkgPath) {
9462
- const data = JSON.parse(fs__default.readFileSync(pkgPath, "utf-8"));
9462
+ const data = JSON.parse(stripBomTag(fs__default.readFileSync(pkgPath, "utf-8")));
9463
9463
  const pkgDir = normalizePath$3(path$d.dirname(pkgPath));
9464
9464
  const { sideEffects } = data;
9465
9465
  let hasSideEffects;
@@ -31133,23 +31133,28 @@ async function ssrTransformScript(code, inMap, url, originalCode) {
31133
31133
  function defineImport(index, importNode, metadata) {
31134
31134
  const source = importNode.source.value;
31135
31135
  deps.add(source);
31136
+ const metadataArg = (metadata?.importedNames?.length ?? 0) > 0 ? `, ${JSON.stringify(metadata)}` : "";
31136
31137
  const importId = `__vite_ssr_import_${uid++}__`;
31137
- if (metadata && (metadata.importedNames == null || metadata.importedNames.length === 0)) {
31138
- metadata = void 0;
31139
- }
31140
- const metadataStr = metadata ? `, ${JSON.stringify(metadata)}` : "";
31141
- s.update(
31142
- importNode.start,
31143
- importNode.end,
31144
- `const ${importId} = await ${ssrImportKey}(${JSON.stringify(
31145
- source
31146
- )}${metadataStr});
31147
- `
31148
- );
31149
- if (importNode.start === index) {
31150
- hoistIndex = importNode.end;
31151
- } else {
31138
+ const transformedImport = `const ${importId} = await ${ssrImportKey}(${JSON.stringify(
31139
+ source
31140
+ )}${metadataArg});`;
31141
+ s.update(importNode.start, importNode.end, transformedImport);
31142
+ const nonWhitespaceRegex = /\S/g;
31143
+ nonWhitespaceRegex.lastIndex = index;
31144
+ nonWhitespaceRegex.exec(code);
31145
+ if (importNode.start > nonWhitespaceRegex.lastIndex) {
31152
31146
  s.move(importNode.start, importNode.end, index);
31147
+ } else {
31148
+ hoistIndex = importNode.end;
31149
+ }
31150
+ let linesSpanned = 1;
31151
+ for (let i = importNode.start; i < importNode.end; i++) {
31152
+ if (code[i] === "\n") {
31153
+ linesSpanned++;
31154
+ }
31155
+ }
31156
+ if (linesSpanned > 1) {
31157
+ s.prependRight(importNode.end, "\n".repeat(linesSpanned - 1));
31153
31158
  }
31154
31159
  return importId;
31155
31160
  }
@@ -48677,8 +48682,8 @@ function createCachedImport(imp) {
48677
48682
  return cached;
48678
48683
  };
48679
48684
  }
48680
- const importPostcssImport = createCachedImport(() => import('./dep-CrWUFq3l.js').then(function (n) { return n.i; }));
48681
- const importPostcssModules = createCachedImport(() => import('./dep-pSQn2Hds.js').then(function (n) { return n.i; }));
48685
+ const importPostcssImport = createCachedImport(() => import('./dep-BGGf7Pd3.js').then(function (n) { return n.i; }));
48686
+ const importPostcssModules = createCachedImport(() => import('./dep-Dt4uNHQP.js').then(function (n) { return n.i; }));
48682
48687
  const importPostcss = createCachedImport(() => import('postcss'));
48683
48688
  const preprocessorWorkerControllerCache = /* @__PURE__ */ new WeakMap();
48684
48689
  let alwaysFakeWorkerWorkerControllerCache;
@@ -49713,8 +49718,7 @@ const importLightningCSS = createCachedImport(() => import('lightningcss'));
49713
49718
  async function compileLightningCSS(id, src, environment, urlReplacer) {
49714
49719
  const { config } = environment;
49715
49720
  const deps = /* @__PURE__ */ new Set();
49716
- const filename = cleanUrl(path$d.relative(config.root, id));
49717
- const toAbsolute = (filePath) => path$d.isAbsolute(filePath) ? filePath : path$d.join(config.root, filePath);
49721
+ const filename = id.replace("\0", NULL_BYTE_PLACEHOLDER);
49718
49722
  let res;
49719
49723
  try {
49720
49724
  res = styleAttrRE.test(id) ? (await importLightningCSS()).transformStyleAttribute({
@@ -49726,15 +49730,14 @@ async function compileLightningCSS(id, src, environment, urlReplacer) {
49726
49730
  }) : await (await importLightningCSS()).bundleAsync({
49727
49731
  ...config.css.lightningcss,
49728
49732
  filename,
49733
+ // projectRoot is needed to get stable hash when using CSS modules
49734
+ projectRoot: config.root,
49729
49735
  resolver: {
49730
49736
  read(filePath) {
49731
49737
  if (filePath === filename) {
49732
49738
  return src;
49733
49739
  }
49734
- if (!filePath.endsWith(".css")) {
49735
- return src;
49736
- }
49737
- return fs__default.readFileSync(toAbsolute(filePath), "utf-8");
49740
+ return fs__default.readFileSync(filePath, "utf-8");
49738
49741
  },
49739
49742
  async resolve(id2, from) {
49740
49743
  const publicFile = checkPublicFile(
@@ -49746,7 +49749,7 @@ async function compileLightningCSS(id, src, environment, urlReplacer) {
49746
49749
  }
49747
49750
  const resolved = await getAtImportResolvers(
49748
49751
  environment.getTopLevelConfig()
49749
- ).css(environment, id2, toAbsolute(from));
49752
+ ).css(environment, id2, from);
49750
49753
  if (resolved) {
49751
49754
  deps.add(resolved);
49752
49755
  return resolved;
@@ -49761,12 +49764,14 @@ async function compileLightningCSS(id, src, environment, urlReplacer) {
49761
49764
  });
49762
49765
  } catch (e) {
49763
49766
  e.message = `[lightningcss] ${e.message}`;
49764
- e.loc = {
49765
- file: toAbsolute(e.fileName),
49766
- line: e.loc.line,
49767
- column: e.loc.column - 1
49768
- // 1-based
49769
- };
49767
+ if (e.loc) {
49768
+ e.loc = {
49769
+ file: e.fileName.replace(NULL_BYTE_PLACEHOLDER, "\0"),
49770
+ line: e.loc.line,
49771
+ column: e.loc.column - 1
49772
+ // 1-based
49773
+ };
49774
+ }
49770
49775
  throw e;
49771
49776
  }
49772
49777
  let css = decoder.decode(res.code);
@@ -49777,7 +49782,10 @@ async function compileLightningCSS(id, src, environment, urlReplacer) {
49777
49782
  if (skipUrlReplacer(dep.url)) {
49778
49783
  replaceUrl = dep.url;
49779
49784
  } else if (urlReplacer) {
49780
- replaceUrl = await urlReplacer(dep.url, toAbsolute(dep.loc.filePath));
49785
+ replaceUrl = await urlReplacer(
49786
+ dep.url,
49787
+ dep.loc.filePath.replace(NULL_BYTE_PLACEHOLDER, "\0")
49788
+ );
49781
49789
  } else {
49782
49790
  replaceUrl = dep.url;
49783
49791
  }
@@ -51382,10 +51390,11 @@ async function fetchModule(environment, url, importer, options = {}) {
51382
51390
  if (url.startsWith("data:") || isBuiltin(url)) {
51383
51391
  return { externalize: url, type: "builtin" };
51384
51392
  }
51385
- if (isExternalUrl(url)) {
51393
+ const isFileUrl = url.startsWith("file://");
51394
+ if (isExternalUrl(url) && !isFileUrl) {
51386
51395
  return { externalize: url, type: "network" };
51387
51396
  }
51388
- if (importer && url[0] !== "." && url[0] !== "/") {
51397
+ if (!isFileUrl && importer && url[0] !== "." && url[0] !== "/") {
51389
51398
  const { isProduction, root } = environment.config;
51390
51399
  const { externalConditions, dedupe, preserveSymlinks } = environment.config.resolve;
51391
51400
  const resolved = tryNodeResolve(url, importer, {
@@ -51413,7 +51422,7 @@ async function fetchModule(environment, url, importer, options = {}) {
51413
51422
  const type = isFilePathESM(resolved.id, environment.config.packageCache) ? "module" : "commonjs";
51414
51423
  return { externalize: file, type };
51415
51424
  }
51416
- if (!importer) {
51425
+ if (isFileUrl || !importer) {
51417
51426
  const resolved = await environment.pluginContainer.resolveId(url);
51418
51427
  if (!resolved) {
51419
51428
  throw new Error(`[vite] cannot find entry point module '${url}'.`);
@@ -51421,8 +51430,8 @@ async function fetchModule(environment, url, importer, options = {}) {
51421
51430
  url = normalizeResolvedIdToUrl(environment, url, resolved);
51422
51431
  }
51423
51432
  url = unwrapId$1(url);
51424
- let mod = await environment.moduleGraph.getModuleByUrl(url);
51425
- const cached = !!mod?.transformResult;
51433
+ const mod = await environment.moduleGraph.ensureEntryFromUrl(url);
51434
+ const cached = !!mod.transformResult;
51426
51435
  if (options.cached && cached) {
51427
51436
  return { cache: true };
51428
51437
  }
@@ -51432,12 +51441,6 @@ async function fetchModule(environment, url, importer, options = {}) {
51432
51441
  `[vite] transform failed for module '${url}'${importer ? ` imported from '${importer}'` : ""}.`
51433
51442
  );
51434
51443
  }
51435
- mod ??= await environment.moduleGraph.getModuleByUrl(url);
51436
- if (!mod) {
51437
- throw new Error(
51438
- `[vite] cannot find module '${url}' ${importer ? ` imported from '${importer}'` : ""}.`
51439
- );
51440
- }
51441
51444
  if (options.inlineSourceMap !== false) {
51442
51445
  result = inlineSourceMap(mod, result, options.startOffset);
51443
51446
  }
@@ -1,4 +1,4 @@
1
- import { N as getDefaultExportFromCjs } from './dep-BZMjGe_U.js';
1
+ import { N as getDefaultExportFromCjs } from './dep-0AosnpPU.js';
2
2
  import require$$0 from 'path';
3
3
  import { l as lib } from './dep-3RmXg9uo.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { O as commonjsGlobal, N as getDefaultExportFromCjs } from './dep-BZMjGe_U.js';
1
+ import { O as commonjsGlobal, N as getDefaultExportFromCjs } from './dep-0AosnpPU.js';
2
2
  import require$$0$2 from 'fs';
3
3
  import require$$0 from 'postcss';
4
4
  import require$$0$1 from 'path';
package/dist/node/cli.js CHANGED
@@ -2,7 +2,7 @@ import path from 'node:path';
2
2
  import fs__default from 'node:fs';
3
3
  import { performance } from 'node:perf_hooks';
4
4
  import { EventEmitter } from 'events';
5
- import { M as colors, G as createLogger, r as resolveConfig } from './chunks/dep-BZMjGe_U.js';
5
+ import { M as colors, G as createLogger, r as resolveConfig } from './chunks/dep-0AosnpPU.js';
6
6
  import { VERSION } from './constants.js';
7
7
  import 'node:fs/promises';
8
8
  import 'node:url';
@@ -740,7 +740,7 @@ cli.command("[root]", "start dev server").alias("serve").alias("dev").option("--
740
740
  `[boolean] force the optimizer to ignore the cache and re-bundle`
741
741
  ).action(async (root, options) => {
742
742
  filterDuplicateOptions(options);
743
- const { createServer } = await import('./chunks/dep-BZMjGe_U.js').then(function (n) { return n.Q; });
743
+ const { createServer } = await import('./chunks/dep-0AosnpPU.js').then(function (n) { return n.Q; });
744
744
  try {
745
745
  const server = await createServer({
746
746
  root,
@@ -833,7 +833,7 @@ cli.command("build [root]", "build for production").option("--target <target>",
833
833
  ).option("-w, --watch", `[boolean] rebuilds when modules have changed on disk`).option("--app", `[boolean] same as \`builder: {}\``).action(
834
834
  async (root, options) => {
835
835
  filterDuplicateOptions(options);
836
- const { createBuilder } = await import('./chunks/dep-BZMjGe_U.js').then(function (n) { return n.R; });
836
+ const { createBuilder } = await import('./chunks/dep-0AosnpPU.js').then(function (n) { return n.R; });
837
837
  const buildOptions = cleanGlobalCLIOptions(
838
838
  cleanBuilderCLIOptions(options)
839
839
  );
@@ -868,7 +868,7 @@ cli.command("optimize [root]", "pre-bundle dependencies").option(
868
868
  ).action(
869
869
  async (root, options) => {
870
870
  filterDuplicateOptions(options);
871
- const { optimizeDeps } = await import('./chunks/dep-BZMjGe_U.js').then(function (n) { return n.P; });
871
+ const { optimizeDeps } = await import('./chunks/dep-0AosnpPU.js').then(function (n) { return n.P; });
872
872
  try {
873
873
  const config = await resolveConfig(
874
874
  {
@@ -894,7 +894,7 @@ ${e.stack}`),
894
894
  cli.command("preview [root]", "locally preview production build").option("--host [host]", `[string] specify hostname`, { type: [convertHost] }).option("--port <port>", `[number] specify port`).option("--strictPort", `[boolean] exit if specified port is already in use`).option("--open [path]", `[boolean | string] open browser on startup`).option("--outDir <dir>", `[string] output directory (default: dist)`).action(
895
895
  async (root, options) => {
896
896
  filterDuplicateOptions(options);
897
- const { preview } = await import('./chunks/dep-BZMjGe_U.js').then(function (n) { return n.S; });
897
+ const { preview } = await import('./chunks/dep-0AosnpPU.js').then(function (n) { return n.S; });
898
898
  try {
899
899
  const server = await preview({
900
900
  root,
@@ -2464,16 +2464,15 @@ interface PackageData {
2464
2464
  interface BuildEnvironmentOptions {
2465
2465
  /**
2466
2466
  * Compatibility transform target. The transform is performed with esbuild
2467
- * and the lowest supported target is es2015/es6. Note this only handles
2468
- * syntax transformation and does not cover polyfills (except for dynamic
2469
- * import)
2467
+ * and the lowest supported target is es2015. Note this only handles
2468
+ * syntax transformation and does not cover polyfills
2470
2469
  *
2471
- * Default: 'modules' - Similar to `@babel/preset-env`'s targets.esmodules,
2472
- * transpile targeting browsers that natively support dynamic es module imports.
2473
- * https://caniuse.com/es6-module-dynamic-import
2470
+ * Default: 'modules' - transpile targeting browsers that natively support
2471
+ * dynamic es module imports and `import.meta`
2472
+ * (Chrome 87+, Firefox 78+, Safari 14+, Edge 88+).
2474
2473
  *
2475
2474
  * Another special value is 'esnext' - which only performs minimal transpiling
2476
- * (for minification compat) and assumes native dynamic imports support.
2475
+ * (for minification compat).
2477
2476
  *
2478
2477
  * For custom targets, see https://esbuild.github.io/api/#target and
2479
2478
  * https://esbuild.github.io/content-types/#javascript for more details.
@@ -1,6 +1,6 @@
1
1
  export { parseAst, parseAstAsync } from 'rollup/parseAst';
2
- import { i as isInNodeModules, a as arraify } from './chunks/dep-BZMjGe_U.js';
3
- export { B as BuildEnvironment, D as DevEnvironment, f as build, m as buildErrorMessage, g as createBuilder, C as createFilter, h as createIdResolver, G as createLogger, n as createRunnableDevEnvironment, c as createServer, w as createServerHotChannel, v as createServerModuleRunner, d as defineConfig, u as fetchModule, j as formatPostcssSourceMap, J as isFileLoadingAllowed, I as isFileServingAllowed, q as isRunnableDevEnvironment, l as loadConfigFromFile, K as loadEnv, A as mergeAlias, z as mergeConfig, x as moduleRunnerTransform, y as normalizePath, o as optimizeDeps, p as perEnvironmentPlugin, b as perEnvironmentState, k as preprocessCSS, e as preview, r as resolveConfig, L as resolveEnvPrefix, E as rollupVersion, H as searchForWorkspaceRoot, F as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-BZMjGe_U.js';
2
+ import { i as isInNodeModules, a as arraify } from './chunks/dep-0AosnpPU.js';
3
+ export { B as BuildEnvironment, D as DevEnvironment, f as build, m as buildErrorMessage, g as createBuilder, C as createFilter, h as createIdResolver, G as createLogger, n as createRunnableDevEnvironment, c as createServer, w as createServerHotChannel, v as createServerModuleRunner, d as defineConfig, u as fetchModule, j as formatPostcssSourceMap, J as isFileLoadingAllowed, I as isFileServingAllowed, q as isRunnableDevEnvironment, l as loadConfigFromFile, K as loadEnv, A as mergeAlias, z as mergeConfig, x as moduleRunnerTransform, y as normalizePath, o as optimizeDeps, p as perEnvironmentPlugin, b as perEnvironmentState, k as preprocessCSS, e as preview, r as resolveConfig, L as resolveEnvPrefix, E as rollupVersion, H as searchForWorkspaceRoot, F as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-0AosnpPU.js';
4
4
  export { DEFAULT_CLIENT_CONDITIONS as defaultClientConditions, DEFAULT_CLIENT_MAIN_FIELDS as defaultClientMainFields, DEFAULT_SERVER_CONDITIONS as defaultServerConditions, DEFAULT_SERVER_MAIN_FIELDS as defaultServerMainFields, VERSION as version } from './constants.js';
5
5
  export { version as esbuildVersion } from 'esbuild';
6
6
  import 'node:fs';
@@ -183,7 +183,6 @@ declare class ModuleRunner {
183
183
  private readonly envProxy;
184
184
  private readonly transport;
185
185
  private readonly resetSourceMapSupport?;
186
- private readonly root;
187
186
  private readonly concurrentModuleNodePromises;
188
187
  private closed;
189
188
  constructor(options: ModuleRunnerOptions, evaluator?: ModuleEvaluator, debug?: ModuleRunnerDebugger | undefined);
@@ -272,8 +271,9 @@ interface ModuleRunnerHmr {
272
271
  interface ModuleRunnerOptions {
273
272
  /**
274
273
  * Root of the project
274
+ * @deprecated not used and to be removed
275
275
  */
276
- root: string;
276
+ root?: string;
277
277
  /**
278
278
  * A set of methods to communicate with the server.
279
279
  */
@@ -85,11 +85,7 @@ const isAbsolute = function(p) {
85
85
  }, dirname = function(p) {
86
86
  const segments = normalizeWindowsPath(p).replace(/\/$/, "").split("/").slice(0, -1);
87
87
  return segments.length === 1 && _DRIVE_LETTER_RE.test(segments[0]) && (segments[0] += "/"), segments.join("/") || (isAbsolute(p) ? "/" : ".");
88
- };
89
- function normalizeAbsoluteUrl(url, root) {
90
- return url = slash(url), url.startsWith("file://") && (url = decodeURI(url.slice(isWindows ? 8 : 7))), url.startsWith(root) && (url = url.slice(root.length - 1)), url;
91
- }
92
- const decodeBase64 = typeof atob < "u" ? atob : (str) => Buffer.from(str, "base64").toString("utf-8"), CHAR_FORWARD_SLASH = 47, CHAR_BACKWARD_SLASH = 92, percentRegEx = /%/g, backslashRegEx = /\\/g, newlineRegEx = /\n/g, carriageReturnRegEx = /\r/g, tabRegEx = /\t/g, questionRegex = /\?/g, hashRegex = /#/g;
88
+ }, decodeBase64 = typeof atob < "u" ? atob : (str) => Buffer.from(str, "base64").toString("utf-8"), CHAR_FORWARD_SLASH = 47, CHAR_BACKWARD_SLASH = 92, percentRegEx = /%/g, backslashRegEx = /\\/g, newlineRegEx = /\n/g, carriageReturnRegEx = /\r/g, tabRegEx = /\t/g, questionRegex = /\?/g, hashRegex = /#/g;
93
89
  function encodePathChars(filepath) {
94
90
  return filepath.indexOf("%") !== -1 && (filepath = filepath.replace(percentRegEx, "%25")), !isWindows && filepath.indexOf("\\") !== -1 && (filepath = filepath.replace(backslashRegEx, "%5C")), filepath.indexOf(`
95
91
  `) !== -1 && (filepath = filepath.replace(newlineRegEx, "%0A")), filepath.indexOf("\r") !== -1 && (filepath = filepath.replace(carriageReturnRegEx, "%0D")), filepath.indexOf(" ") !== -1 && (filepath = filepath.replace(tabRegEx, "%09")), filepath;
@@ -1072,9 +1068,7 @@ class ESModulesEvaluator {
1072
1068
  }
1073
1069
  class ModuleRunner {
1074
1070
  constructor(options, evaluator = new ESModulesEvaluator(), debug) {
1075
- this.options = options, this.evaluator = evaluator, this.debug = debug;
1076
- const root = this.options.root;
1077
- if (this.root = root[root.length - 1] === "/" ? root : `${root}/`, this.evaluatedModules = options.evaluatedModules ?? new EvaluatedModules(), this.transport = normalizeModuleRunnerTransport(options.transport), options.hmr !== !1) {
1071
+ if (this.options = options, this.evaluator = evaluator, this.debug = debug, this.evaluatedModules = options.evaluatedModules ?? new EvaluatedModules(), this.transport = normalizeModuleRunnerTransport(options.transport), options.hmr !== !1) {
1078
1072
  const optionsHmr = options.hmr ?? !0, resolvedHmrLogger = optionsHmr === !0 || optionsHmr.logger === void 0 ? hmrLogger : optionsHmr.logger === !1 ? silentConsole : optionsHmr.logger;
1079
1073
  if (this.hmrClient = new HMRClient(
1080
1074
  resolvedHmrLogger,
@@ -1100,7 +1094,6 @@ class ModuleRunner {
1100
1094
  });
1101
1095
  transport;
1102
1096
  resetSourceMapSupport;
1103
- root;
1104
1097
  concurrentModuleNodePromises = /* @__PURE__ */ new Map();
1105
1098
  closed = !1;
1106
1099
  /**
@@ -1177,7 +1170,6 @@ ${getStack()}`
1177
1170
  }
1178
1171
  }
1179
1172
  async cachedModule(url, importer) {
1180
- url = normalizeAbsoluteUrl(url, this.root);
1181
1173
  let cached = this.concurrentModuleNodePromises.get(url);
1182
1174
  if (cached)
1183
1175
  this.debug?.("[module runner] using cached module info for", url);
@@ -3484,7 +3484,7 @@ function resolvePackageData(pkgName, basedir, preserveSymlinks = false, packageC
3484
3484
  return null;
3485
3485
  }
3486
3486
  function loadPackageData(pkgPath) {
3487
- const data = JSON.parse(fs$1.readFileSync(pkgPath, "utf-8"));
3487
+ const data = JSON.parse(stripBomTag(fs$1.readFileSync(pkgPath, "utf-8")));
3488
3488
  const pkgDir = normalizePath(path$1.dirname(pkgPath));
3489
3489
  const { sideEffects } = data;
3490
3490
  let hasSideEffects;
@@ -3766,6 +3766,12 @@ function normalizeSingleAlias({
3766
3766
  }
3767
3767
  return alias;
3768
3768
  }
3769
+ function stripBomTag(content) {
3770
+ if (content.charCodeAt(0) === 65279) {
3771
+ return content.slice(1);
3772
+ }
3773
+ return content;
3774
+ }
3769
3775
 
3770
3776
  const CSS_LANGS_RE = (
3771
3777
  // eslint-disable-next-line regexp/no-unused-capturing-group
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite",
3
- "version": "6.0.5",
3
+ "version": "6.0.6",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Evan You",
@@ -72,7 +72,7 @@
72
72
  "funding": "https://github.com/vitejs/vite?sponsor=1",
73
73
  "//": "READ CONTRIBUTING.md to understand what to put under deps vs. devDeps!",
74
74
  "dependencies": {
75
- "esbuild": "0.24.0",
75
+ "esbuild": "^0.24.2",
76
76
  "postcss": "^8.4.49",
77
77
  "rollup": "^4.23.0"
78
78
  },
@@ -6,7 +6,7 @@ import type DartSass from 'sass'
6
6
  import type SassEmbedded from 'sass-embedded'
7
7
  // @ts-ignore `less` may not be installed
8
8
  import type Less from 'less'
9
- // @ts-ignore `less` may not be installed
9
+ // @ts-ignore `stylus` may not be installed
10
10
  import type Stylus from 'stylus'
11
11
 
12
12
  /* eslint-enable @typescript-eslint/ban-ts-comment */
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable @typescript-eslint/ban-ts-comment */
2
2
 
3
- // @ts-ignore `sass` may not be installed
3
+ // @ts-ignore `lightningcss` may not be installed
4
4
  import type Lightningcss from 'lightningcss'
5
5
 
6
6
  /* eslint-enable @typescript-eslint/ban-ts-comment */