Skip to content

Commit f8ea732

Browse files
committed
re-enable removal of duplicated helpers
1 parent 43d8c39 commit f8ea732

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

build/lib/bundle.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ function emitEntryPoints(modules, entryPoints) {
116116
});
117117
return {
118118
// TODO@TS 2.1.2
119-
files: extractStrings(/*removeDuplicateTSBoilerplate(*/ result /*)*/),
119+
files: extractStrings(removeDuplicateTSBoilerplate(result)),
120120
bundleData: bundleData
121121
};
122122
}
@@ -208,7 +208,7 @@ function extractStrings(destFiles) {
208208
function removeDuplicateTSBoilerplate(destFiles) {
209209
// Taken from typescript compiler => emitFiles
210210
var BOILERPLATE = [
211-
{ start: /^var __extends/, end: /^};$/ },
211+
{ start: /^var __extends/, end: /^}\)\(\);$/ },
212212
{ start: /^var __assign/, end: /^};$/ },
213213
{ start: /^var __decorate/, end: /^};$/ },
214214
{ start: /^var __metadata/, end: /^};$/ },

build/lib/bundle.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ function emitEntryPoints(modules: IBuildModuleInfo[], entryPoints: IEntryPointMa
227227

228228
return {
229229
// TODO@TS 2.1.2
230-
files: extractStrings(/*removeDuplicateTSBoilerplate(*/result/*)*/),
230+
files: extractStrings(removeDuplicateTSBoilerplate(result)),
231231
bundleData: bundleData
232232
};
233233
}
@@ -329,7 +329,7 @@ function extractStrings(destFiles: IConcatFile[]): IConcatFile[] {
329329
function removeDuplicateTSBoilerplate(destFiles: IConcatFile[]): IConcatFile[] {
330330
// Taken from typescript compiler => emitFiles
331331
let BOILERPLATE = [
332-
{ start: /^var __extends/, end: /^};$/ },
332+
{ start: /^var __extends/, end: /^}\)\(\);$/ },
333333
{ start: /^var __assign/, end: /^};$/ },
334334
{ start: /^var __decorate/, end: /^};$/ },
335335
{ start: /^var __metadata/, end: /^};$/ },

0 commit comments

Comments
 (0)