Revert "Simplify import path in examples"

This reverts commit 79c8afdba8.
This commit is contained in:
Frederic Junod
2018-11-27 16:49:55 +01:00
parent eaa29b2e63
commit 4a3f70c09b
165 changed files with 990 additions and 990 deletions

View File

@@ -155,6 +155,7 @@ ExampleBuilder.prototype.render = async function(dir, chunk) {
if (!jsSource) {
throw new Error(`No .js source for ${jsName}`);
}
jsSource = jsSource.replace(/'\.\.\/src\//g, '\'');
if (data.cloak) {
for (const entry of data.cloak) {
jsSource = jsSource.replace(new RegExp(entry.key, 'g'), entry.value);