Comparing version 0.0.3 to 0.0.4
{ | ||
"name": "forgo", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"main": "./dist" | ||
} |
@@ -57,1 +57,33 @@ # forgo | ||
## Building | ||
Forgo uses the latest JSX createElement factory changes, so you might need to enable this with Babel. More details here: https://babeljs.io/docs/en/babel-plugin-transform-react-jsx | ||
For your babel config: | ||
```json | ||
{ | ||
"plugins": [ | ||
[ | ||
"@babel/plugin-transform-react-jsx", | ||
{ | ||
"throwIfNamespace": false, | ||
"runtime": "automatic", | ||
"importSource": "forgo" | ||
} | ||
] | ||
] | ||
} | ||
``` | ||
If you're using TypeScript, add the following lines to your tsconfig.json file. | ||
```json | ||
{ | ||
"compilerOptions": { | ||
// other stuff... | ||
"jsx": "react-jsx", | ||
"jsxImportSource": "forgo" | ||
}, | ||
} | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49465
88