Skip to content

Commit cf7a9dd

Browse files
fix: use relative paths in rsbuild-plugin rollup config
Match the path format used by other packages like data-prefetch which use 'packages/package-name/src/...' relative paths. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 01f3b2b commit cf7a9dd

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

packages/rsbuild-plugin/rollup.config.js

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
const copy = require('rollup-plugin-copy');
2-
const path = require('path');
32

43
module.exports = (rollupConfig, _projectOptions) => {
54
rollupConfig.plugins.push(
@@ -17,18 +16,9 @@ module.exports = (rollupConfig, _projectOptions) => {
1716
rollupConfig.external = [/@module-federation/, '@rsbuild/core'];
1817

1918
rollupConfig.input = {
20-
index: path.resolve(
21-
process.cwd(),
22-
'./packages/rsbuild-plugin/src/cli/index.ts',
23-
),
24-
utils: path.resolve(
25-
process.cwd(),
26-
'./packages/rsbuild-plugin/src/utils/index.ts',
27-
),
28-
constant: path.resolve(
29-
process.cwd(),
30-
'./packages/rsbuild-plugin/src/constant.ts',
31-
),
19+
index: 'packages/rsbuild-plugin/src/cli/index.ts',
20+
utils: 'packages/rsbuild-plugin/src/utils/index.ts',
21+
constant: 'packages/rsbuild-plugin/src/constant.ts',
3222
};
3323

3424
rollupConfig.output.forEach((output) => {

0 commit comments

Comments
 (0)