Skip to content

Commit

Permalink
fix(require): remove the params from the file extension
Browse files Browse the repository at this point in the history
  • Loading branch information
XavierBoubert committed Nov 4, 2016
1 parent 50870db commit a58988b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion features/require/require.js
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@

file = file || name;

extension = (file.split('.').pop() || '').toLowerCase();
extension = (file.split('?')[0].split('.').pop() || '').toLowerCase();
if (extension == 'js') {
return new window.Ractive.Promise(function(fulfil) {
_injectJS(name, file, fulfil);
Expand Down

0 comments on commit a58988b

Please # to comment.