You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are some problems currently when Muuri is being imported in a webpack environment. The importing fails. Let's fix this and make sure Muuri works without hiccups in webpack and other CommonJS environments (at least Browserify and Webpack) in addition to browser environment.
The text was updated successfully, but these errors were encountered:
niklasramo
changed the title
Fix UMD pattern issues
Fix module loading issues in CommonJS environments (mainly for webpack and browserify)
Jun 20, 2017
niklasramo
changed the title
Fix module loading issues in CommonJS environments (mainly for webpack and browserify)
Fix module loading issues in CommonJS environments (mainly for webpack and browserify compatibility)
Jun 20, 2017
ATM Muuri really can't be used on the server side as it fetches the element dimensions from the DOM. However, it would not be so much trouble to get rid of the document and Element references which Muuri assumes to be available in the global scope. Those could be just transformed to window.document and window.Element. I'm not really sure what's the correct approach here, ideas are welcome.
There are some problems currently when Muuri is being imported in a webpack environment. The importing fails. Let's fix this and make sure Muuri works without hiccups in webpack and other CommonJS environments (at least Browserify and Webpack) in addition to browser environment.
The text was updated successfully, but these errors were encountered: