start to refactor loopprotect
This commit is contained in:
parent
2608efbc13
commit
a9caa30db3
1 changed files with 3 additions and 1 deletions
|
@ -3,6 +3,8 @@ import ReactDOM from 'react-dom';
|
||||||
import escapeStringRegexp from 'escape-string-regexp';
|
import escapeStringRegexp from 'escape-string-regexp';
|
||||||
import srcDoc from 'srcdoc-polyfill';
|
import srcDoc from 'srcdoc-polyfill';
|
||||||
|
|
||||||
|
import loopProtect from 'loop-protect';
|
||||||
|
|
||||||
|
|
||||||
const startTag = '@fs-';
|
const startTag = '@fs-';
|
||||||
|
|
||||||
|
@ -192,7 +194,7 @@ class PreviewFrame extends React.Component {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
jsFiles.push(newJSFile);
|
jsFiles.push(loopProtect(newJSFile));
|
||||||
});
|
});
|
||||||
|
|
||||||
jsFiles.forEach(jsFile => {
|
jsFiles.forEach(jsFile => {
|
||||||
|
|
Loading…
Reference in a new issue