@knot/rollup-plugin
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

@knot/rollup-plugin

npm code style: prettier lerna semantic-release Commitizen friendly standard-readme compliant

CircleCI

A rollup plugin to automatically handle parsing and transforming knot 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

@effervescentia

Contributing

PRs accepted.

Small note: If editing the README, please conform to the standard-readme specification.

License

MIT © 2019 Ben Teichman

Readme

Keywords

none

Package Sidebar

Install

npm i @knot/rollup-plugin

Weekly Downloads

0

Version

1.1.0

License

MIT

Unpacked Size

9.13 kB

Total Files

6

Last publish

Collaborators

  • effervescentia