Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Ability to use esnext module #316

Open
stramel opened this issue Nov 10, 2020 · 0 comments
Open

Ability to use esnext module #316

stramel opened this issue Nov 10, 2020 · 0 comments

Comments

@stramel
Copy link

stramel commented Nov 10, 2020

Currently, it is impossible to use any other module config instead of commonjs. As a result, it is impossible to test the ImportMeta interface.

You can see here, https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/snowpack-env/snowpack-env-tests.ts

The 'import.meta' meta-property is only allowed when the '--module' option is 'esnext' or 'system'.ts(1343)
TypeScript@next compile error: 
The 'import.meta' meta-property is only allowed when the '--module' option is 'esnext' or 'system'. (expect)tslint(1)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant