vite.config-no-polyfills.js — vite Source File
Architecture documentation for vite.config-no-polyfills.js, a javascript file in the vite codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 01273348_cdc7_7931_d373_23ca1047137d["vite.config-no-polyfills.js"] 51e96894_3556_ed5c_1ede_97d449867adf["node:path"] 01273348_cdc7_7931_d373_23ca1047137d --> 51e96894_3556_ed5c_1ede_97d449867adf cf687cc4_e681_5bde_69ac_ab4303d465f7["plugin-legacy"] 01273348_cdc7_7931_d373_23ca1047137d --> cf687cc4_e681_5bde_69ac_ab4303d465f7 54c37fea_4fe7_2693_71cb_1276b77f55f9["vite"] 01273348_cdc7_7931_d373_23ca1047137d --> 54c37fea_4fe7_2693_71cb_1276b77f55f9 style 01273348_cdc7_7931_d373_23ca1047137d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import path from 'node:path'
import legacy from '@vitejs/plugin-legacy'
import { defineConfig } from 'vite'
export default defineConfig(({ isPreview }) => ({
base: !isPreview ? './' : '/no-polyfills/',
plugins: [
legacy({
renderModernChunks: false,
polyfills: false,
}),
{
name: 'remove crossorigin attribute',
transformIndexHtml: (html) => html.replaceAll('crossorigin', ''),
enforce: 'post',
},
],
build: {
outDir: 'dist/no-polyfills',
rollupOptions: {
input: {
index: path.resolve(import.meta.dirname, 'no-polyfills.html'),
},
},
},
}))
Dependencies
- node:path
- plugin-legacy
- vite
Source
Frequently Asked Questions
What does vite.config-no-polyfills.js do?
vite.config-no-polyfills.js is a source file in the vite codebase, written in javascript.
What does vite.config-no-polyfills.js depend on?
vite.config-no-polyfills.js imports 3 module(s): node:path, plugin-legacy, vite.
Where is vite.config-no-polyfills.js in the architecture?
vite.config-no-polyfills.js is located at playground/legacy/vite.config-no-polyfills.js (directory: playground/legacy).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free