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

How to import files without extensions? #25

Open
pitymaia opened this issue Aug 8, 2019 · 1 comment
Open

How to import files without extensions? #25

pitymaia opened this issue Aug 8, 2019 · 1 comment

Comments

@pitymaia
Copy link

pitymaia commented Aug 8, 2019

Hi, I discovered Typy a little while ago and thought it will help immensely to ensure the quality of my code.
My colleague and I chatted and decided to add Typy to an ES6 Web project we're working on, but when I did that, I ran into a problem with the lack of filename extension for imports.

I'm new to ES6 so I didn't understand exactly why you did it this way, because browsers seem to require file name extensions.
So if possible I would like some guidance on how I should introduce Typy to my web project.

Should I use some transpile to add the extension or is there any other technique I can use? I just hope I don't have to resort to using some kind of Apache server rewrite.

Thanks for listening.

@flexdinesh
Copy link
Owner

@pitymaia If you're trying to load the file directly from a URL, you could try unpkg CDN.

Here's the URL —

https://unpkg.com/typy@3.1.0/lib/index.js

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

2 participants