From 12d6e968c28ab023db14dff29cbe4edfbe088b50 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Fri, 26 May 2017 20:37:00 +0200 Subject: [PATCH] build: properly add pure annotations with tslib (#4819) Recently with #4787 the tsc generated helpers got replaced with helpers from the `tslib` package. This means that the generated IIFE statements are different than before and the pure annotations RegExps don't work anymore. --- tools/gulp/packaging/pure-annotations.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/gulp/packaging/pure-annotations.ts b/tools/gulp/packaging/pure-annotations.ts index 615b0e35765..9fa971e4c01 100644 --- a/tools/gulp/packaging/pure-annotations.ts +++ b/tools/gulp/packaging/pure-annotations.ts @@ -7,7 +7,7 @@ const classIfeeRegex = /** Regex that matches downleveled class IIFE expressions with _extends statements */ const classExtendsIfeeRegex = - /^(var (\S+) = )(\(function \(_super\) \{[\n\r]* __extends\(\2, _super\);[\n\r]*)/gm; + /^(var (\S+) = )(\(function \(_super\) {[\n\r]* tslib.*\.__extends\(\2, _super\);[\n\r]*)/gm; /** * Adds `@__PURE__` annotation comments to IIFEs containing ES5-downleveled classes generated by