Does the embark framework use browserify for package management? How do I add a package (say buffer) to the project?
I used npm i --save-dev buffer
and can see the dependency added to package.json and the node_modules folder but cannot var Buffer = require("Buffer")
it. The var Buffer = require('buffer/').Buffer
suggested by the docs doesn't work either.
The error in the javascript console in the browser is Error: Cannot find module 'Buffer'
and Error: Cannot find module 'buffer/'
respectively.