Skip to content

Commit 561110a

Browse files
committed
Use .js suffix when importing
1 parent 7cc8ff3 commit 561110a

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

Runtime/src/closure-heap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ExportedFunctions } from "./types";
1+
import { ExportedFunctions } from "./types.js";
22

33
/// Memory lifetime of closures in Swift are managed by Swift side
44
export class SwiftClosureDeallocator {

Runtime/src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
import { SwiftClosureDeallocator } from "./closure-heap";
1+
import { SwiftClosureDeallocator } from "./closure-heap.js";
22
import {
33
LibraryFeatures,
44
ExportedFunctions,
55
ref,
66
pointer,
77
TypedArray,
88
ImportedFunctions,
9-
} from "./types";
10-
import * as JSValue from "./js-value";
11-
import { Memory } from "./memory";
9+
} from "./types.js";
10+
import * as JSValue from "./js-value.js";
11+
import { Memory } from "./memory.js";
1212

1313
export class SwiftRuntime {
1414
private _instance: WebAssembly.Instance | null;

Runtime/src/memory.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { SwiftRuntimeHeap } from "./object-heap";
2-
import { pointer } from "./types";
1+
import { SwiftRuntimeHeap } from "./object-heap.js";
2+
import { pointer } from "./types.js";
33

44
export class Memory {
55
readonly rawMemory: WebAssembly.Memory;

Runtime/src/object-heap.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { globalVariable } from "./find-global";
2-
import { ref } from "./types";
1+
import { globalVariable } from "./find-global.js";
2+
import { ref } from "./types.js";
33

44
type SwiftRuntimeHeapEntry = {
55
id: number;

Runtime/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as JSValue from "./js-value";
1+
import * as JSValue from "./js-value.js";
22

33
export type ref = number;
44
export type pointer = number;

0 commit comments

Comments
 (0)