Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where to put 'use strict' in Browserify bundle

In a Browsersify bundle (containing many modules from many files), where should use strict appear to ensure the entire bundle is run in strict mode?

like image 616
cantera Avatar asked Aug 28 '15 20:08

cantera


1 Answers

When you need to alter browserify output in a uniform way, the answer is usually to use a transform.

strictify appears to do what you need.

like image 155
joews Avatar answered Sep 20 '22 10:09

joews