fix: break/continue omitting output before them, #123

BREAKING CHANGE: remove default export, now should be used like import
{Liquid} from 'liquidjs'
This commit is contained in:
harttle
2019-08-26 10:15:43 -05:00
committed by Jun Yang
parent 854e12ba53
commit ae45c4622e
99 changed files with 373 additions and 407 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ import Liquid from '../src/liquid'
const liquid = new Liquid()
export default function () {
export function output () {
console.log('--- output ---')
return new Promise(resolve => {
new Benchmark.Suite('output')
@@ -21,6 +21,6 @@ export default function () {
function test (str: string) {
return {
defer: true,
fn: (d: any) => liquid.parseAndRender(str).then(x => d.resolve(x))
fn: (d: any) => liquid.parseAndRender(str).then((x: any) => d.resolve(x))
}
}