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

Support for dynamic imports #20

Open
marcus-pousette opened this issue Jun 14, 2023 · 0 comments
Open

Support for dynamic imports #20

marcus-pousette opened this issue Jun 14, 2023 · 0 comments

Comments

@marcus-pousette
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant