-
-
Notifications
You must be signed in to change notification settings - Fork 211
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
Provide uncompressed transpiled version of fitty as part of distribution #13
Comments
That sounds logical, can you perhaps share articles that contain good practices concerning the main module setup? As in, should it be minimized, should it even be wrapped in a UMD? Maybe it would be more interesting to generate a |
Thanks, I'm looking into it. |
Decided to not go with the |
Currently, if I install fitty from npm and try to import like this
then the
fitty.js
file will be imported, because it is specified as themain
script.However, it is very likely that you'll get a JavaScript error, because
fitty.js
is written in ES6. Tools likevue-cli
orcreate-react-app
generate such Webpack config that applies Babel transpilation only to application source. In order to fix the import, I have to writeimport fitty from 'fitty/fitty.min.js'
, which is less obvious and makes IDEs life more difficult.It would be nice if the current
fitty.js
is moved to e.g.src
folder, and two transpiled distribution versions of the library (uncompressed and compressed) are provided.The text was updated successfully, but these errors were encountered: