Comments (9)
@101arrowz amazing! thank you for pushing it quickly!
I will test it out today
from fflate.
yep, import works perfectly now
thank you for adding the changes!
from fflate.
What bundler are you using? I rely on the "browser"
key of package.json
to replace the import in the browser.
from fflate.
@101arrowz we don't have any bundler 🙈
We have a build-less open-wc setup (more on that https://modern-web.dev/guides/going-buildless/es-modules). That's pretty much what brought us to use fflate as it provides ESM exports and other similar libraries are common js
. I am not sure if it is somehow possible to utilize this key while using no bundler.
from fflate.
If that's the case, I will change the build script to add a version that supports true ESM. Is there nothing in that guide that allows custom module resolution?
from fflate.
@101arrowz wow that would be really amazing to get the true ESM
version.
Is there nothing in that guide that allows custom module resolution?
I think unless I write my own tool for it - there is no way...
from fflate.
@maxevilmind I've pushed v0.3.6 with commit 214ec2f. Try the import again. Thanks for the feature request!
from fflate.
Did it end up working for you?
from fflate.
No idea how useful this is for you at this point @maxevilmind, but you probably would have been able to get the package working like this:
web-dev-server --config config.wds.mjs
In config.wds.mjs
:
export default {
nodeResolve: {
browser: true
}
}
Obviously I'm not going to revert the package to before this bugfix, just thought it may be useful to know.
from fflate.
Related Issues (20)
- Add Bzip2?
- Hangs on gunzipSync of compressed content with invalid dictionary HOT 3
- Option to shorten output as much as possible HOT 3
- Incorrect argument order in AsyncFlateStreamHandler HOT 5
- Truncated output of gunzip if SIZE footer is incorrect HOT 5
- return uncompressed size instead of resized output buffer HOT 4
- Improve zip documentation HOT 1
- The encoded data was not valid for encoding utf-8 HOT 1
- Streams onData do not work as expected anymore HOT 8
- CDN bundle for 0.8.1 is broken HOT 2
- Async unzip maxing out CPU and memory for some files HOT 3
- fflate.decompressSync is not a function when using `nifti-reader-js` (React) HOT 7
- Occasional CRC Errors When Streaming Data into Zip using AsyncZipDeflate HOT 7
- `zipSync` can get order of ZIP entries wrong, due to how objects work HOT 3
- delete the rust code
- The 2nd+ JPG images in a zip stream being created are corrupt for some reason? HOT 9
- `gunzipSync` failing (0 gzip length) on some npm package tarballs HOT 1
- Unexpected EOF when inflating ZIP HOT 3
- Unzip error thrown when big file as compression type 9 HOT 1
- Incorrect modules field for node.js HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fflate.