snabbt.js
snabbt.js copied to clipboard
npm does not install all required dependecies
Hello, For some reason when I install via npm I only get the snabbt.js file which calls for other files that are not present ( e.g. utils.js ). However when I install via bower everything seems to be in place and works correctly. The specific folders missing from the npm install are src and doc folders...
That's strange, there should be no external dependencies, it's a bundle that gets published to npm. I just tried with the latest release and it works for me. Can you show me how you require the library?
@daniel-lundin the file referenced in package.json as main is the bundle and that doesn't allow a commonjs module loader like browserify to properly require the library.
I think I've just run into this one using Webpack
WARNING in ./~/snabbt.js/snabbt.js
Critical dependencies:
2:479-486 This seems to be a pre-built javascript file. Though this is possible, it's not recommended. Try to require the original source to get better results.
@ ./~/snabbt.js/snabbt.js 2:479-486
Could be something i'm doing wrong, of course.