一覧へ戻る
ruleenginejs/rollup-plugin-rule(新しいタブで開きます)
主要言語: JavaScript
- star 数
- 0
- watcher 数
- 1
- fork 数
- 0
- issue 数
- 0
- 最終更新
- 2022/09/12
主要言語: JavaScript
Compile rule files to javascript.
npm install -D @ruleenginejs/rollup-plugin-rule
npm install @ruleenginejs/runtime
// rollup.config.js import rule from '@ruleenginejs/rollup-plugin-rule'; export default { input: './main.js', plugins: [ rule() ] }
// main.js import rule from "./bar.rule"; rule.execute();
| Name | Type | Default | Description |
|---|---|---|---|
checkSchema |
{Boolean} |
true |
Enables/disables the validation scheme for the rule files |
runtimeModule |
{String} |
'@ruleenginejs/runtime' |
Runtime module name |
moduleBaseDir |
{String} |
undefined |
Base path for import modules in rule files |
esModule |
{Boolean} |
true |
Enable/disable ES modules syntax |
Licensed under the MIT License.