101arrowz / fflate

High performance (de)compression in an 8kB package
https://101arrowz.github.io/fflate
MIT License
2.27k stars 79 forks source link

broken AMD loading #110

Closed decibelko closed 2 years ago

decibelko commented 2 years ago

Hi, AMD loading seems to be broken when using requirejs. I'm trying to load module via require() call.

This might fix it: in scripts\buildUMD.ts change define(['fflate',f]) -> define([],f) or simply define(f) because of no dependencies

Great little lib! Many thanks for it

101arrowz commented 2 years ago

Will fix in the next release, I've never used AMD so I didn't know this. Thanks for the bug report!

101arrowz commented 2 years ago

Fixed in v0.7.2.