Prettier code

This also fixes two undeclared variables and the regex is only created once per word
This commit is contained in:
Maximilian Krög
2020-07-12 11:13:39 +02:00
parent 681fc155a7
commit dc05cacefa
2 changed files with 51 additions and 43 deletions

View File

@@ -175,7 +175,7 @@ class ExampleBuilder {
tags: Array.from(uniqueTags),
};
const indexSource = `var info = ${JSON.stringify(info)}`;
const indexSource = `const info = ${JSON.stringify(info)};`;
compilation.assets['examples-info.js'] = new RawSource(indexSource);
});
}