vite.config-relative-base.js — vite Source File
Architecture documentation for vite.config-relative-base.js, a javascript file in the vite codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 3e851277_3d41_3d04_e0ea_5d16fbb3f676["vite.config-relative-base.js"] 21773861_3e8d_df41_79a7_889aeee438a8["worker-plugin-test-plugin.js"] 3e851277_3d41_3d04_e0ea_5d16fbb3f676 --> 21773861_3e8d_df41_79a7_889aeee438a8 54c37fea_4fe7_2693_71cb_1276b77f55f9["vite"] 3e851277_3d41_3d04_e0ea_5d16fbb3f676 --> 54c37fea_4fe7_2693_71cb_1276b77f55f9 style 3e851277_3d41_3d04_e0ea_5d16fbb3f676 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { defineConfig } from 'vite'
import workerPluginTestPlugin from './worker-plugin-test-plugin'
export default defineConfig(({ isPreview }) => ({
base: !isPreview ? './' : '/relative-base/',
resolve: {
alias: {
'@': import.meta.dirname,
},
},
worker: {
format: 'es',
plugins: () => [workerPluginTestPlugin()],
rollupOptions: {
output: {
assetFileNames: 'worker-assets/worker_asset-[name]-[hash].[ext]',
chunkFileNames: 'worker-chunks/worker_chunk-[name]-[hash].js',
entryFileNames: 'worker-entries/worker_entry-[name]-[hash].js',
},
},
},
build: {
outDir: 'dist/relative-base',
assetsInlineLimit: (filePath) =>
filePath.endsWith('.svg') ? false : undefined,
rollupOptions: {
output: {
assetFileNames: 'other-assets/[name]-[hash].[ext]',
chunkFileNames: 'chunks/[name]-[hash].js',
entryFileNames: 'entries/[name]-[hash].js',
},
},
},
plugins: [
workerPluginTestPlugin(),
{
name: 'resolve-format-es',
transform(code, id) {
if (id.includes('main.js')) {
return code.replace(
`/* flag: will replace in vite config import("./format-es.js") */`,
`import("./main-format-es")`,
)
}
},
},
],
cacheDir: 'node_modules/.vite-relative-base',
}))
Domain
Dependencies
Source
Frequently Asked Questions
What does vite.config-relative-base.js do?
vite.config-relative-base.js is a source file in the vite codebase, written in javascript. It belongs to the ViteCore domain.
What does vite.config-relative-base.js depend on?
vite.config-relative-base.js imports 2 module(s): vite, worker-plugin-test-plugin.js.
Where is vite.config-relative-base.js in the architecture?
vite.config-relative-base.js is located at playground/worker/vite.config-relative-base.js (domain: ViteCore, directory: playground/worker).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free