fix(client): stop injecting extra comments into preview (#44723)

This commit is contained in:
Oliver Eyton-Williams
2022-01-13 22:25:55 +01:00
committed by GitHub
parent e97920ae9c
commit a00788417a
2 changed files with 8 additions and 18 deletions

View File

@@ -105,8 +105,6 @@ async function loadPresetReact() {
const babelTransformCode = options => code =>
Babel.transform(code, options).code;
// const sourceReg =
// /(<!-- fcc-start-source -->)([\s\S]*?)(?=<!-- fcc-end-source -->)/g;
const NBSPReg = new RegExp(String.fromCharCode(160), 'g');
const testJS = matchesProperty('ext', 'js');