diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-11-03 01:33:53 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-11-03 01:33:53 +0100 |
commit | d1291f67551c58168af43698a359cb5ddfd266b0 (patch) | |
tree | 55a13ed29fe1915e3f42f1b1b7038dafa2e975a7 /node_modules/babylon/lib/options.js | |
parent | d0a0695fb5d34996850723f7d4b1b59c3df909c2 (diff) |
node_modules
Diffstat (limited to 'node_modules/babylon/lib/options.js')
-rwxr-xr-x | node_modules/babylon/lib/options.js | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/node_modules/babylon/lib/options.js b/node_modules/babylon/lib/options.js deleted file mode 100755 index 62b51a154..000000000 --- a/node_modules/babylon/lib/options.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; - -exports.__esModule = true; -exports.getOptions = getOptions; -// A second optional argument can be given to further configure -var defaultOptions = exports.defaultOptions = { - // Source type ("script" or "module") for different semantics - sourceType: "script", - // Source filename. - sourceFilename: undefined, - // When enabled, a return at the top level is not considered an - // error. - allowReturnOutsideFunction: false, - // When enabled, import/export statements are not constrained to - // appearing at the top of the program. - allowImportExportEverywhere: false, - // TODO - allowSuperOutsideMethod: false, - // An array of plugins to enable - plugins: [], - // TODO - strictMode: null -}; - -// Interpret and default an options object - -function getOptions(opts) { - var options = {}; - for (var key in defaultOptions) { - options[key] = opts && key in opts ? opts[key] : defaultOptions[key]; - } - return options; -}
\ No newline at end of file |