Skip to content

Commit

Permalink
refacor(create-rsbuild): use Rslib to bundle package (#3316)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan authored Aug 29, 2024
1 parent 7d538be commit 713e02a
Show file tree
Hide file tree
Showing 6 changed files with 340 additions and 138 deletions.
4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@
},
"pnpm": {
"overrides": {
"@rsbuild/core": "link:packages/core",
"@rsbuild/plugin-less": "link:packages/plugin-less",
"@rsbuild/plugin-react": "link:packages/plugin-react",
"@rsbuild/plugin-sass": "link:packages/plugin-sass",
"esbuild": "~0.19.0"
}
}
Expand Down
7 changes: 0 additions & 7 deletions packages/create-rsbuild/modern.config.ts

This file was deleted.

5 changes: 3 additions & 2 deletions packages/create-rsbuild/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@
"dist"
],
"scripts": {
"build": "modern build",
"dev": "modern build --watch",
"build": "rslib build",
"dev": "rslib build --watch",
"start": "node ./dist/index.js"
},
"devDependencies": {
"@rslib/core": "0.0.3",
"@types/node": "18.x",
"typescript": "^5.5.2"
},
Expand Down
8 changes: 8 additions & 0 deletions packages/create-rsbuild/rslib.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { defineConfig } from '@rslib/core';

export default defineConfig({
lib: [{ format: 'esm' }],
output: {
target: 'node',
},
});
Loading

0 comments on commit 713e02a

Please sign in to comment.