Skip to content

Commit

Permalink
feat(react): redo build chain
Browse files Browse the repository at this point in the history
fix UMD build configuration
  • Loading branch information
Jakub Freisler committed May 23, 2021
1 parent 4b7a927 commit 2551470
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"exports": "./dist/index.modern.js",
"scripts": {
"start": "react-scripts start",
"build": "microbundle --globals react=React,react/jsx-runtime=jsx",
"build": "microbundle --globals react=React",
"postbuild": "microbundle --tsconfig tsconfig.umd.json --globals react=React --format umd",
"reactbuild": "react-scripts build",
"test": "yarn watch:test --watchAll=false",
"watch:test": "react-scripts test",
Expand Down
26 changes: 26 additions & 0 deletions packages/react/tsconfig.umd.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"extends": "../../tsconfig.json",
"include": [
"src/*"
],
"compilerOptions": {
"module": "esnext",
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"resolveJsonModule": true,
"moduleResolution": "node",
"isolatedModules": true,
"jsx": "react",
"jsxFactory": "React.createElement",
"noEmit": true,
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true
}
}

0 comments on commit 2551470

Please sign in to comment.