mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
7d116c93cf
Building and linting are setup similar to other packages Most of the changes are related to converting from sprockets requires to ESM imports/export. However, there are a few notable changes as well: - A few methods have been refactored to store the Rails object in a closure so that properties on it can be overriden by applications (as documented and tested). This also resulted in the "start" module getting inlined so that it can use the resulting functions. - The logic for running Rails.start() automatically had to change because Rollup uses a slightly different module format than the previous coffeescript bundle. The Rollup bundle does not set window.Rails until the end up the bundle, so the condition had to be updated and window.Rails had to be set manually to ensure backwards compatability with scripts listening to the rails:attachBindings event |
||
---|---|---|
.. | ||
rails-ujs.esm.js | ||
rails-ujs.js |