perf: target Node.js 14 for cjs bundle (main entry)

BREAKING CHANGE: main entry need Node.js>=14 to run, you can build LiquidJS by your own by using ESM entry.
This commit is contained in:
Jun Yang
2022-11-27 14:04:01 +08:00
parent 7eb621601c
commit 1f6ce7c822
3 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ import { FS } from './fs/fs'
import * as fs from './fs/node'
import { defaultOperators, Operators } from './render/operator'
import { filters } from './filters'
import { assert } from './types'
import { assert } from './util/assert'
type OutputEscape = (value: any) => string
type OutputEscapeOption = 'escape' | 'json' | OutputEscape