Skip to content

Commit f7b979d

Browse files
committed
chore: update
1 parent 16367c1 commit f7b979d

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

packages/core/src/css/LibCssExtractPlugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
AUTO_PUBLIC_PATH,
55
BASE_URI,
66
SINGLE_DOT_PATH_SEGMENT,
7-
} from './libCssExtractLoader';
7+
} from './const';
88
import { getUndoPath } from './utils';
99

1010
const pluginName = 'LIB_CSS_EXTRACT_PLUGIN';

packages/core/src/css/const.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export const BASE_URI = 'webpack://';
2+
export const MODULE_TYPE = 'css/mini-extract';
3+
export const AUTO_PUBLIC_PATH = '__mini_css_extract_plugin_public_path_auto__';
4+
export const ABSOLUTE_PUBLIC_PATH: string = `${BASE_URI}/mini-css-extract-plugin/`;
5+
export const SINGLE_DOT_PATH_SEGMENT =
6+
'__mini_css_extract_plugin_single_dot_path_segment__';

packages/core/src/css/libCssExtractLoader.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,14 @@
77
*/
88
import path, { extname } from 'node:path';
99
import type { Rspack } from '@rsbuild/core';
10-
import { type CssLoaderOptionsAuto, isCssModulesFile } from './utils';
11-
12-
export const BASE_URI = 'webpack://';
13-
export const MODULE_TYPE = 'css/mini-extract';
14-
export const AUTO_PUBLIC_PATH = '__mini_css_extract_plugin_public_path_auto__';
15-
export const ABSOLUTE_PUBLIC_PATH: string = `${BASE_URI}/mini-css-extract-plugin/`;
16-
export const SINGLE_DOT_PATH_SEGMENT =
17-
'__mini_css_extract_plugin_single_dot_path_segment__';
10+
import {
11+
ABSOLUTE_PUBLIC_PATH,
12+
AUTO_PUBLIC_PATH,
13+
BASE_URI,
14+
SINGLE_DOT_PATH_SEGMENT,
15+
} from './const';
1816

17+
import { type CssLoaderOptionsAuto, isCssModulesFile } from './utils';
1918
interface DependencyDescription {
2019
identifier: string;
2120
content: string;

0 commit comments

Comments
 (0)