Revert "Simplify import path in examples"
This reverts commit 79c8afdba8.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user