My project has a server/ dir and a client/ dir. I only need transpiling on the client app, and of course that's where I need vueify. But my package.json is in the root directory. When I run browserify (pointed to client/src/main.js) I get an error about babel-preset-es2015 not being installed, suggesting I add a .babelrc file. But I do have one -- it's just in the client directory. My understanding is that's what the babel team recommends (because I may need different transpiling for the server directory).
Am I doing something wrong, or is this simply not supported?
My project has a
server/
dir and aclient/
dir. I only need transpiling on the client app, and of course that's where I needvueify
. But mypackage.json
is in the root directory. When I runbrowserify
(pointed toclient/src/main.js
) I get an error aboutbabel-preset-es2015
not being installed, suggesting I add a.babelrc
file. But I do have one -- it's just in theclient
directory. My understanding is that's what the babel team recommends (because I may need different transpiling for theserver
directory).Am I doing something wrong, or is this simply not supported?
Thanks!