fix: memoryLimit doesn't work in for tag, #776

This commit is contained in:
Harttle
2024-12-22 15:46:56 +08:00
parent d61855bf72
commit 2af297f81a
4 changed files with 11 additions and 2 deletions
+4 -1
View File
@@ -60,7 +60,10 @@
/* global liquidjs, ace */
if (!location.pathname.match(/playground.html$/)) return;
updateVersion(liquidjs.version);
const engine = new liquidjs.Liquid();
const engine = new liquidjs.Liquid({
memoryLimit: 1e5,
renderLimit: 1e5
});
const editor = createEditor('editorEl', 'liquid');
const dataEditor = createEditor('dataEl', 'json');
const preview = createEditor('previewEl', 'html');