Skip to content

wenyan-lang/rollup-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wenyan-rollup-plugin

Rollup.js plugin for wenyan-lang

Install

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

Rollup Config

import wenyan from '@wenyan/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