Prettier code
This also fixes two undeclared variables and the regex is only created once per word
This commit is contained in:
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user