@alien-dom/node
v0.9.2
Published
Hook into the Node.js module loader to compile `alien-dom` components and JSX elements on-the-fly.
Downloads
9
Readme
@alien-dom/node
Hook into the Node.js module loader to compile alien-dom
components and JSX elements on-the-fly.
Useful for test runners like AVA.
node --loader @alien-dom/node [...]
Usage with AVA
Test your components with the AVA test runner.
NODE_OPTIONS="--loader @alien-dom/node" ava --watch
In your package.json, make sure you have this AVA configuration:
{
"ava": {
"extensions": {
"tsx": "module"
}
}
}