Last change
on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
1.3 KB
|
Line | |
---|
1 | /// <amd-module name="@angular/compiler-cli/linker/babel/src/babel_plugin" />
|
---|
2 | /**
|
---|
3 | * @license
|
---|
4 | * Copyright Google LLC All Rights Reserved.
|
---|
5 | *
|
---|
6 | * Use of this source code is governed by an MIT-style license that can be
|
---|
7 | * found in the LICENSE file at https://angular.io/license
|
---|
8 | */
|
---|
9 | import { ConfigAPI, PluginObj } from '@babel/core';
|
---|
10 | import { LinkerOptions } from '../../src/file_linker/linker_options';
|
---|
11 | /**
|
---|
12 | * This is the Babel plugin definition that is provided as a default export from the package, such
|
---|
13 | * that the plugin can be used using the module specifier of the package. This is the recommended
|
---|
14 | * way of integrating the Angular Linker into a build pipeline other than the Angular CLI.
|
---|
15 | *
|
---|
16 | * When the module specifier `@angular/compiler-cli/linker/babel` is used as a plugin in a Babel
|
---|
17 | * configuration, Babel invokes this function (by means of the default export) to create the plugin
|
---|
18 | * instance according to the provided options.
|
---|
19 | *
|
---|
20 | * The linker plugin that is created uses the native NodeJS filesystem APIs to interact with the
|
---|
21 | * filesystem. Any logging output is printed to the console.
|
---|
22 | *
|
---|
23 | * @param api Provides access to the Babel environment that is configuring this plugin.
|
---|
24 | * @param options The plugin options that have been configured.
|
---|
25 | */
|
---|
26 | export declare function defaultLinkerPlugin(api: ConfigAPI, options: Partial<LinkerOptions>): PluginObj;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.