Skip to content

impr: Default export #2553

@aleksanderkatan

Description

@aleksanderkatan
> oxlint && oxfmt --check


  ⚠ import(no-named-as-default): Module "typegpu" has named export "tgpu"
   ╭─[src/main.ts:1:8]
 1 │ import tgpu, { common, d } from 'typegpu';
   ·        ────
 2 │ 
   ╰────
  help: Using default import as "tgpu" can be confusing. Use another name for default import to avoid confusion.

This probably happens because our index.ts has a name collision

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions