@@ -96,7 +96,8 @@ exports.resolveNodeExterns = function (id) {
9696/** Breaks the build if there is a circular dependency. */
9797exports . onwarn = function ( warning , defaultWarn ) {
9898 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);
100101 }
101102 defaultWarn ( warning ) ;
102103} ;
@@ -107,6 +108,12 @@ const publicIdentifiers = extractPublicIdentifiers(externsPaths);
107108// manually add `_delegate` because we don't have typings for the compat package
108109publicIdentifiers . add ( '_delegate' ) ;
109110
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+
110117/**
111118 * Transformers that remove calls to `debugAssert` and messages for 'fail` and
112119 * `hardAssert`.
@@ -123,11 +130,11 @@ exports.removeAssertTransformer = removeAssertTransformer;
123130 */
124131const removeAssertAndPrefixInternalTransformer = service => ( {
125132 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+ // })
131138 ] ,
132139 after : [ ]
133140} ) ;
0 commit comments