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
feat: Insert "use strict" to output AMD code by default
BREAKING CHANGE: Each AMD module output will start with `"use strict"` by default from now on. ESM execution mode is strict by default. Comply to this in the output AMD code too. You can set the flag `useStrict` to `false` to relax the parse mode of the output AMD modules.
* Base the paths passed to isScript on basePath ([9d8a93d](https://github.com/prantlf/karma-requirejs-esm-preprocessor/commit/9d8a93de095a528b493bfce51798cb76fb7b4a30))
Allows further filtering the files before passing them to the preprocessor. If the patterns are inconvenient to specify what files should be preprocessed, a simple pattern can be used to capture all files and the final filtering be done by `isScript` returning `true` only for the paths to files which need preprocessing. The default is `undefined` - no extra filtering.
40
36
37
+
```ts
38
+
useStrict: boolean
39
+
```
40
+
41
+
Controls inserting `"use strict"` expression to the AMD code output. ESM modules are parsed in the strict mode by default, while AMD modules need the `"use strict"` statement. You can set this flag to `false` to relax the parse mode of the output AMD modules. The default is `true`.
0 commit comments