@knot/rollup-plugin
A
rollup
plugin to automatically handle parsing and transformingknot
code.
Integrate knot
into your existing rollup
build easily using this plugin.
Table of Contents
Install
npm install @knot/rollup-plugin
# or
yarn add @knot/rollup-plugin
Usage
In order to use knot
modules with rollup
, add the plugin to your existing configuration.
// rollup.config.js
import knotPlugin from '@knot/rollup-plugin';
export default {
plugins: [
// add the knot plugin to your existing configuration
knotPlugin()
]
};
You will now be able to import a .kn
file from any normal javascript file.
When running rollup
, these files will be automatically converted into native javascript modules.
There is also a more robust example.
Maintainers
Contributing
PRs accepted.
Small note: If editing the README, please conform to the standard-readme specification.
License
MIT © 2019 Ben Teichman