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
{{ message }}
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.
Using rails v4.2.2, sprockets v3.4.0, sprockets-rails v2.3.3, jasmine-rails v0.12.2
In my application.js, I'm requiring a custom build of lodash (2.4.1) for compatibility with underscore/backbone. The app imports widgets, through Bower and bower-rails setup, which require lodash (3). To force the app to use 2.4.1, I've stub-bed them out after the first require.
/** application.js */
// include from vendor/assets/javascripts/
//= require lodash-2.4.1.custom
// ignore from vendor/assets/bower_components
//= stub lodash/lodash
/** require widget.rails */
//= require lodash/lodash
//= require foo/bar
The app site is behaving as expected and not including lodash 3, but Jasmine spec runner is, causing specs to fail. I can verify that it is exclusive to lodash and the require call, no other assets are getting included extraneously.
Cool. I wasn't aware of stub -- I assume that's a newer sprockets feature? In any case, a PR that investigates this and fixes it to work the same as the production manifest would be welcome
Using rails v4.2.2, sprockets v3.4.0, sprockets-rails v2.3.3, jasmine-rails v0.12.2
In my
application.js
, I'm requiring a custom build of lodash (2.4.1) for compatibility with underscore/backbone. The app imports widgets, through Bower and bower-rails setup, which require lodash (3). To force the app to use 2.4.1, I'vestub
-bed them out after the firstrequire
.The app site is behaving as expected and not including lodash 3, but Jasmine spec runner is, causing specs to fail. I can verify that it is exclusive to lodash and the
require
call, no other assets are getting included extraneously.The text was updated successfully, but these errors were encountered: