MCPcopy
hub / github.com/vitejs/vite / enableSourceMapsInWatchModePlugin

Function enableSourceMapsInWatchModePlugin

packages/vite/rolldown.config.ts:170–179  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

168// #region Plugins
169
170function enableSourceMapsInWatchModePlugin(): Plugin {
171 return {
172 name: 'enable-source-maps',
173 outputOptions(options) {
174 if (this.meta.watchMode && !disableSourceMap) {
175 options.sourcemap = 'inline'
176 }
177 },
178 }
179}
180
181function writeTypesPlugin(): Plugin {
182 return {

Callers 1

rolldown.config.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected