Skip to content
Snippets Groups Projects
Commit 1e2a5dde authored by Nolan Lawson's avatar Nolan Lawson Committed by Eugen
Browse files

Simplify browserify+babelify config (#2377)

parent 549ce78c
No related branches found
No related tags found
No related merge requests found
......@@ -72,7 +72,8 @@ module Mastodon
config.middleware.use Rack::Attack
config.middleware.use Rack::Deflater
config.browserify_rails.commandline_options = '--transform [ babelify --presets [ es2015 react ] --plugins [ transform-decorators-legacy ] ] --extension=".jsx"'
# babel config can be found in .babelrc
config.browserify_rails.commandline_options = '--transform babelify --extension=".jsx"'
config.browserify_rails.evaluate_node_modules = true
config.to_prepare do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment