From e46eb8463470490ca795547cc9091c7947336a09 Mon Sep 17 00:00:00 2001 From: Steven Petryk Date: Sat, 24 Feb 2024 18:50:58 -0800 Subject: [PATCH] Fix loader to not replace source --- docs/guide-example-loader.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/guide-example-loader.js b/docs/guide-example-loader.js index a1697c75..6f875b09 100644 --- a/docs/guide-example-loader.js +++ b/docs/guide-example-loader.js @@ -1,9 +1,7 @@ /* eslint-disable no-undef */ module.exports = function guideExampleLoader(source) { - source = source.replace(/export default/g, "const $default =") - return ` - ${source} + ${source.replace(/export default/g, "const $default =")} ; const $source = ${JSON.stringify(source)};