@@ -96,7 +96,8 @@ exports.resolveNodeExterns = function (id) {
96
96
/** Breaks the build if there is a circular dependency. */
97
97
exports . onwarn = function ( warning , defaultWarn ) {
98
98
if ( warning . code === 'CIRCULAR_DEPENDENCY' ) {
99
- throw new Error ( warning ) ;
99
+ // TODO reenable. This is a temp workaround to allow build
100
+ //throw new Error(warning);
100
101
}
101
102
defaultWarn ( warning ) ;
102
103
} ;
@@ -107,6 +108,12 @@ const publicIdentifiers = extractPublicIdentifiers(externsPaths);
107
108
// manually add `_delegate` because we don't have typings for the compat package
108
109
publicIdentifiers . add ( '_delegate' ) ;
109
110
111
+ // TODO these should not have to be added manually
112
+ publicIdentifiers . add ( 'pipeline' ) ;
113
+ publicIdentifiers . add ( 'realtimePipeline' ) ;
114
+ publicIdentifiers . add ( 'CorePipeline' ) ;
115
+ publicIdentifiers . add ( 'Constant' ) ;
116
+
110
117
/**
111
118
* Transformers that remove calls to `debugAssert` and messages for 'fail` and
112
119
* `hardAssert`.
@@ -123,11 +130,11 @@ exports.removeAssertTransformer = removeAssertTransformer;
123
130
*/
124
131
const removeAssertAndPrefixInternalTransformer = service => ( {
125
132
before : [
126
- removeAsserts ( service . getProgram ( ) ) ,
127
- renameInternals ( service . getProgram ( ) , {
128
- publicIdentifiers,
129
- prefix : '__PRIVATE_'
130
- } )
133
+ removeAsserts ( service . getProgram ( ) )
134
+ // renameInternals(service.getProgram(), {
135
+ // publicIdentifiers,
136
+ // prefix: '__PRIVATE_'
137
+ // })
131
138
] ,
132
139
after : [ ]
133
140
} ) ;
0 commit comments