mon-entreprise/publicodes/esm/index.js

13 lines
552 B
JavaScript
Raw Normal View History

// ESM wrapper arrond publicodes CJS Module
// For a deep explanation see:
// https://redfin.engineering/node-modules-at-war-why-commonjs-and-es-modules-cant-get-along-9617135eeca1
2020-12-11 12:27:30 +00:00
import publicodes from '../dist/index.js'
export default publicodes.default
2020-12-11 12:27:30 +00:00
export const reduceAST = publicodes.reduceAST
export const transformAST = publicodes.transformAST
export const formatValue = publicodes.formatValue
export const utils = publicodes.utils
export const translateRules = publicodes.translateRules
export const evaluateRule = publicodes.evaluateRule