Skip to content

Commit

Permalink
Fix loader to not replace source
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenpetryk committed Feb 25, 2024
1 parent 22e2005 commit e46eb84
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/guide-example-loader.js
Original file line number Diff line number Diff line change
@@ -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)};
Expand Down

0 comments on commit e46eb84

Please sign in to comment.