We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d82565f commit fa85f8fCopy full SHA for fa85f8f
src/components/monacoTabs.tsx
@@ -7,7 +7,9 @@ const MonacoTabs: Component<{ tabs: Tab[]; compiled: string }> = (props) => {
7
const fileUri = Uri.parse(`file:///output_dont_import.tsx`);
8
const model = editor.createModel('', 'typescript', fileUri);
9
createEffect(() => {
10
- model.setValue(props.compiled.replace(/(https:\/\/cdn.skypack.dev\/)|(@[0-9][0-9.\-a-z]+)/g, ''));
+ model.setValue(
11
+ props.compiled.replace(/(https:\/\/cdn.skypack.dev\/)|(@[0-9][0-9.\-a-z]+)/g, ''),
12
+ );
13
});
14
onCleanup(() => model.dispose());
15
0 commit comments