Skip to content

Commit 2b692be

Browse files
committed
refactor: simplify loader-compat output
1 parent 0b2162e commit 2b692be

File tree

5 files changed

+3
-159
lines changed

5 files changed

+3
-159
lines changed

pnpm-lock.yaml

Lines changed: 0 additions & 155 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rspack/loader-compat/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
"dev": "rspack dev"
99
},
1010
"dependencies": {
11-
"@node-rs/crc32": "1.10.6",
1211
"react": "^19.2.4"
1312
},
1413
"devDependencies": {

rspack/loader-compat/rspack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ const config = {
102102
{
103103
loader: 'node-loader',
104104
options: {
105-
name: '[path][name].[ext]',
105+
name: '[name].[ext]',
106106
},
107107
},
108108
],

rspack/loader-compat/src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import c from './c.scss';
44
import d from './d.yaml';
55
import './e.styl';
66
import Icon from 'svg-react-loader?name=Icon!./arco.svg';
7-
import crc32 from '@node-rs/crc32';
87
import g from './g.md';
98
import h from './h.png';
109
import j from './j.txt';
1110
import k from './k.ts';
1211
import l from './l.png';
1312
import { ReactComponent as Logo } from './logo.svg';
13+
import addon from './test.darwin.node';
1414

1515
console.log({
1616
a,
@@ -24,5 +24,5 @@ console.log({
2424
k,
2525
l,
2626
Icon,
27-
crc32,
27+
addon,
2828
});
57.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)