Skip to content

Commit 13a2e43

Browse files
committed
Make generate.mjs and generate.ts consistent when declaring let plugins = {};
1 parent f5d515f commit 13a2e43

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

esm/generate.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ const AUTOGENERATED_NOTICE = "// NOTICE: This code is @generated from code outsi
208208
// Imports
209209
await pluginMjs.writeFile("import { Plugin } from \"../code-input.mjs\";\n")
210210
// Plugin syntax is to be stored in an object; do so temporarily.
211-
await pluginMjs.writeFile("const plugins = {};\n");
211+
await pluginMjs.writeFile("let plugins = {};\n");
212212
// Code from this plugin"s file, making use of the imported Plugin, not codeInput.Plugin, and of the created plugins object, not codeInput.plugins
213213
let pluginClassName = null;
214214
for await (const line of pluginJs.readLines()) {

0 commit comments

Comments
 (0)