diff --git a/packages/plugin-legacy/src/index.ts b/packages/plugin-legacy/src/index.ts index c4a648753128ac..974e07d13d83e3 100644 --- a/packages/plugin-legacy/src/index.ts +++ b/packages/plugin-legacy/src/index.ts @@ -545,7 +545,7 @@ function viteLegacyPlugin(options: Options = {}): Plugin[] { configFile: false, compact: !!config.build.minify, sourceMaps, - inputSourceMap: undefined, // sourceMaps ? chunk.map : undefined, `.map` TODO: moved to OutputChunk? + inputSourceMap: undefined, presets: [ // forcing our plugin to run before preset-env by wrapping it in a // preset so we can catch the injected import statements... diff --git a/packages/vite/src/node/plugins/asset.ts b/packages/vite/src/node/plugins/asset.ts index c0f5015e86842e..e62ead24a0e20c 100644 --- a/packages/vite/src/node/plugins/asset.ts +++ b/packages/vite/src/node/plugins/asset.ts @@ -388,7 +388,7 @@ async function fileToBuiltUrl( }) generatedAssets.get(config)!.set(referenceId, { originalFileName }) - url = `__VITE_ASSET__${referenceId}__${postfix ? `$_${postfix}__` : ``}` // TODO_BASE + url = `__VITE_ASSET__${referenceId}__${postfix ? `$_${postfix}__` : ``}` } cache.set(id, url) diff --git a/packages/vite/src/node/ssr/ssrManifestPlugin.ts b/packages/vite/src/node/ssr/ssrManifestPlugin.ts index a60397419a13bd..7818e4759d74b4 100644 --- a/packages/vite/src/node/ssr/ssrManifestPlugin.ts +++ b/packages/vite/src/node/ssr/ssrManifestPlugin.ts @@ -19,7 +19,7 @@ import { export function ssrManifestPlugin(config: ResolvedConfig): Plugin { // module id => preload assets mapping const ssrManifest: Record = {} - const base = config.base // TODO:base + const base = config.base return { name: 'vite:ssr-manifest', @@ -78,7 +78,7 @@ export function ssrManifestPlugin(config: ResolvedConfig): Plugin { const chunk = bundle[filename] as OutputChunk | undefined if (chunk) { chunk.viteMetadata!.importedCss.forEach((file) => { - deps.push(joinUrlSegments(base, file)) // TODO:base + deps.push(joinUrlSegments(base, file)) }) chunk.imports.forEach(addDeps) }