webpackbin
webpackbin copied to clipboard
Breaks on module 'slate'
Attempting to use package 'slate' breaks webpackbin unfortunately, works in browser.
Hi @natew, you have some more info? I just tried it and it works?
Oh, sorry, it is combining all three... slate, react and react-dom... that is certainly strange. It is probably picking up some invalid entry point. Have to check
Super strange... only place I find base64-js
is inside the "dist/slate.js" file, but that is being completely ignored. Makes no sense any of that code being included, hm
Okay... this is surprisingly difficult to figure out. Even made a records.json file... no record of looking into that file. But... what is this dist stuff anyways? Why does it depend on base64-js? Seems to be something else than the lib itself? It does not depend on it in package.json either?
Sorry to hear its so weird! Not my package, just one I use. Thanks for making webpackbin, it's really impressive!
I even tried deleting the dist folder before bundling... still asks for base64-js. Insanely weird
Okay, I think I found issue... cheerio, dep of slate, uses readable-stream, which uses buffer-shim, which uses buffer... a node core module. There is a webpack config to turn off some buffer stuff, but then we end up with: dll.js:26 Uncaught Error: Cannot find module "../maps/decode.json"
Maaan, this is bugging me so much! :-D
Sorry, have to give this up :( I did find some interesting things related to generally mocking stuff, so picked that up at least. It is rather strange because this service does use json loader to handle that, but for some reason this deep dependency is not hit.
Thanks for feedback :)