source: trip-planner-front/node_modules/@angular/compiler-cli/linker/babel/src/babel_plugin.js

Last change on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 5.1 KB
Line 
1(function (factory) {
2 if (typeof module === "object" && typeof module.exports === "object") {
3 var v = factory(require, exports);
4 if (v !== undefined) module.exports = v;
5 }
6 else if (typeof define === "function" && define.amd) {
7 define("@angular/compiler-cli/linker/babel/src/babel_plugin", ["require", "exports", "tslib", "@angular/compiler-cli/src/ngtsc/file_system", "@angular/compiler-cli/src/ngtsc/logging", "@angular/compiler-cli/linker/babel/src/es2015_linker_plugin"], factory);
8 }
9})(function (require, exports) {
10 "use strict";
11 Object.defineProperty(exports, "__esModule", { value: true });
12 exports.defaultLinkerPlugin = void 0;
13 var tslib_1 = require("tslib");
14 var file_system_1 = require("@angular/compiler-cli/src/ngtsc/file_system");
15 var logging_1 = require("@angular/compiler-cli/src/ngtsc/logging");
16 var es2015_linker_plugin_1 = require("@angular/compiler-cli/linker/babel/src/es2015_linker_plugin");
17 /**
18 * This is the Babel plugin definition that is provided as a default export from the package, such
19 * that the plugin can be used using the module specifier of the package. This is the recommended
20 * way of integrating the Angular Linker into a build pipeline other than the Angular CLI.
21 *
22 * When the module specifier `@angular/compiler-cli/linker/babel` is used as a plugin in a Babel
23 * configuration, Babel invokes this function (by means of the default export) to create the plugin
24 * instance according to the provided options.
25 *
26 * The linker plugin that is created uses the native NodeJS filesystem APIs to interact with the
27 * filesystem. Any logging output is printed to the console.
28 *
29 * @param api Provides access to the Babel environment that is configuring this plugin.
30 * @param options The plugin options that have been configured.
31 */
32 function defaultLinkerPlugin(api, options) {
33 api.assertVersion(7);
34 return es2015_linker_plugin_1.createEs2015LinkerPlugin(tslib_1.__assign(tslib_1.__assign({}, options), { fileSystem: new file_system_1.NodeJSFileSystem(), logger: new logging_1.ConsoleLogger(logging_1.LogLevel.info) }));
35 }
36 exports.defaultLinkerPlugin = defaultLinkerPlugin;
37});
38//#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