Skip to content

Support for dynamic imports #20

Open
@marcus-pousette

Description

Currently this would fail

s.ts

class Super {}

a.ts

import { Super } from './s.ts'

@variant("a")
class A extends Super {}

b.ts

import { Super } from './s.ts'
@variant("b")
class B extends Super {}

Then in another file

index.ts

const { A }  = await import("./a.js")
const { B }  = await import("./b.js")

When doing dynamic import Super will only be extended by either A or B, not both.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions