-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Conversation
@xicombd the buffer thing is weird indeed. Did you tried with the WebPack version that uses node-libs 1.0.0? |
Tried with latest webpack and with your fork, and neither seem to work 😟 |
@xicombd take a look at this page: http://webpack.github.io/docs/how-to-write-a-loader.html#mark-dependencies you might have to flag |
@dignifiedquire hum, that doesn't seem to be the problem as it loads the file properly, and I can log the buffer size correctly. The problem is that Buffer isn't defined on the browser context, what makes the two tests that use it fail: |
@xicombd looks like I found a bug in webpack: webpack/webpack#1944 |
@dignifiedquire Oh, nice catch! That explains it, I'll change my PR to use regular functions in the meanwhile then. Thanks! |
👍 @dignifiedquire :D @xicombd wanna update the PR? |
@diasdavid done! |
rad! thank you :) |
Bumps [file-type](https://github.com/sindresorhus/file-type) from 15.0.1 to 16.0.0. - [Release notes](https://github.com/sindresorhus/file-type/releases) - [Commits](sindresorhus/file-type@v15.0.1...v16.0.0) Signed-off-by: dependabot-preview[bot] <[email protected]> Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
I implemented a simple
buffer-loader
based on thebinary-loader
which fixes the two missing tests.However I got a weird bug with webpack as it doesn't seem to define
Buffer
if it is not used outside the tests, so I added an hack on top of the file.@dignifiedquire do you have any idea how to avoid this?