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 committed 2020-07-17 21:18:53 +02:00
1 parent 681fc155a7
commit dc05cacefa
2 files changed
+51 -43

No files matched your search

+1 -1
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);
});
}