File tree 2 files changed +5
-5
lines changed
packages/vite/src/node/plugins
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ const cssLangs = `\\.(css|less|sass|scss|styl|stylus|postcss)($|\\?)`
79
79
const cssLangRE = new RegExp ( cssLangs )
80
80
const cssModuleRE = new RegExp ( `\\.module${ cssLangs } ` )
81
81
const directRequestRE = / ( \? | & ) d i r e c t \b /
82
- const commjsProxyRE = / \? c o m m o n j s - p r o x y /
82
+ const commonjsProxyRE = / \? c o m m o n j s - p r o x y /
83
83
84
84
export const isCSSRequest = ( request : string ) =>
85
85
cssLangRE . test ( request ) && ! directRequestRE . test ( request )
@@ -120,7 +120,7 @@ export function cssPlugin(config: ResolvedConfig): Plugin {
120
120
} ,
121
121
122
122
async transform ( raw , id ) {
123
- if ( ! cssLangRE . test ( id ) || commjsProxyRE . test ( id ) ) {
123
+ if ( ! cssLangRE . test ( id ) || commonjsProxyRE . test ( id ) ) {
124
124
return
125
125
}
126
126
@@ -217,7 +217,7 @@ export function cssPostPlugin(config: ResolvedConfig): Plugin {
217
217
name : 'vite:css-post' ,
218
218
219
219
transform ( css , id , ssr ) {
220
- if ( ! cssLangRE . test ( id ) || commjsProxyRE . test ( id ) ) {
220
+ if ( ! cssLangRE . test ( id ) || commonjsProxyRE . test ( id ) ) {
221
221
return
222
222
}
223
223
@@ -269,7 +269,7 @@ export function cssPostPlugin(config: ResolvedConfig): Plugin {
269
269
if (
270
270
! isCSSRequest ( id ) ||
271
271
cssModuleRE . test ( id ) ||
272
- commjsProxyRE . test ( id )
272
+ commonjsProxyRE . test ( id )
273
273
) {
274
274
isPureCssChunk = false
275
275
}
Original file line number Diff line number Diff line change @@ -353,7 +353,7 @@ export function tryNodeResolve(
353
353
) {
354
354
return { id : resolved }
355
355
}
356
- // if we reach here, it's a valid dep import that hasn't been optimzied .
356
+ // if we reach here, it's a valid dep import that hasn't been optimized .
357
357
const isJsType = OPTIMIZABLE_ENTRY_RE . test ( resolved )
358
358
const exclude = server . config . optimizeDeps ?. exclude
359
359
if (
You can’t perform that action at this time.
0 commit comments