vite 3.0.0-alpha.11 → 3.0.0-alpha.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.
@@ -12061,6 +12061,7 @@ function printCommonServerUrls(server, options, config) {
12061
12061
  }
12062
12062
  function printServerUrls(hostname, protocol, port, base, info) {
12063
12063
  const urls = [];
12064
+ const notes = [];
12064
12065
  if (hostname.host && loopbackHosts.has(hostname.host)) {
12065
12066
  let hostnameName = hostname.name;
12066
12067
  if (hostnameName === '::1' ||
@@ -12072,9 +12073,9 @@ function printServerUrls(hostname, protocol, port, base, info) {
12072
12073
  url: colors$1.cyan(`${protocol}://${hostnameName}:${colors$1.bold(port)}${base}`)
12073
12074
  });
12074
12075
  if (hostname.name === 'localhost') {
12075
- urls.push({
12076
- label: 'Network',
12077
- url: colors$1.dim(`use ${colors$1.white(colors$1.bold('--host'))} to expose`)
12076
+ notes.push({
12077
+ label: 'Hint',
12078
+ message: colors$1.dim(`Use ${colors$1.white(colors$1.bold('--host'))} to expose to network.`)
12078
12079
  });
12079
12080
  }
12080
12081
  }
@@ -12094,16 +12095,22 @@ function printServerUrls(hostname, protocol, port, base, info) {
12094
12095
  urls.push({ label, url: colors$1.cyan(url) });
12095
12096
  });
12096
12097
  }
12097
- const length = urls.reduce((length, { label }) => Math.max(length, label.length), 0);
12098
+ if (!hostname.host || wildcardHosts.has(hostname.host)) {
12099
+ notes.push({
12100
+ label: 'Note',
12101
+ message: colors$1.dim('You are using a wildcard host. Ports might be overridden.')
12102
+ });
12103
+ }
12104
+ const length = Math.max(...[...urls, ...notes].map(({ label }) => label.length));
12098
12105
  const print = (iconWithColor, label, messageWithColor) => {
12099
12106
  info(` ${iconWithColor} ${colors$1.bold(label)}: ${' '.repeat(length - label.length)}${messageWithColor}`);
12100
12107
  };
12101
12108
  urls.forEach(({ label, url: text }) => {
12102
12109
  print(colors$1.green('➜'), label, text);
12103
12110
  });
12104
- if (!hostname.host || wildcardHosts.has(hostname.host)) {
12105
- print(colors$1.bold(colors$1.blue('')), 'Note', colors$1.dim('You are using a wildcard host. Ports might be overriden.'));
12106
- }
12111
+ notes.forEach(({ label, message: text }) => {
12112
+ print(colors$1.white(''), label, text);
12113
+ });
12107
12114
  }
12108
12115
 
12109
12116
  const writeColors = {
@@ -15447,6 +15454,23 @@ function esbuildDepPlugin(qualified, exportsData, config) {
15447
15454
  const resolver = kind.startsWith('require') ? _resolveRequire : _resolve;
15448
15455
  return resolver(id, _importer, undefined);
15449
15456
  };
15457
+ const resolveResult = (id, resolved) => {
15458
+ if (resolved.startsWith(browserExternalId)) {
15459
+ return {
15460
+ path: id,
15461
+ namespace: 'browser-external'
15462
+ };
15463
+ }
15464
+ if (isExternalUrl(resolved)) {
15465
+ return {
15466
+ path: resolved,
15467
+ external: true
15468
+ };
15469
+ }
15470
+ return {
15471
+ path: path$p.resolve(resolved)
15472
+ };
15473
+ };
15450
15474
  return {
15451
15475
  name: 'vite:dep-pre-bundle',
15452
15476
  setup(build) {
@@ -15510,21 +15534,7 @@ function esbuildDepPlugin(qualified, exportsData, config) {
15510
15534
  // use vite's own resolver
15511
15535
  const resolved = await resolve(id, importer, kind);
15512
15536
  if (resolved) {
15513
- if (resolved.startsWith(browserExternalId)) {
15514
- return {
15515
- path: id,
15516
- namespace: 'browser-external'
15517
- };
15518
- }
15519
- if (isExternalUrl(resolved)) {
15520
- return {
15521
- path: resolved,
15522
- external: true
15523
- };
15524
- }
15525
- return {
15526
- path: path$p.resolve(resolved)
15527
- };
15537
+ return resolveResult(id, resolved);
15528
15538
  }
15529
15539
  });
15530
15540
  // For entry files, we'll read it ourselves and construct a proxy module
@@ -15599,10 +15609,14 @@ module.exports = Object.create(new Proxy({}, {
15599
15609
  });
15600
15610
  // yarn 2 pnp compat
15601
15611
  if (isRunningWithYarnPnp) {
15602
- build.onResolve({ filter: /.*/ }, async ({ path, importer, kind, resolveDir }) => ({
15612
+ build.onResolve({ filter: /.*/ }, async ({ path: id, importer, kind, resolveDir, namespace }) => {
15613
+ const resolved = await resolve(id, importer, kind,
15603
15614
  // pass along resolveDir for entries
15604
- path: await resolve(path, importer, kind, resolveDir)
15605
- }));
15615
+ namespace === 'dep' ? resolveDir : undefined);
15616
+ if (resolved) {
15617
+ return resolveResult(id, resolved);
15618
+ }
15619
+ });
15606
15620
  build.onLoad({ filter: /.*/ }, async (args) => ({
15607
15621
  contents: await promises.readFile(args.path),
15608
15622
  loader: 'default'
@@ -28089,10 +28103,16 @@ async function fileToBuiltUrl(id, config, pluginContext, skipPublicCheck = false
28089
28103
  const { search, hash } = parse$m(id);
28090
28104
  const postfix = (search || '') + (hash || '');
28091
28105
  const output = config.build?.rollupOptions?.output;
28092
- const assetFileNames = (output && !Array.isArray(output) ? output.assetFileNames : undefined) ??
28093
- // defaults to '<assetsDir>/[name].[hash][extname]'
28094
- // slightly different from rollup's one ('assets/[name]-[hash][extname]')
28095
- path$p.posix.join(config.build.assetsDir, '[name].[hash][extname]');
28106
+ const defaultAssetFileNames = path$p.posix.join(config.build.assetsDir, '[name].[hash][extname]');
28107
+ // Steps to determine which assetFileNames will be actually used.
28108
+ // First, if output is an object or string, use assetFileNames in it.
28109
+ // And a default assetFileNames as fallback.
28110
+ let assetFileNames = (output && !Array.isArray(output) ? output.assetFileNames : undefined) ??
28111
+ defaultAssetFileNames;
28112
+ if (output && Array.isArray(output)) {
28113
+ // Second, if output is an array, adopt assetFileNames in the first object.
28114
+ assetFileNames = output[0].assetFileNames ?? assetFileNames;
28115
+ }
28096
28116
  const fileName = assetFileNamesToFileName(assetFileNames, file, contentHash, content);
28097
28117
  if (!map.has(contentHash)) {
28098
28118
  map.set(contentHash, fileName);
@@ -29981,6 +30001,7 @@ function depsLogString(qualifiedIds) {
29981
30001
  * the metadata and start the server without waiting for the optimizeDeps processing to be completed
29982
30002
  */
29983
30003
  async function runOptimizeDeps(resolvedConfig, depsInfo) {
30004
+ const isBuild = resolvedConfig.command === 'build';
29984
30005
  const config = {
29985
30006
  ...resolvedConfig,
29986
30007
  command: 'build'
@@ -30048,18 +30069,14 @@ async function runOptimizeDeps(resolvedConfig, depsInfo) {
30048
30069
  idToExports[id] = exportsData;
30049
30070
  flatIdToExports[flatId] = exportsData;
30050
30071
  }
30051
- const define = {
30052
- 'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV || config.mode)
30053
- };
30054
- for (const key in config.define) {
30055
- const value = config.define[key];
30056
- define[key] = typeof value === 'string' ? value : JSON.stringify(value);
30057
- }
30058
30072
  const start = performance.now();
30059
30073
  const result = await build$3({
30060
30074
  absWorkingDir: process.cwd(),
30061
30075
  entryPoints: Object.keys(flatIdDeps),
30062
30076
  bundle: true,
30077
+ // Ensure resolution is handled by esbuildDepPlugin and
30078
+ // avoid replacing `process.env.NODE_ENV` for 'browser'
30079
+ platform: 'neutral',
30063
30080
  format: 'esm',
30064
30081
  target: config.build.target || undefined,
30065
30082
  external: config.optimizeDeps?.exclude,
@@ -30067,9 +30084,8 @@ async function runOptimizeDeps(resolvedConfig, depsInfo) {
30067
30084
  splitting: true,
30068
30085
  sourcemap: true,
30069
30086
  outdir: processingCacheDir,
30070
- ignoreAnnotations: resolvedConfig.command !== 'build',
30087
+ ignoreAnnotations: !isBuild,
30071
30088
  metafile: true,
30072
- define,
30073
30089
  plugins: [
30074
30090
  ...plugins,
30075
30091
  esbuildDepPlugin(flatIdDeps, flatIdToExports, config)
@@ -30156,7 +30172,10 @@ function getOptimizedDepPath(id, config) {
30156
30172
  function getDepsCacheSuffix(config) {
30157
30173
  let suffix = '';
30158
30174
  if (config.command === 'build') {
30159
- suffix += '_build';
30175
+ // Differentiate build caches depending on outDir to allow parallel builds
30176
+ const { outDir } = config.build;
30177
+ const buildId = outDir.length > 8 || outDir.includes('/') ? getHash(outDir) : outDir;
30178
+ suffix += `_build-${buildId}`;
30160
30179
  if (config.build.ssr) {
30161
30180
  suffix += '_ssr';
30162
30181
  }
@@ -30355,7 +30374,6 @@ function getDepHash(config) {
30355
30374
  content += JSON.stringify({
30356
30375
  mode: process.env.NODE_ENV || config.mode,
30357
30376
  root: config.root,
30358
- define: config.define,
30359
30377
  resolve: config.resolve,
30360
30378
  buildTarget: config.build.target,
30361
30379
  assetsInclude: config.assetsInclude,
@@ -38365,7 +38383,7 @@ const assetAttrsConfig = {
38365
38383
  const isAsyncScriptMap = new WeakMap();
38366
38384
  async function traverseHtml(html, filePath, visitor) {
38367
38385
  // lazy load compiler
38368
- const { parse, transform } = await import('./dep-d6e255b8.js').then(function (n) { return n.c; });
38386
+ const { parse, transform } = await import('./dep-bb927dda.js').then(function (n) { return n.c; });
38369
38387
  // @vue/compiler-core doesn't like lowercase doctypes
38370
38388
  html = html.replace(/<!doctype\s/i, '<!DOCTYPE ');
38371
38389
  try {
@@ -38807,10 +38825,6 @@ function resolveHtmlTransforms(plugins) {
38807
38825
  return [preHooks, postHooks];
38808
38826
  }
38809
38827
  async function applyHtmlTransforms(html, hooks, ctx) {
38810
- const headTags = [];
38811
- const headPrependTags = [];
38812
- const bodyTags = [];
38813
- const bodyPrependTags = [];
38814
38828
  for (const hook of hooks) {
38815
38829
  const res = await hook(html, ctx);
38816
38830
  if (!res) {
@@ -38828,6 +38842,10 @@ async function applyHtmlTransforms(html, hooks, ctx) {
38828
38842
  html = res.html || html;
38829
38843
  tags = res.tags;
38830
38844
  }
38845
+ const headTags = [];
38846
+ const headPrependTags = [];
38847
+ const bodyTags = [];
38848
+ const bodyPrependTags = [];
38831
38849
  for (const tag of tags) {
38832
38850
  if (tag.injectTo === 'body') {
38833
38851
  bodyTags.push(tag);
@@ -38842,21 +38860,12 @@ async function applyHtmlTransforms(html, hooks, ctx) {
38842
38860
  headPrependTags.push(tag);
38843
38861
  }
38844
38862
  }
38863
+ html = injectToHead(html, headPrependTags, true);
38864
+ html = injectToHead(html, headTags);
38865
+ html = injectToBody(html, bodyPrependTags, true);
38866
+ html = injectToBody(html, bodyTags);
38845
38867
  }
38846
38868
  }
38847
- // inject tags
38848
- if (headPrependTags.length) {
38849
- html = injectToHead(html, headPrependTags, true);
38850
- }
38851
- if (headTags.length) {
38852
- html = injectToHead(html, headTags);
38853
- }
38854
- if (bodyPrependTags.length) {
38855
- html = injectToBody(html, bodyPrependTags, true);
38856
- }
38857
- if (bodyTags.length) {
38858
- html = injectToBody(html, bodyTags);
38859
- }
38860
38869
  return html;
38861
38870
  }
38862
38871
  const importRE = /\bimport\s*("[^"]*[^\\]"|'[^']*[^\\]');*/g;
@@ -38885,6 +38894,8 @@ const bodyInjectRE = /([ \t]*)<\/body>/i;
38885
38894
  const bodyPrependInjectRE = /([ \t]*)<body[^>]*>/i;
38886
38895
  const doctypePrependInjectRE = /<!doctype html>/i;
38887
38896
  function injectToHead(html, tags, prepend = false) {
38897
+ if (tags.length === 0)
38898
+ return html;
38888
38899
  if (prepend) {
38889
38900
  // inject as the first element of head
38890
38901
  if (headPrependInjectRE.test(html)) {
@@ -38906,6 +38917,8 @@ function injectToHead(html, tags, prepend = false) {
38906
38917
  return prependInjectFallback(html, tags);
38907
38918
  }
38908
38919
  function injectToBody(html, tags, prepend = false) {
38920
+ if (tags.length === 0)
38921
+ return html;
38909
38922
  if (prepend) {
38910
38923
  // inject after body open
38911
38924
  if (bodyPrependInjectRE.test(html)) {
@@ -39470,7 +39483,7 @@ async function compileCSS(id, code, config, urlReplacer, atImportResolvers, serv
39470
39483
  logger: config.logger
39471
39484
  }));
39472
39485
  if (isModule) {
39473
- postcssPlugins.unshift((await import('./dep-4e458630.js').then(function (n) { return n.i; })).default({
39486
+ postcssPlugins.unshift((await import('./dep-9b1a7a5b.js').then(function (n) { return n.i; })).default({
39474
39487
  ...modulesOptions,
39475
39488
  getJSON(cssFileName, _modules, outputFileName) {
39476
39489
  modules = _modules;
@@ -39524,7 +39537,9 @@ async function compileCSS(id, code, config, urlReplacer, atImportResolvers, serv
39524
39537
  else if (message.type === 'dir-dependency') {
39525
39538
  // https://github.com/postcss/postcss/blob/main/docs/guidelines/plugin.md#3-dependencies
39526
39539
  const { dir, glob: globPattern = '**' } = message;
39527
- const pattern = normalizePath$3(path$p.resolve(path$p.dirname(id), dir)) + `/` + globPattern;
39540
+ const pattern = out.escapePath(normalizePath$3(path$p.resolve(path$p.dirname(id), dir))) +
39541
+ `/` +
39542
+ globPattern;
39528
39543
  const files = out.sync(pattern, {
39529
39544
  ignore: ['**/node_modules/**']
39530
39545
  });
@@ -48710,7 +48725,7 @@ async function getCertificate(cacheDir) {
48710
48725
  return content;
48711
48726
  }
48712
48727
  catch {
48713
- const content = (await import('./dep-fb927717.js')).createCertificate();
48728
+ const content = (await import('./dep-82a07453.js')).createCertificate();
48714
48729
  promises
48715
48730
  .mkdir(cacheDir, { recursive: true })
48716
48731
  .then(() => promises.writeFile(cachePath, content))
@@ -55623,11 +55638,16 @@ function proxyMiddleware(httpServer, options, config) {
55623
55638
  opts = { target: opts, changeOrigin: true };
55624
55639
  }
55625
55640
  const proxy = httpProxy.createProxyServer(opts);
55626
- proxy.on('error', (err) => {
55641
+ proxy.on('error', (err, req, res) => {
55627
55642
  config.logger.error(`${colors$1.red(`http proxy error:`)}\n${err.stack}`, {
55628
55643
  timestamp: true,
55629
55644
  error: err
55630
55645
  });
55646
+ res
55647
+ .writeHead(500, {
55648
+ 'Content-Type': 'text/plain'
55649
+ })
55650
+ .end();
55631
55651
  });
55632
55652
  if (opts.configure) {
55633
55653
  opts.configure(proxy, opts);
@@ -60985,7 +61005,9 @@ async function resolveConfig(inlineConfig, command, defaultMode = 'development')
60985
61005
  worker: resolvedWorkerOptions,
60986
61006
  spa: config.spa ?? true
60987
61007
  };
60988
- // flat config.worker.plugin
61008
+ // Some plugins that aren't intended to work in the bundling of workers (doing post-processing at build time for example).
61009
+ // And Plugins may also have cached that could be corrupted by being used in these extra rollup calls.
61010
+ // So we need to separate the worker plugin from the plugin that vite needs to run.
60989
61011
  const [workerPrePlugins, workerNormalPlugins, workerPostPlugins] = sortUserPlugins(config.worker?.plugins);
60990
61012
  const workerResolved = {
60991
61013
  ...resolved,
@@ -61009,6 +61031,22 @@ async function resolveConfig(inlineConfig, command, defaultMode = 'development')
61009
61031
  `Note Vite now defaults to use esbuild for minification. If you still ` +
61010
61032
  `prefer Terser, set build.minify to "terser".`));
61011
61033
  }
61034
+ // Check if all assetFileNames have the same reference.
61035
+ // If not, display a warn for user.
61036
+ const outputOption = config.build?.rollupOptions?.output ?? [];
61037
+ // Use isArray to narrow its type to array
61038
+ if (Array.isArray(outputOption)) {
61039
+ const assetFileNamesList = outputOption.map((output) => output.assetFileNames);
61040
+ if (assetFileNamesList.length > 1) {
61041
+ const firstAssetFileNames = assetFileNamesList[0];
61042
+ const hasDifferentReference = assetFileNamesList.some((assetFileNames) => assetFileNames !== firstAssetFileNames);
61043
+ if (hasDifferentReference) {
61044
+ resolved.logger.warn(colors$1.yellow(`
61045
+ assetFileNames isn't equal for every build.rollupOptions.output. A single pattern across all outputs is supported by Vite.
61046
+ `));
61047
+ }
61048
+ }
61049
+ }
61012
61050
  return resolved;
61013
61051
  }
61014
61052
  /**
@@ -1,4 +1,4 @@
1
- import { x as commonjsGlobal } from './dep-46501b7a.js';
1
+ import { x as commonjsGlobal } from './dep-7d4129cb.js';
2
2
  import require$$1 from 'crypto';
3
3
  import 'fs';
4
4
  import 'path';
@@ -1,5 +1,5 @@
1
1
  import require$$0 from 'postcss';
2
- import { x as commonjsGlobal } from './dep-46501b7a.js';
2
+ import { x as commonjsGlobal } from './dep-7d4129cb.js';
3
3
  import path$2 from 'path';
4
4
  import require$$1 from 'crypto';
5
5
  import fs__default from 'fs';
@@ -1,4 +1,4 @@
1
- import { y as getAugmentedNamespace, z as getDefaultExportFromCjs } from './dep-46501b7a.js';
1
+ import { y as getAugmentedNamespace, z as getDefaultExportFromCjs } from './dep-7d4129cb.js';
2
2
 
3
3
  import { fileURLToPath as __cjs_fileURLToPath } from 'url';
4
4
  import { dirname as __cjs_dirname } from 'path';
package/dist/node/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { performance } from 'perf_hooks';
2
2
  import { EventEmitter } from 'events';
3
- import { w as colors, k as createLogger, e as resolveConfig } from './chunks/dep-46501b7a.js';
3
+ import { w as colors, k as createLogger, e as resolveConfig } from './chunks/dep-7d4129cb.js';
4
4
  import { VERSION } from './constants.js';
5
5
  import 'fs';
6
6
  import 'path';
@@ -683,7 +683,7 @@ cli
683
683
  .action(async (root, options) => {
684
684
  // output structure is preserved even after bundling so require()
685
685
  // is ok here
686
- const { createServer } = await import('./chunks/dep-46501b7a.js').then(function (n) { return n.C; });
686
+ const { createServer } = await import('./chunks/dep-7d4129cb.js').then(function (n) { return n.C; });
687
687
  try {
688
688
  const server = await createServer({
689
689
  root,
@@ -729,7 +729,7 @@ cli
729
729
  .option('--emptyOutDir', `[boolean] force empty outDir when it's outside of root`)
730
730
  .option('-w, --watch', `[boolean] rebuilds when modules have changed on disk`)
731
731
  .action(async (root, options) => {
732
- const { build } = await import('./chunks/dep-46501b7a.js').then(function (n) { return n.B; });
732
+ const { build } = await import('./chunks/dep-7d4129cb.js').then(function (n) { return n.B; });
733
733
  const buildOptions = cleanOptions(options);
734
734
  try {
735
735
  await build({
@@ -753,7 +753,7 @@ cli
753
753
  .command('optimize [root]', 'pre-bundle dependencies')
754
754
  .option('--force', `[boolean] force the optimizer to ignore the cache and re-bundle`)
755
755
  .action(async (root, options) => {
756
- const { optimizeDeps } = await import('./chunks/dep-46501b7a.js').then(function (n) { return n.A; });
756
+ const { optimizeDeps } = await import('./chunks/dep-7d4129cb.js').then(function (n) { return n.A; });
757
757
  try {
758
758
  const config = await resolveConfig({
759
759
  root,
@@ -776,7 +776,7 @@ cli
776
776
  .option('--https', `[boolean] use TLS + HTTP/2`)
777
777
  .option('--open [path]', `[boolean | string] open browser on startup`)
778
778
  .action(async (root, options) => {
779
- const { preview } = await import('./chunks/dep-46501b7a.js').then(function (n) { return n.D; });
779
+ const { preview } = await import('./chunks/dep-7d4129cb.js').then(function (n) { return n.D; });
780
780
  try {
781
781
  const server = await preview({
782
782
  root,
@@ -1,7 +1,7 @@
1
1
  import path, { resolve } from 'path';
2
2
  import { fileURLToPath } from 'url';
3
3
 
4
- var version = "3.0.0-alpha.11";
4
+ var version = "3.0.0-alpha.12";
5
5
 
6
6
  const VERSION = version;
7
7
  const DEFAULT_MAIN_FIELDS = [
@@ -1,4 +1,4 @@
1
- export { b as build, h as createFilter, k as createLogger, c as createServer, d as defineConfig, f as formatPostcssSourceMap, i as isDepsOptimizerEnabled, l as loadConfigFromFile, u as loadEnv, g as mergeAlias, m as mergeConfig, n as normalizePath, o as optimizeDeps, p as preview, e as resolveConfig, v as resolveEnvPrefix, a as resolvePackageData, r as resolvePackageEntry, q as searchForWorkspaceRoot, j as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-46501b7a.js';
1
+ export { b as build, h as createFilter, k as createLogger, c as createServer, d as defineConfig, f as formatPostcssSourceMap, i as isDepsOptimizerEnabled, l as loadConfigFromFile, u as loadEnv, g as mergeAlias, m as mergeConfig, n as normalizePath, o as optimizeDeps, p as preview, e as resolveConfig, v as resolveEnvPrefix, a as resolvePackageData, r as resolvePackageEntry, q as searchForWorkspaceRoot, j as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-7d4129cb.js';
2
2
  export { VERSION as version } from './constants.js';
3
3
  import 'fs';
4
4
  import 'path';
@@ -22,7 +22,7 @@ var require$$0__default = /*#__PURE__*/_interopDefaultLegacy(require$$0);
22
22
  var require$$0__default$1 = /*#__PURE__*/_interopDefaultLegacy(require$$0$1);
23
23
  var readline__default = /*#__PURE__*/_interopDefaultLegacy(readline);
24
24
 
25
- var version = "3.0.0-alpha.11";
25
+ var version = "3.0.0-alpha.12";
26
26
 
27
27
  const VERSION = version;
28
28
  const VITE_PACKAGE_DIR = path$3.resolve(url.fileURLToPath((typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('node-cjs/publicUtils.cjs', document.baseURI).href))), '../../..');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite",
3
- "version": "3.0.0-alpha.11",
3
+ "version": "3.0.0-alpha.12",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Evan You",
@@ -51,8 +51,8 @@
51
51
  "patch-types": "esno scripts/patchTypes.ts",
52
52
  "roll-types": "api-extractor run && rimraf temp",
53
53
  "check-dist-types": "tsc --project tsconfig.check.json",
54
- "lint": "eslint --ext .ts src/**",
55
- "format": "prettier --write --parser typescript \"src/**/*.ts\"",
54
+ "lint": "eslint --cache --ext .ts src/**",
55
+ "format": "prettier --write --cache --parser typescript \"src/**/*.ts\"",
56
56
  "prepublishOnly": "npm run build"
57
57
  },
58
58
  "//": "READ CONTRIBUTING.md to understand what to put under deps vs. devDeps!",