pace icon indicating copy to clipboard operation
pace copied to clipboard

module not defined

Open j-applese3d opened this issue 2 years ago • 0 comments

It seems that when you have an object called "exports" defined, pace.js tries to set a property on a module. In my case module does not exist, so there's a console error.

I think that line 978: https://github.com/CodeByZach/pace/blob/2350e563a7c899deb2b93903bee7164921018b2b/pace.js#L978-L980

should be changed to typeof module since that appears to be the purpose anyways (set the property "exports" on the object "module")

Am I missing something here?

Thanks!

j-applese3d avatar Nov 04 '22 16:11 j-applese3d