Skip to content

Commit

Permalink
fix(@angular-devkit/build-optimizer): deprecate transform test functions
Browse files Browse the repository at this point in the history
These were not intended to be part of the public API and will eventually be removed completely.
  • Loading branch information
clydin authored and hansl committed Sep 19, 2018
1 parent a8a60a7 commit 5890759
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
*/
import * as ts from 'typescript';


/**
* @deprecated From 0.9.0
*/
export function testImportTslib(content: string) {
const regex = /var (__extends|__decorate|__metadata|__param) = \(.*\r?\n( .*\r?\n)*\};/;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
*/
import * as ts from 'typescript';


/**
* @deprecated From 0.9.0
*/
export function testPrefixClasses(content: string) {
const exportVarSetter = /(?:export )?(?:var|const)\s+(\S+)\s*=\s*/;
const multiLineComment = /\s*(?:\/\*[\s\S]*?\*\/)?\s*/;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
import * as ts from 'typescript';
import { collectDeepNodes } from '../helpers/ast-utils';


/**
* @deprecated From 0.9.0
*/
export function testScrubFile(content: string) {
const markers = [
'decorators',
Expand Down

0 comments on commit 5890759

Please sign in to comment.