@innovatorved/code-lab 0.3.1 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ARCHITECTURE.md +8 -4
- package/CHANGELOG.md +45 -0
- package/README.md +70 -158
- package/dist/apps/web/src/index.d.ts +34 -0
- package/dist/code-lab-sql.css +482 -0
- package/dist/code-lab-sql.d.ts +179 -0
- package/dist/code-lab-sql.esm.js +542 -0
- package/dist/code-lab-sql.umd.js +531 -0
- package/dist/code-lab.css +298 -2
- package/dist/code-lab.d.ts +110 -15
- package/dist/code-lab.esm.js +35284 -18253
- package/dist/code-lab.js +40434 -23431
- package/dist/code-lab.umd.js +65502 -0
- package/dist/diagnostics.d.ts +5 -0
- package/dist/extensions/cpp.esm.js +19532 -3772
- package/dist/extensions/cpp.js +19529 -3769
- package/dist/extensions/guided-lab.esm.js +19401 -3725
- package/dist/extensions/guided-lab.js +19400 -3724
- package/dist/extensions/python.d.ts +1 -0
- package/dist/extensions/python.esm.js +19666 -3843
- package/dist/extensions/python.js +19668 -3845
- package/dist/extensions/umbrella.d.ts +5 -0
- package/dist/index.d.ts +1 -1
- package/dist/modular-kernel.d.ts +11 -0
- package/dist/packages/commands/src/index.d.ts +96 -0
- package/dist/packages/core/src/di.d.ts +36 -0
- package/dist/packages/core/src/disposable.d.ts +27 -0
- package/dist/packages/core/src/errors.d.ts +69 -0
- package/dist/packages/core/src/events.d.ts +38 -0
- package/dist/packages/core/src/index.d.ts +6 -0
- package/dist/packages/core/src/path.d.ts +14 -0
- package/dist/packages/core/src/registry.d.ts +23 -0
- package/dist/packages/editor/src/index.d.ts +118 -0
- package/dist/packages/fs/src/backends.d.ts +37 -0
- package/dist/packages/fs/src/index.d.ts +3 -0
- package/dist/packages/fs/src/types.d.ts +40 -0
- package/dist/packages/fs/src/vfs-service.d.ts +33 -0
- package/dist/packages/preview/src/index.d.ts +34 -0
- package/dist/packages/runtime/src/index.d.ts +47 -0
- package/dist/packages/settings/src/builtin-schemas.d.ts +15 -0
- package/dist/packages/settings/src/configuration-service.d.ts +100 -0
- package/dist/packages/settings/src/index.d.ts +4 -0
- package/dist/packages/settings/src/jsonc.d.ts +20 -0
- package/dist/packages/settings/src/schema.d.ts +28 -0
- package/dist/packages/sql/src/completions.d.ts +8 -0
- package/dist/packages/sql/src/diagnostics.d.ts +2 -0
- package/dist/packages/sql/src/formatter.d.ts +2 -0
- package/dist/packages/sql/src/index.d.ts +7 -0
- package/dist/packages/sql/src/sql-editor.d.ts +2 -0
- package/dist/packages/sql/src/styles.d.ts +2 -0
- package/dist/packages/sql/src/tokenizer.d.ts +13 -0
- package/dist/packages/sql/src/types.d.ts +130 -0
- package/dist/packages/terminal/src/index.d.ts +54 -0
- package/dist/packages/ui/src/index.d.ts +4 -0
- package/dist/packages/ui/src/observability.d.ts +22 -0
- package/dist/packages/ui/src/plugin-registry.d.ts +89 -0
- package/dist/packages/ui/src/settings-dialog.d.ts +25 -0
- package/dist/packages/ui/src/themes.d.ts +35 -0
- package/dist/preview-sw.js +82 -24
- package/dist/runtime.d.ts +3 -3
- package/dist/runtime.esm.js +503 -73
- package/dist/runtime.js +501 -73
- package/dist/schemas.d.ts +234 -814
- package/dist/schemas.esm.js +19401 -3725
- package/dist/schemas.js +19404 -3728
- package/dist/scm.d.ts +13 -2
- package/dist/search.d.ts +5 -1
- package/dist/shell.d.ts +1 -1
- package/dist/shell.esm.js +435 -54
- package/dist/shell.js +435 -54
- package/dist/terminal.esm.js +242 -54
- package/dist/terminal.js +242 -54
- package/dist/workbench/diff-editor.d.ts +1 -0
- package/dist/workbench/index.d.ts +1 -1
- package/dist/workbench/styles.d.ts +1 -1
- package/dist/zip.d.ts +4 -3
- package/package.json +37 -8
- package/packages/commands/README.md +7 -0
- package/packages/commands/package.json +16 -0
- package/packages/commands/src/index.ts +467 -0
- package/packages/commands/tsconfig.json +22 -0
- package/packages/core/README.md +12 -0
- package/packages/core/package.json +13 -0
- package/packages/core/src/di.ts +147 -0
- package/packages/core/src/disposable.ts +112 -0
- package/packages/core/src/errors.ts +205 -0
- package/packages/core/src/events.ts +157 -0
- package/packages/core/src/index.ts +49 -0
- package/packages/core/src/path.ts +118 -0
- package/packages/core/src/registry.ts +61 -0
- package/packages/core/tsconfig.json +19 -0
- package/packages/editor/README.md +9 -0
- package/packages/editor/package.json +18 -0
- package/packages/editor/src/index.ts +344 -0
- package/packages/editor/tsconfig.json +24 -0
- package/packages/fs/README.md +7 -0
- package/packages/fs/package.json +16 -0
- package/packages/fs/src/backends.ts +301 -0
- package/packages/fs/src/index.ts +18 -0
- package/packages/fs/src/types.ts +44 -0
- package/packages/fs/src/vfs-service.ts +257 -0
- package/packages/fs/tsconfig.json +22 -0
- package/packages/preview/README.md +3 -0
- package/packages/preview/package.json +16 -0
- package/packages/preview/src/index.ts +125 -0
- package/packages/preview/tsconfig.json +22 -0
- package/packages/runtime/README.md +3 -0
- package/packages/runtime/package.json +17 -0
- package/packages/runtime/src/index.ts +134 -0
- package/packages/runtime/tsconfig.json +23 -0
- package/packages/settings/README.md +7 -0
- package/packages/settings/package.json +16 -0
- package/packages/settings/src/builtin-schemas.ts +235 -0
- package/packages/settings/src/configuration-service.ts +543 -0
- package/packages/settings/src/index.ts +37 -0
- package/packages/settings/src/jsonc.ts +189 -0
- package/packages/settings/src/schema.ts +164 -0
- package/packages/settings/tsconfig.json +22 -0
- package/packages/sql/README.md +12 -0
- package/packages/sql/package.json +13 -0
- package/packages/sql/src/completions.ts +359 -0
- package/packages/sql/src/diagnostics.ts +200 -0
- package/packages/sql/src/formatter.ts +271 -0
- package/packages/sql/src/index.ts +54 -0
- package/packages/sql/src/sql-editor.ts +802 -0
- package/packages/sql/src/styles.ts +501 -0
- package/packages/sql/src/tokenizer.ts +457 -0
- package/packages/sql/src/types.ts +148 -0
- package/packages/sql/tsconfig.json +19 -0
- package/packages/terminal/README.md +3 -0
- package/packages/terminal/package.json +16 -0
- package/packages/terminal/src/index.ts +183 -0
- package/packages/terminal/tsconfig.json +22 -0
- package/packages/ui/README.md +8 -0
- package/packages/ui/package.json +18 -0
- package/packages/ui/src/index.ts +36 -0
- package/packages/ui/src/observability.ts +175 -0
- package/packages/ui/src/plugin-registry.ts +274 -0
- package/packages/ui/src/settings-dialog.ts +293 -0
- package/packages/ui/src/themes.ts +174 -0
- package/packages/ui/tsconfig.json +24 -0
- package/src/code-lab.css +298 -2
- package/src/csp.ts +7 -10
- package/src/diagnostics.ts +42 -3
- package/src/extensions/cpp.ts +105 -24
- package/src/extensions/python.ts +260 -116
- package/src/extensions/umbrella.ts +5 -0
- package/src/index.ts +1 -1
- package/src/modular-kernel.ts +11 -0
- package/src/preview-sw.js +73 -12
- package/src/runtime.ts +501 -74
- package/src/schemas.ts +62 -62
- package/src/scm.ts +106 -19
- package/src/search.ts +71 -27
- package/src/shell.ts +433 -53
- package/src/terminal.ts +239 -52
- package/src/workbench/diff-editor.ts +106 -18
- package/src/workbench/drawer.ts +17 -4
- package/src/workbench/guided-pane.ts +12 -2
- package/src/workbench/icons.ts +5 -2
- package/src/workbench/share.ts +37 -8
- package/src/workbench/styles.ts +2 -1
- package/src/workbench/toolbar.ts +15 -4
- package/src/workbench.ts +2877 -284
- package/src/zip.ts +29 -7
- package/dist/runtime/index.d.ts +0 -4
- package/dist/shell/coreutils/compilers-cli.d.ts +0 -24
- package/dist/shell/index.d.ts +0 -4
- package/src/runtime/index.ts +0 -5
- package/src/shell/coreutils/compilers-cli.ts +0 -103
- package/src/shell/index.ts +0 -5
package/dist/preview-sw.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* ============================================================
|
|
3
|
-
* @innovatorved/code-lab v0.
|
|
3
|
+
* @innovatorved/code-lab v0.4.0 — Standalone Browser Code IDE & Virtual Runtime
|
|
4
4
|
* ============================================================
|
|
5
5
|
* Features:
|
|
6
6
|
* - Sandboxed Web Worker Execution Engine with Multi-Instance Isolation & Watchdog Timer
|
|
7
7
|
* - First-Class Node.js and Bun Runtimes (Bun.serve, bun:test, bun:sqlite, Bun.*)
|
|
8
|
-
* - Full POSIX Shell AST &
|
|
8
|
+
* - Full POSIX Shell AST & 71 UNIX Coreutils (pipes, redirects, globs, env vars, git & git clone)
|
|
9
9
|
* - Interactive PTY Terminal Emulator with inline prompt, Tab completion & ANSI colors
|
|
10
10
|
* - Persistent HTTP/TCP Servers, CLI curl & Live Port/HTTP Preview
|
|
11
11
|
* - Modular VS Code Workbench: File Tree, Tabs, Command Palette, Diff Viewer
|
|
@@ -160,7 +160,12 @@ var CodeLabCsp = (() => {
|
|
|
160
160
|
directive("worker-src", [self, "blob:"].concat(sourcesFor(mode, allow, "workerSrc"))),
|
|
161
161
|
directive("frame-src", withData("frameSrc")),
|
|
162
162
|
directive("form-action", [self]),
|
|
163
|
-
directive("frame-ancestors",
|
|
163
|
+
directive("frame-ancestors", (() => {
|
|
164
|
+
const rawFa = typeof options.frameAncestors === "string" ? options.frameAncestors.trim() : "";
|
|
165
|
+
if (!rawFa) return ["'self'"];
|
|
166
|
+
const tokens = cleanSources(rawFa.split(/\s+/));
|
|
167
|
+
return tokens.length > 0 ? tokens : ["'self'"];
|
|
168
|
+
})())
|
|
164
169
|
].join("; ");
|
|
165
170
|
}
|
|
166
171
|
function describePreviewNetwork(config) {
|
|
@@ -198,15 +203,6 @@ var CodeLabCsp = (() => {
|
|
|
198
203
|
};
|
|
199
204
|
}
|
|
200
205
|
function shim(name) {
|
|
201
|
-
var blocked = false;
|
|
202
|
-
try {
|
|
203
|
-
var existing = window[name];
|
|
204
|
-
if (existing) { existing.getItem('__codelab_probe__'); return; }
|
|
205
|
-
} catch (err) {
|
|
206
|
-
// Expected on an opaque origin: the accessor itself throws.
|
|
207
|
-
blocked = Boolean(err);
|
|
208
|
-
}
|
|
209
|
-
void blocked;
|
|
210
206
|
try {
|
|
211
207
|
Object.defineProperty(window, name, { configurable: true, value: memoryStorage() });
|
|
212
208
|
} catch (err) {
|
|
@@ -366,6 +362,7 @@ var CodeLabCsp = (() => {
|
|
|
366
362
|
}
|
|
367
363
|
|
|
368
364
|
window.addEventListener('message', function (event) {
|
|
365
|
+
if (event && event.source && event.source !== window.parent) return;
|
|
369
366
|
var data = event && event.data;
|
|
370
367
|
if (!data || typeof data !== 'object') return;
|
|
371
368
|
if (data.type === 'codelab:preview-fetch-res' && data.reqId) {
|
|
@@ -578,8 +575,17 @@ self.addEventListener('activate', (event) => {
|
|
|
578
575
|
self.addEventListener('message', (event) => {
|
|
579
576
|
const data = event && event.data;
|
|
580
577
|
if (!data || data.type !== 'codelab:config') return;
|
|
578
|
+
// Reject configuration attempts originating from preview tabs/frames or opaque/blob frames.
|
|
579
|
+
if (event.source && typeof event.source.url === 'string') {
|
|
580
|
+
if (
|
|
581
|
+
/\/__preview\//.test(event.source.url) ||
|
|
582
|
+
/^(?:blob:|data:|about:srcdoc)/i.test(event.source.url)
|
|
583
|
+
) {
|
|
584
|
+
return;
|
|
585
|
+
}
|
|
586
|
+
}
|
|
581
587
|
const csp = typeof data.csp === 'string' ? data.csp.trim() : '';
|
|
582
|
-
if (!csp || csp.length > MAX_CONFIG_LENGTH) return;
|
|
588
|
+
if (!csp || csp.length > MAX_CONFIG_LENGTH || /[\r\n]/.test(csp)) return;
|
|
583
589
|
configuredCsp = csp;
|
|
584
590
|
// Acknowledge so the host can wait for confirmation before loading a frame.
|
|
585
591
|
try {
|
|
@@ -600,10 +606,15 @@ function parsePreviewPath(pathname) {
|
|
|
600
606
|
return { port: Number(match[1]), path: match[2] || '/' };
|
|
601
607
|
}
|
|
602
608
|
|
|
609
|
+
function escapeMetaAttr(val) {
|
|
610
|
+
return String(val || '').replace(/&/g, '&').replace(/"/g, '"').replace(/</g, '<').replace(/>/g, '>');
|
|
611
|
+
}
|
|
612
|
+
|
|
603
613
|
function previewErrorResponse(status, title, message) {
|
|
604
614
|
const csp = previewPolicy();
|
|
615
|
+
const safeCsp = escapeMetaAttr(csp);
|
|
605
616
|
const body = `<!doctype html><meta charset="utf-8">` +
|
|
606
|
-
`<meta http-equiv="Content-Security-Policy" content="${
|
|
617
|
+
`<meta http-equiv="Content-Security-Policy" content="${safeCsp}">` +
|
|
607
618
|
`<title>${title}</title>` +
|
|
608
619
|
`<body style="font-family:system-ui,-apple-system,sans-serif;padding:32px;color:#666;background:#0a0a0a">` +
|
|
609
620
|
`<h1 style="color:#e5e5e5;font-size:18px">${title}</h1><p>${message}</p></body>`;
|
|
@@ -620,14 +631,15 @@ function previewErrorResponse(status, title, message) {
|
|
|
620
631
|
/** Inject the policy, a base URL and the sandbox shims into an HTML response. */
|
|
621
632
|
function injectPreviewHead(html, port) {
|
|
622
633
|
const csp = previewPolicy();
|
|
634
|
+
const safeCsp = escapeMetaAttr(csp);
|
|
623
635
|
const shims = previewShims();
|
|
624
636
|
const tags = [];
|
|
625
637
|
const hasCsp = /<meta[^>]+http-equiv=["']?content-security-policy/i.test(html);
|
|
626
638
|
const hasBase = /<base\b/i.test(html);
|
|
627
639
|
const hasShims = html.indexOf('data-codelab-preview-shims') !== -1;
|
|
628
640
|
|
|
629
|
-
if (!hasCsp) tags.push(`<meta http-equiv="Content-Security-Policy" content="${
|
|
630
|
-
if (!hasBase) tags.push(`<base href="${PREVIEW_PREFIX}${port}/">`);
|
|
641
|
+
if (!hasCsp) tags.push(`<meta http-equiv="Content-Security-Policy" content="${safeCsp}">`);
|
|
642
|
+
if (!hasBase) tags.push(`<base href="${PREVIEW_PREFIX}${Number(port) || 3000}/">`);
|
|
631
643
|
if (!hasShims && shims) tags.push(shims);
|
|
632
644
|
if (tags.length === 0) return html;
|
|
633
645
|
|
|
@@ -643,7 +655,8 @@ function injectPreviewHead(html, port) {
|
|
|
643
655
|
|
|
644
656
|
async function proxyVirtualRequest(event, port, targetPath) {
|
|
645
657
|
const clients = await self.clients.matchAll({ type: 'window', includeUncontrolled: true });
|
|
646
|
-
|
|
658
|
+
const workbenchClients = (clients || []).filter((c) => !c.url || !/\/__preview\//.test(c.url));
|
|
659
|
+
if (!workbenchClients.length) {
|
|
647
660
|
return previewErrorResponse(
|
|
648
661
|
503,
|
|
649
662
|
'No active CodeLab workbench',
|
|
@@ -651,7 +664,7 @@ async function proxyVirtualRequest(event, port, targetPath) {
|
|
|
651
664
|
);
|
|
652
665
|
}
|
|
653
666
|
|
|
654
|
-
const client =
|
|
667
|
+
const client = workbenchClients[0];
|
|
655
668
|
const channel = new MessageChannel();
|
|
656
669
|
const request = event.request;
|
|
657
670
|
const method = request.method || 'GET';
|
|
@@ -676,7 +689,17 @@ async function proxyVirtualRequest(event, port, targetPath) {
|
|
|
676
689
|
}
|
|
677
690
|
|
|
678
691
|
const response = await new Promise((resolve) => {
|
|
692
|
+
const closePort = () => {
|
|
693
|
+
try {
|
|
694
|
+
channel.port1.onmessage = null;
|
|
695
|
+
if (typeof channel.port1.close === 'function') channel.port1.close();
|
|
696
|
+
} catch (err) {
|
|
697
|
+
console.debug('[code-lab] preview-sw: port1.close failed', err);
|
|
698
|
+
}
|
|
699
|
+
};
|
|
700
|
+
|
|
679
701
|
const timer = setTimeout(() => {
|
|
702
|
+
closePort();
|
|
680
703
|
resolve({
|
|
681
704
|
status: 504,
|
|
682
705
|
statusText: 'Gateway Timeout',
|
|
@@ -687,6 +710,7 @@ async function proxyVirtualRequest(event, port, targetPath) {
|
|
|
687
710
|
|
|
688
711
|
channel.port1.onmessage = (messageEvent) => {
|
|
689
712
|
clearTimeout(timer);
|
|
713
|
+
closePort();
|
|
690
714
|
resolve(messageEvent.data);
|
|
691
715
|
};
|
|
692
716
|
|
|
@@ -705,14 +729,40 @@ async function proxyVirtualRequest(event, port, targetPath) {
|
|
|
705
729
|
|
|
706
730
|
let responseBody = response && response.body;
|
|
707
731
|
const responseHeaders = new Headers((response && response.headers) || {});
|
|
708
|
-
const contentType = responseHeaders.get('content-type') || '';
|
|
732
|
+
const contentType = (responseHeaders.get('content-type') || '').trim();
|
|
733
|
+
const isHtmlLike = /\b(?:text\/html|application\/xhtml\+xml)\b/i.test(contentType);
|
|
734
|
+
const isExecutableMarkup =
|
|
735
|
+
isHtmlLike ||
|
|
736
|
+
/\b(?:image\/svg\+xml|application\/xml|text\/xml)\b/i.test(contentType) ||
|
|
737
|
+
!contentType;
|
|
738
|
+
|
|
739
|
+
if (!contentType) {
|
|
740
|
+
responseHeaders.set('Content-Type', 'text/plain; charset=utf-8');
|
|
741
|
+
}
|
|
742
|
+
// Prevent MIME-sniffing binary/JSON/text responses into executable HTML/SVG on all responses.
|
|
743
|
+
responseHeaders.set('X-Content-Type-Options', 'nosniff');
|
|
709
744
|
|
|
710
|
-
//
|
|
745
|
+
// Decode Uint8Array / ArrayBuffer HTML/XHTML bodies so head injection always applies.
|
|
746
|
+
if (isHtmlLike && responseBody && typeof responseBody !== 'string') {
|
|
747
|
+
try {
|
|
748
|
+
if (responseBody instanceof ArrayBuffer || ArrayBuffer.isView(responseBody)) {
|
|
749
|
+
responseBody = new TextDecoder('utf-8').decode(responseBody);
|
|
750
|
+
}
|
|
751
|
+
} catch (err) {
|
|
752
|
+
console.warn('[code-lab] preview-sw: failed to decode HTML buffer', err);
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
// Inject the policy and a <base> so relative asset URLs in HTML/XHTML responses
|
|
711
757
|
// resolve under the `/__preview/:port/` namespace rather than the host root.
|
|
712
|
-
if (
|
|
758
|
+
if (isHtmlLike && typeof responseBody === 'string') {
|
|
713
759
|
responseBody = injectPreviewHead(responseBody, port);
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
// Attach Content-Security-Policy to every executable document/markup response
|
|
763
|
+
// (HTML, XHTML, SVG, XML, and untyped responses) so inline scripts cannot bypass CSP.
|
|
764
|
+
if (isExecutableMarkup) {
|
|
714
765
|
responseHeaders.set('Content-Security-Policy', previewPolicy());
|
|
715
|
-
responseHeaders.set('X-Content-Type-Options', 'nosniff');
|
|
716
766
|
}
|
|
717
767
|
|
|
718
768
|
return new Response(responseBody, {
|
|
@@ -744,12 +794,20 @@ self.addEventListener('fetch', (event) => {
|
|
|
744
794
|
|
|
745
795
|
// Secondary route: root-relative sub-resources requested by a preview page
|
|
746
796
|
// (e.g. `/app.js` referenced from `/__preview/3000/`) are attributed to the
|
|
747
|
-
// originating preview tab via the request referrer.
|
|
797
|
+
// originating preview tab via the request referrer. Top-level navigations are
|
|
798
|
+
// redirected back under `/__preview/:port/` so no preview document ever runs
|
|
799
|
+
// at a non-`/__preview/` URL on the host origin.
|
|
748
800
|
const referrer = event.request.referrer || '';
|
|
749
801
|
const refMatch = referrer.match(/\/__preview\/(\d+)/);
|
|
750
802
|
if (refMatch) {
|
|
803
|
+
const refPort = Number(refMatch[1]);
|
|
804
|
+
if (event.request.mode === 'navigate') {
|
|
805
|
+
const redirectUrl = `${url.origin}${PREVIEW_PREFIX}${refPort}${url.pathname}${url.search || ''}`;
|
|
806
|
+
event.respondWith(Response.redirect(redirectUrl, 302));
|
|
807
|
+
return;
|
|
808
|
+
}
|
|
751
809
|
event.respondWith(
|
|
752
|
-
proxyVirtualRequest(event,
|
|
810
|
+
proxyVirtualRequest(event, refPort, url.pathname + (url.search || ''))
|
|
753
811
|
);
|
|
754
812
|
}
|
|
755
813
|
});
|
package/dist/runtime.d.ts
CHANGED
|
@@ -13,9 +13,9 @@ export declare const VirtualStream: any;
|
|
|
13
13
|
export declare const VirtualStreamPromises: any;
|
|
14
14
|
export declare const VirtualStringDecoder: any;
|
|
15
15
|
export declare const VirtualDns: any;
|
|
16
|
-
export declare const createVirtualFs: (options?: any) => any;
|
|
17
|
-
export declare const createVirtualHttp: (
|
|
18
|
-
export declare const createVirtualNet: (
|
|
16
|
+
export declare const createVirtualFs: (files?: any, options?: any) => any;
|
|
17
|
+
export declare const createVirtualHttp: (resourceTracker?: any, portTable?: any) => any;
|
|
18
|
+
export declare const createVirtualNet: (resourceTracker?: any, httpTrace?: any) => any;
|
|
19
19
|
export declare const createSqliteDatabase: (vfs?: any, getCwd?: () => string) => any;
|
|
20
20
|
export declare const transpileTS: (code: string, filename?: string) => string;
|
|
21
21
|
export declare const transpileForBrowser: (source: string, filename?: string) => string;
|