@wenyanlang/rollup-plugin

0.0.2 • Public • Published

wenyan-rollup-plugin

Rollup.js plugin for wenyan-lang

Install

npm i -D @wenyanlang/rollup-plugin @wenyanlang/core

Rollup Config

import wenyan from '@wenyanlang/rollup-plugin'

export default ({
  input: '圖靈機.wy',
  output: {
    file: 'dist/turing.js',
    format: 'cjs',
  },
  plugins: [
    wenyan({
      // options of wenyan.compile
      strict: true,
      romanizeIdentifiers: 'pinyin',
      // ...etc
    }),
  ],
})

The options field well passed to the wenyan compile function. Check this doc for details.

You can also check out the examples.

TODO

  • [ ] A code name
  • [ ] Unit tests

Package Sidebar

Install

npm i @wenyanlang/rollup-plugin

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

3.78 kB

Total Files

4

Last publish

Collaborators

  • antfu
  • lingdong