Skip to content

Commit 5890759

Browse files
clydinhansl
authored andcommitted
fix(@angular-devkit/build-optimizer): deprecate transform test functions
These were not intended to be part of the public API and will eventually be removed completely.
1 parent a8a60a7 commit 5890759

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

packages/angular_devkit/build_optimizer/src/transforms/import-tslib.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
*/
88
import * as ts from 'typescript';
99

10-
10+
/**
11+
* @deprecated From 0.9.0
12+
*/
1113
export function testImportTslib(content: string) {
1214
const regex = /var (__extends|__decorate|__metadata|__param) = \(.*\r?\n( .*\r?\n)*\};/;
1315

packages/angular_devkit/build_optimizer/src/transforms/prefix-classes.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
*/
88
import * as ts from 'typescript';
99

10-
10+
/**
11+
* @deprecated From 0.9.0
12+
*/
1113
export function testPrefixClasses(content: string) {
1214
const exportVarSetter = /(?:export )?(?:var|const)\s+(\S+)\s*=\s*/;
1315
const multiLineComment = /\s*(?:\/\*[\s\S]*?\*\/)?\s*/;

packages/angular_devkit/build_optimizer/src/transforms/scrub-file.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
import * as ts from 'typescript';
99
import { collectDeepNodes } from '../helpers/ast-utils';
1010

11-
11+
/**
12+
* @deprecated From 0.9.0
13+
*/
1214
export function testScrubFile(content: string) {
1315
const markers = [
1416
'decorators',

0 commit comments

Comments
 (0)