From 19aede03d546d83faf2b887e18f53149f8fbf1f3 Mon Sep 17 00:00:00 2001 From: zodern Date: Thu, 6 Apr 2023 19:16:56 -0500 Subject: [PATCH 1/2] Compile observe-sequence with ecmascript --- packages/observe-sequence/package.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/observe-sequence/package.js b/packages/observe-sequence/package.js index 934901033..c9756dec6 100644 --- a/packages/observe-sequence/package.js +++ b/packages/observe-sequence/package.js @@ -8,6 +8,7 @@ Package.onUse(function (api) { api.use('mongo-id@1.0.8'); // for idStringify api.use('diff-sequence@1.1.1'); api.use('random@1.2.0'); + api.use('ecmascript@0.13.2'); api.export('ObserveSequence'); api.addFiles(['observe_sequence.js']); }); From 8a9f140de1ba0c0149340ed9442b5f3eb31f8b89 Mon Sep 17 00:00:00 2001 From: zodern Date: Thu, 6 Apr 2023 19:17:31 -0500 Subject: [PATCH 2/2] Remove trailing comma in generated code In older versions of js it was invalid syntax. --- packages/templating-tools/code-generation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/templating-tools/code-generation.js b/packages/templating-tools/code-generation.js index b3eec518c..2c516db2f 100644 --- a/packages/templating-tools/code-generation.js +++ b/packages/templating-tools/code-generation.js @@ -8,7 +8,7 @@ export function generateTemplateJS(name, renderFuncCode, useHMR) { return ` Template._migrateTemplate( ${nameLiteral}, - new Template(${templateDotNameLiteral}, ${renderFuncCode}), + new Template(${templateDotNameLiteral}, ${renderFuncCode}) ); if (typeof module === "object" && module.hot) { module.hot.accept();