mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 04:48:53 +08:00
6e5296a510
This unlocks Rails upgrades, so we can now upgrade to latest Rails
5 lines
246 B
Ruby
5 lines
246 B
Ruby
require 'sprockets'
|
|
|
|
Sprockets.register_mime_type 'application/ecmascript6', extensions: ['.es6', '.js.es6'], charset: :unicode
|
|
Sprockets.register_transformer 'application/ecmascript6', 'application/javascript', Tilt::ES6ModuleTranspilerTemplate
|