You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
config.browserify_rails.paths << /vendor\/assets\/javascripts\/module\.js/
config.browserify_rails.paths << './assets/javascripts/' # Added this so that I can use relative paths when calling require() to see if browserify would dedupe, but this didn't help either.
config.browserify_rails.commandline_options = "-t [ babelify --presets [ es2015 react stage-0 ] --plugins [ syntax-async-functions transform-regenerator browserify-resolutions '*' ] ]"
The text was updated successfully, but these errors were encountered:
I have this file structure in Rails
application.js requires my_util.js and my_component.js
my_component.js requires my_util.js
Browserify outputs 2 copies of my_util.js. This is causing my codebase to be way too big.
My package.json
My application.rb:
The text was updated successfully, but these errors were encountered: