Use strict append to every file after Laravel Elixir upgrade - broken scripts

I have updated my Elixir and Gulp and now I see that some of my mixed scripts are broken.

When I click gulp

or gulp --production

everything seems to be compiled, mixed, and versioned fine. The problem is located directly on the page. Scripts throw exceptions in the console.

The two broken scripts are in moment.js

bootstrap right now datetimepicker

.

Uncaught TypeError: Cannot set property "moment" undefined (anonymous function) @ common-1e3de0f4.js: 1 (anonymous function) @ common-1e3de0f4.js: 1 create: 207

Uncaught TypeError: $ (...). datetimepicker is not a function

It must have something with the fact that I updated npm, because all my own scripts are fine - only these plugins are broken and I haven't touched them.

I have seen that each file is preceded by 'use strict'; This has never happened before.

I'd really like to solve this on my own, but I don't know where to start looking for a solution.

My gulpfile.js http://pastebin.com/NQ8f9tGr

Thanks for any help.

+3


source to share


1 answer


This is a known problem, in fact Jeffrey is asking for feedback on how people want to solve it, you can find it here and give your opinion.

Also quoting Jeffrey Way about a possible solution:



We have two options:

  • You can turn off Babel support if you don't want to. elixir.config.babel.enabled = false.
  • We can use the "useStrict" blacklist so that it is not included. Not sure if we should do this, but this is an option.
+2


source







All Articles