Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cjs imports for modules #495

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix cjs imports
danielfdsilva committed Jan 14, 2025
commit e3ef6479940db6d2762efd9007efd24a734d9ac1
2 changes: 1 addition & 1 deletion index.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Threads from "./dist/index.js"
import * as Threads from "./dist/index.js"

export const registerSerializer = Threads.registerSerializer
export const spawn = Threads.spawn
2 changes: 1 addition & 1 deletion observable.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Observables from "./dist/observable.js"
import * as Observables from "./dist/observable.js"

export const Observable = Observables.Observable
export const Subject = Observables.Subject
2 changes: 1 addition & 1 deletion worker.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import WorkerContext from "./dist/worker/index.js"
import * as WorkerContext from "./dist/worker/index.js"

export const expose = WorkerContext.expose
export const registerSerializer = WorkerContext.registerSerializer