File tree Expand file tree Collapse file tree 14 files changed +12
-173
lines changed Expand file tree Collapse file tree 14 files changed +12
-173
lines changed Original file line number Diff line number Diff line change 3838 },
3939 "dependencies" : {
4040 "@rsbuild/core" : " 1.0.8" ,
41- "@rslib/lib-css-extract-loader" : " workspace:*" ,
4241 "rsbuild-plugin-dts" : " workspace:*"
4342 },
4443 "devDependencies" : {
4544 "@rslib/tsconfig" : " workspace:*" ,
45+ "@rspack/core" : " 1.0.8" ,
4646 "@types/fs-extra" : " ^11.0.4" ,
4747 "commander" : " ^12.1.0" ,
4848 "fast-glob" : " ^3.3.2" ,
Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ export default defineConfig({
1212 } ,
1313 ] ,
1414 source : {
15+ entry : {
16+ index : './src/index.ts' ,
17+ libCssExtractLoader : './src/css/libCssExtractLoader.ts' ,
18+ } ,
1519 define : {
1620 RSLIB_VERSION : JSON . stringify ( require ( './package.json' ) . version ) ,
1721 } ,
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ import {
2323 composeCssConfig ,
2424 cssExternalHandler ,
2525 isCssGlobalFile ,
26- } from './cssConfig' ;
26+ } from './css/ cssConfig' ;
2727import { pluginCjsShim } from './plugins/cjsShim' ;
2828import type {
2929 AutoExternal ,
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 11import { createRequire } from 'node:module' ;
22import path from 'node:path' ;
33import type { RsbuildConfig , RsbuildPlugin } from '@rsbuild/core' ;
4- import { RemoveCssExtractAssetPlugin } from '@rslib/lib-css-extract-loader/plugin ' ;
5- import { CSS_EXTENSIONS_PATTERN } from './constant ' ;
4+ import { CSS_EXTENSIONS_PATTERN } from '../constant ' ;
5+ import { RemoveCssExtractAssetPlugin } from './removeCssExtractAssetPlugin ' ;
66
77const require = createRequire ( import . meta. url ) ;
88const CSS_MODULE_REG = / \. m o d u l e \. \w + $ / i;
@@ -114,7 +114,7 @@ const pluginLibCss = (rootDir: string): RsbuildPlugin => ({
114114 if ( rule . uses . has ( CHAIN_ID . USE . MINI_CSS_EXTRACT ) ) {
115115 rule
116116 . use ( CHAIN_ID . USE . MINI_CSS_EXTRACT )
117- . loader ( require . resolve ( '@rslib/lib-css-extract-loader ' ) )
117+ . loader ( require . resolve ( './libCssExtractLoader.js ' ) )
118118 . options ( {
119119 rootDir,
120120 } ) ;
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments