Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/fourtyone11/origin-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'assets/node_modules/@babel/core/lib/transformation/normalize-opts.js')
-rw-r--r--assets/node_modules/@babel/core/lib/transformation/normalize-opts.js65
1 files changed, 0 insertions, 65 deletions
diff --git a/assets/node_modules/@babel/core/lib/transformation/normalize-opts.js b/assets/node_modules/@babel/core/lib/transformation/normalize-opts.js
deleted file mode 100644
index 1465ad6..0000000
--- a/assets/node_modules/@babel/core/lib/transformation/normalize-opts.js
+++ /dev/null
@@ -1,65 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = normalizeOptions;
-
-function _path() {
- const data = _interopRequireDefault(require("path"));
-
- _path = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function normalizeOptions(config) {
- const {
- filename,
- cwd,
- filenameRelative = typeof filename === "string" ? _path().default.relative(cwd, filename) : "unknown",
- sourceType = "module",
- inputSourceMap,
- sourceMaps = !!inputSourceMap,
- moduleRoot,
- sourceRoot = moduleRoot,
- sourceFileName = _path().default.basename(filenameRelative),
- comments = true,
- compact = "auto"
- } = config.options;
- const opts = config.options;
- const options = Object.assign({}, opts, {
- parserOpts: Object.assign({
- sourceType: _path().default.extname(filenameRelative) === ".mjs" ? "module" : sourceType,
- sourceFileName: filename,
- plugins: []
- }, opts.parserOpts),
- generatorOpts: Object.assign({
- filename,
- auxiliaryCommentBefore: opts.auxiliaryCommentBefore,
- auxiliaryCommentAfter: opts.auxiliaryCommentAfter,
- retainLines: opts.retainLines,
- comments,
- shouldPrintComment: opts.shouldPrintComment,
- compact,
- minified: opts.minified,
- sourceMaps,
- sourceRoot,
- sourceFileName
- }, opts.generatorOpts)
- });
-
- for (const plugins of config.passes) {
- for (const plugin of plugins) {
- if (plugin.manipulateOptions) {
- plugin.manipulateOptions(options, options.parserOpts);
- }
- }
- }
-
- return options;
-} \ No newline at end of file