File tree Expand file tree Collapse file tree 12 files changed +17
-176
lines changed Expand file tree Collapse file tree 12 files changed +17
-176
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,6 @@ export type { TransformOptions as EsbuildTransformOptions } from 'esbuild'
147
147
export type { ESBuildOptions , ESBuildTransformResult } from './plugins/esbuild'
148
148
export type { Manifest , ManifestChunk } from './plugins/manifest'
149
149
export type { ResolveOptions , InternalResolveOptions } from './plugins/resolve'
150
- export type { SplitVendorChunkCache } from './plugins/splitVendorChunk'
151
150
export type { TerserOptions } from './plugins/terser'
152
151
153
152
export type {
Original file line number Diff line number Diff line change @@ -6,12 +6,13 @@ import {
6
6
escapeRegex ,
7
7
flattenId ,
8
8
isBuiltin ,
9
+ isCSSRequest ,
9
10
isExternalUrl ,
10
11
moduleListContains ,
11
12
normalizePath ,
12
13
} from '../utils'
13
14
import { browserExternalId , optionalPeerDepId } from '../plugins/resolve'
14
- import { isCSSRequest , isModuleCSSRequest } from '../plugins/css'
15
+ import { isModuleCSSRequest } from '../plugins/css'
15
16
import type { Environment } from '../environment'
16
17
import { createBackCompatIdResolver } from '../idResolver'
17
18
Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ import {
71
71
getPackageManagerCommand ,
72
72
getPkgName ,
73
73
injectQuery ,
74
+ isCSSRequest ,
74
75
isDataUrl ,
75
76
isExternalUrl ,
76
77
isObject ,
@@ -256,9 +257,6 @@ type CssLang =
256
257
| keyof typeof PreprocessLang
257
258
| keyof typeof PostCssDialectLang
258
259
259
- export const isCSSRequest = ( request : string ) : boolean =>
260
- CSS_LANGS_RE . test ( request )
261
-
262
260
export const isModuleCSSRequest = ( request : string ) : boolean =>
263
261
cssModuleRE . test ( request )
264
262
Original file line number Diff line number Diff line change @@ -2,9 +2,8 @@ import { transform } from 'esbuild'
2
2
import { TraceMap , decodedMap , encodedMap } from '@jridgewell/trace-mapping'
3
3
import type { ResolvedConfig } from '../config'
4
4
import type { Plugin } from '../plugin'
5
- import { escapeRegex } from '../utils'
5
+ import { escapeRegex , isCSSRequest } from '../utils'
6
6
import type { Environment } from '../environment'
7
- import { isCSSRequest } from './css'
8
7
import { isHTMLRequest } from './html'
9
8
10
9
const nonJsRe = / \. j s o n (?: $ | \? ) /
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import {
17
17
encodeURIPath ,
18
18
generateCodeFrame ,
19
19
getHash ,
20
+ isCSSRequest ,
20
21
isDataUrl ,
21
22
isExternalUrl ,
22
23
normalizePath ,
@@ -40,7 +41,7 @@ import {
40
41
publicAssetUrlRE ,
41
42
urlToBuiltUrl ,
42
43
} from './asset'
43
- import { cssBundleNameCache , isCSSRequest } from './css'
44
+ import { cssBundleNameCache } from './css'
44
45
import { modulePreloadPolyfillId } from './modulePreloadPolyfill'
45
46
46
47
interface ScriptAssetsUrl {
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ import {
36
36
getHash ,
37
37
injectQuery ,
38
38
isBuiltin ,
39
+ isCSSRequest ,
39
40
isDataUrl ,
40
41
isDefined ,
41
42
isExternalUrl ,
@@ -67,7 +68,7 @@ import {
67
68
} from '../../shared/utils'
68
69
import type { TransformPluginContext } from '../server/pluginContainer'
69
70
import { throwOutdatedRequest } from './optimizedDeps'
70
- import { isCSSRequest , isDirectCSSRequest } from './css'
71
+ import { isDirectCSSRequest } from './css'
71
72
import { browserExternalId } from './resolve'
72
73
import { serializeDefine } from './define'
73
74
import { WORKER_FILE_ID } from './worker'
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -12,16 +12,12 @@ export {
12
12
defaultAllowedOrigins ,
13
13
} from './constants'
14
14
export { version as esbuildVersion } from 'esbuild'
15
- export {
16
- splitVendorChunkPlugin ,
17
- splitVendorChunk ,
18
- isCSSRequest ,
19
- } from './plugins/splitVendorChunk'
20
15
export {
21
16
normalizePath ,
22
17
mergeConfig ,
23
18
mergeAlias ,
24
19
createFilter ,
20
+ isCSSRequest ,
25
21
rollupVersion ,
26
22
} from './utils'
27
23
export { perEnvironmentPlugin } from './plugin'
Original file line number Diff line number Diff line change @@ -10,10 +10,9 @@ import type {
10
10
InvokeSendData ,
11
11
} from '../../shared/invokeMethods'
12
12
import { CLIENT_DIR } from '../constants'
13
- import { createDebugger , normalizePath } from '../utils'
13
+ import { createDebugger , isCSSRequest , normalizePath } from '../utils'
14
14
import type { InferCustomEventPayload , ViteDevServer } from '..'
15
15
import { getHookHandler } from '../plugins'
16
- import { isCSSRequest } from '../plugins/css'
17
16
import { isExplicitImportRequired } from '../plugins/importAnalysis'
18
17
import { getEnvFilesForMode } from '../env'
19
18
import type { Environment } from '../environment'
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ import {
32
32
fsPathFromId ,
33
33
getHash ,
34
34
injectQuery ,
35
+ isCSSRequest ,
35
36
isDevServer ,
36
37
isJSRequest ,
37
38
joinUrlSegments ,
@@ -40,7 +41,6 @@ import {
40
41
stripBase ,
41
42
} from '../../utils'
42
43
import { checkPublicFile } from '../../publicDir'
43
- import { isCSSRequest } from '../../plugins/css'
44
44
import { getCodeWithSourcemap , injectSourcesContent } from '../sourcemap'
45
45
import { cleanUrl , unwrapId , wrapId } from '../../../shared/utils'
46
46
import { getNodeAssetAttributes } from '../../assetSource'
You can’t perform that action at this time.
0 commit comments