Using Babel-Standalone, I am trying to disable use strict
so that I may use the deprecated with
statement per the es2015 preset reference.
var code = "with (p) { // do something }";
var output = Babel.transform(code, { presets: [['es2015', {"loose": true}]] }).code;
this gives me this error:
babel.js:17955 Uncaught SyntaxError: unknown: 'with' in strict mode (1:5)
How do i disable strict mode using Babel Standalone?