@byzanteam/store-expression-loader
v0.2.0
Published
enhance json loader to process expression to function
Downloads
32
Readme
Jet Store Expression transform
enhance json loader which process {{ }}
as expression to function, return a js object with function value
Installation
$ npm install -D @byzanteam/store-expression-loader
$ yarn add -D @byzanteam/store-expression-loader
Usage
module.exports = {
module: {
rules: [
{
test: /store.json$/,
use: '@byzanteam/store-expression-loader',
},
],
},
}
Options
决定插件是否将其值当表达式处理
- isExpression - (value: unknown, key: string) => boolean