rollup-plugin-external-jsx
Converts JSX files to modules:
; Component { return template; }
Installation
npm i rollup-plugin-external-jsx -D
Usage
;; ;
Options
header
Import the DOM library to use for JSX rendered script.
In a React Component template, we are going import the React.createElement
:
Or we can use any other Virtual/Incremental dom library. For example, using the JSX with IncrementalDOM (via babel-plugin-incremental-dom) will require the IDOM helpers:
include
A glob (or a list of globs) of files to process.
exclude
A glob (or a list of globs) of files to not process.
License
MIT © Edoardo Cavazza