Skip to content

Commit 90289dc

Browse files
committed
Hack: run microbundle twice to ensure inlined pretty-format is transpiled
1 parent d1e66dc commit 90289dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"scripts": {
1111
"build": "npm run -s transpile && npm run -s transpile:jsx && npm run -s copy-typescript-definition",
1212
"transpile": "echo 'export const ENABLE_PRETTY = false;'>env.js && microbundle src/index.js -f es,umd --target web --external none",
13-
"transpile:jsx": "echo 'export const ENABLE_PRETTY = true;'>env.js && microbundle src/jsx.js -o dist/jsx.js --target web --external pretty-format",
13+
"transpile:jsx": "echo 'export const ENABLE_PRETTY = true;'>env.js && microbundle src/jsx.js -o dist/jsx.js --target web --external none && microbundle dist/jsx.js -o dist/jsx.js -f cjs",
1414
"copy-typescript-definition": "copyfiles -f src/index.d.ts dist",
1515
"test": "eslint src test && mocha --compilers js:babel-register test/**/*.js",
1616
"prepublish": "npm run build",

0 commit comments

Comments
 (0)