Skip to content

Commit 0062610

Browse files
committed
esModuleInterop
1 parent f89caa9 commit 0062610

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

packages/frame/src/runtime/editor/compilerOptions.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export function getDefaultSandboxCompilerOptions(
1111
typescript: Pick<
1212
TS,
1313
"ScriptTarget" | "ModuleResolutionKind" | "JsxEmit" | "ModuleKind"
14-
>
14+
>,
1515
) {
1616
const settings: CompilerOptions = {
1717
noImplicitAny: true,
@@ -37,8 +37,8 @@ export function getDefaultSandboxCompilerOptions(
3737
noUnusedLocals: false,
3838
noUnusedParameters: false,
3939

40-
allowSyntheticDefaultImports: false,
41-
esModuleInterop: false,
40+
allowSyntheticDefaultImports: true,
41+
esModuleInterop: true,
4242
preserveConstEnums: false,
4343
removeComments: false,
4444
skipLibCheck: true,

packages/frame/src/runtime/editor/workers/ts.worker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ globalThis.onmessage = () => {
8989
worker.initialize(
9090
// eslint-disable-next-line @typescript-eslint/no-explicit-any
9191
(context: any, createData: any) =>
92-
new CustomTypeScriptWorker(context, createData)
92+
new CustomTypeScriptWorker(context, createData),
9393
);
9494
};
9595

packages/frame/src/runtime/executor/lib/exports.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export class TypeVisualizer<T> {
3333
constructor(
3434
// eslint-disable-next-line @typescript-eslint/no-explicit-any
3535
public readonly func: (arg: T) => any,
36-
public readonly name?: string
36+
public readonly name?: string,
3737
) {
3838
if (
3939
// strings.isFalsyOrWhitespace(visualizer.name) ||

packages/frame/src/runtime/executor/resolver/TypeCellHelperLibraryResolver.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export async function TypeCellHelperLibraryResolver(moduleName: string) {
55
// Resolve the typecell helper library
66
return {
77
module: {
8+
__esModule: true,
89
default: getExposeGlobalVariables(),
910
},
1011
dispose: () => {

0 commit comments

Comments
 (0)