Skip to content

Turbopack doesn't like top level await #53

@tzjames

Description

@tzjames

Thanks for all your help with this.

Turbopack unfortunately doesn't have an option for topLevelAwait like webpack v5+. It doesn't seem to work in the example here: #52. If you change packages/playground-shared/package.json to be "@polyglot-sql/sdk": "workspace:*" instead of loading version 0.1.11 then it works. I understand though your reasoning in #44 to not want to include a third build target. Perhaps there is another way that I am missing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions