Sha256: a471a321a567a70a7625fe3b743f3fb026227d5bf9023dd882aa7a5796e51456
Contents?: true
Size: 1.12 KB
Versions: 8
Compression:
Stored size: 1.12 KB
Contents
// A second optional argument can be given to further configure // the parser process. These options are recognized: "use strict"; exports.__esModule = true; exports.getOptions = getOptions; var defaultOptions = { // Source type ("script" or "module") for different semantics sourceType: "script", // By default, reserved words are not enforced. Disable // `allowReserved` to enforce them. When this option has the // value "never", reserved words and keywords can also not be // used as property names. allowReserved: true, // 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, plugins: {}, // Babel-specific options features: {}, strictMode: null }; exports.defaultOptions = defaultOptions; // 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; }
Version data entries
8 entries across 8 versions & 3 rubygems