https://github.com/tinchoz49/parcel-plugin-surplus
A parcel plugin to compile your Surplus JSX views
https://github.com/tinchoz49/parcel-plugin-surplus
jsx parcel parcel-plugin surplus
Last synced: about 2 months ago
JSON representation
A parcel plugin to compile your Surplus JSX views
- Host: GitHub
- URL: https://github.com/tinchoz49/parcel-plugin-surplus
- Owner: tinchoz49
- License: mit
- Created: 2018-02-12T20:27:14.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-03T20:33:27.000Z (about 6 years ago)
- Last Synced: 2025-04-19T20:21:01.906Z (2 months ago)
- Topics: jsx, parcel, parcel-plugin, surplus
- Language: JavaScript
- Size: 195 KB
- Stars: 11
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Parcel Surplus Plugin
> A parcel plugin to compile your [Surplus](https://github.com/adamhaile/surplus) JSX views.[](https://travis-ci.com/tinchoz49/parcel-plugin-surplus)
[](https://github.com/standard/standard)## Usage
```
$ npm install --save-dev parcel-plugin-surplus
```
## For TypeScript users
To work with TypeScript it's necessary to add in your tsconfig.json the `jsxFactory` prop:
```json
{
"compilerOptions": {
...
"jsx": "preserve",
"jsxFactory": "Surplus",
}
}
```