Skip to content

Commit aa7ffb3

Browse files
committed
Build create-wmr using the same Rollup config as wmr.
1 parent f022159 commit aa7ffb3

File tree

3 files changed

+58
-1283
lines changed

3 files changed

+58
-1283
lines changed

packages/create-wmr/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "./dist/index.js",
66
"bin": "./dist/index.js",
77
"scripts": {
8-
"prepare": "microbundle --target node -f cjs --no-sourcemap --compress --external none src/index.js"
8+
"prepare": "rollup -c ../wmr/rollup.config.js -i src/index.js -o dist/index.js"
99
},
1010
"author": "The Preact Authors (https://preactjs.com)",
1111
"repository": "preactjs/wmr",
@@ -17,7 +17,6 @@
1717
"devDependencies": {
1818
"@types/node": "^14.14.8",
1919
"kleur": "^4.1.3",
20-
"microbundle": "^0.13.0",
2120
"ora": "^5.1.0",
2221
"pkg-install": "^1.0.0",
2322
"sade": "^1.7.4"

packages/wmr/rollup.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Note:
3+
* This Rollup config is used to build both the `wmr` and `create-wmr` packages.
4+
*/
15
import { resolve, sep } from 'path';
26
import shebangPlugin from 'rollup-plugin-preserve-shebang';
37
import commonjs from '@rollup/plugin-commonjs';

0 commit comments

Comments
 (0)