mirror of
https://github.com/tiennm99/MTTools.git
synced 2026-10-15 02:17:15 +00:00
Init
This commit is contained in:
1 parent
b5c881f56f
commit
6ba2247509
4280 files changed
+484929
No files matched your search
+35
@@ -0,0 +1,35 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.getOptions = getOptions;
|
||||
exports.defaultOptions = void 0;
|
||||
const defaultOptions = {
|
||||
sourceType: "script",
|
||||
sourceFilename: undefined,
|
||||
startLine: 1,
|
||||
allowAwaitOutsideFunction: false,
|
||||
allowReturnOutsideFunction: false,
|
||||
allowImportExportEverywhere: false,
|
||||
allowSuperOutsideMethod: false,
|
||||
allowUndeclaredExports: false,
|
||||
plugins: [],
|
||||
strictMode: null,
|
||||
ranges: false,
|
||||
tokens: false,
|
||||
createParenthesizedExpressions: false,
|
||||
errorRecovery: false
|
||||
};
|
||||
exports.defaultOptions = defaultOptions;
|
||||
|
||||
function getOptions(opts) {
|
||||
const options = {};
|
||||
|
||||
for (let _i = 0, _Object$keys = Object.keys(defaultOptions); _i < _Object$keys.length; _i++) {
|
||||
const key = _Object$keys[_i];
|
||||
options[key] = opts && opts[key] != null ? opts[key] : defaultOptions[key];
|
||||
}
|
||||
|
||||
return options;
|
||||
}
|
||||
Reference in new issue
Block a user