File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed
Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change 1- import { babelTransform , compile , BabelOptions } from '@macaron-css/integration' ;
1+ import {
2+ babelTransform ,
3+ compile ,
4+ BabelOptions ,
5+ } from '@macaron-css/integration' ;
26import { processVanillaFile } from '@vanilla-extract/integration' ;
37import fs from 'fs' ;
48import { join , resolve } from 'path' ;
5- import { normalizePath , PluginOption , ResolvedConfig , ViteDevServer } from 'vite' ;
9+ import {
10+ normalizePath ,
11+ PluginOption ,
12+ ResolvedConfig ,
13+ ViteDevServer ,
14+ } from 'vite' ;
615
716const extractedCssFileFilter = / e x t r a c t e d _ ( .* ) \. c s s \. t s ( \? u s e d ) ? $ / ;
817
9- export function macaronVitePlugin ( options ?: { babel ?: BabelOptions } ) : PluginOption {
18+ export function macaronVitePlugin ( options ?: {
19+ babel ?: BabelOptions ;
20+ } ) : PluginOption {
1021 let config : ResolvedConfig ;
1122 let server : ViteDevServer ;
1223 const cssMap = new Map < string , string > ( ) ;
@@ -219,6 +230,7 @@ export function macaronVitePlugin(options?: { babel?: BabelOptions }): PluginOpt
219230
220231 return {
221232 code,
233+ map : { mappings : '' } ,
222234 } ;
223235 }
224236
You can’t perform that action at this time.
0 commit comments