Skip to content

Commit 0ef9841

Browse files
committed
chore: fix local dev script
1 parent 3f218a6 commit 0ef9841

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

packages/react-pages/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"build-client": "tsc -p src/client",
4040
"dev": "rimraf ./dist && concurrently \"npm:dev-*\"",
4141
"dev-node": "tsc -w -p src/node",
42+
"dev-node-esm": "rollup -c -w",
4243
"dev-client": "tsc -w -p src/client",
4344
"prepare": "npm run build"
4445
},

packages/react-pages/rollup.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ export default {
2626
format: 'esm',
2727
sourcemap: true,
2828
},
29+
// keep using tsc to build dist/node (cjs version) instead of rollup for now...
30+
// I prefer using tsc if possiable
2931
// {
30-
// dir: 'dist-cjs',
32+
// dir: 'dist/node',
3133
// format: 'cjs',
3234
// sourcemap: true,
3335
// },

0 commit comments

Comments
 (0)