1.0.7 • Published 2 years ago

@ruleenginejs/rule-loader v1.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@ruleenginejs/rule-loader

Rule loader for webpack.

Installation

npm install -D @ruleenginejs/rule-loader

Add Runtime

npm install @ruleenginejs/runtime

Usage

Config

webpack.config.js

module.exports = {
  module: {
    rules: [
      {
        test: /\.rule$/,
        use: '@ruleenginejs/rule-loader'
      }
    ]
  }
};

App.js

import rule from "./bar.rule";

rule.execute();

Options

NameTypeDefaultDescription
checkSchema{Boolean}trueEnables/disables the validation scheme for the rule files
runtimeModule{String}'@ruleenginejs/runtime'Runtime module name
moduleBaseDir{String}undefinedBase path for import modules in rule files
esModule{Boolean}trueEnable/disable ES modules syntax

License

Licensed under the MIT License.

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago