-
Notifications
You must be signed in to change notification settings - Fork 139
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
Module build coming out CJS. #1564
Comments
I just tested
More like I'd expect. It is the same output as the ESNext build, which might mean there are other settings to include, but if this is looking closer to what you'd expect to, I'm happy to supply a PR. |
There may be a secondary issue or getting TS to point to the file listed in the |
There is one issue, it seems the settings as they are now do output a reference to
This TS things is... |
Bug report
Current behaviour
When attempting to
import Element, {html} from '@skatejs/element-lit-html';
in Typescript, the following error is thrown:Expected behaviour
The addressed file will return imported classes/functions.
Possible correction...
Poked around to see what I could see and it looks like it might have something to do with https://github.com/skatejs/skatejs/blob/master/build/build.ts#L49 being set to
es5
output, which means the modules would be mangled for actual module use, but what do I really know?This seems to be supported by the actual file in
/dist/esm
having the same content as/dist/cjs
, as follows:The text was updated successfully, but these errors were encountered: