Skip to content
8 changes: 8 additions & 0 deletions tfjs-converter/src/data/compiled_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@
* =============================================================================
*/

// This incantation makes Closure think that exported symbols are mutable.
// Mutable file-level exports are disallowed per style and won't reliably
// work. This hack also has a cost in terms of code size, and is only used
// to preserve the preexisting behavior of this code.
// tslint:disable-next-line:ban-ts-ignore see above
// @ts-ignore
exports = {};

/* tslint:disable */

/** Properties of an Any. */
Expand Down
8 changes: 8 additions & 0 deletions tfjs-core/src/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@
* =============================================================================
*/

// This incantation makes Closure think that exported symbols are mutable.
// Mutable file-level exports are disallowed per style and won't reliably
// work. This hack also has a cost in terms of code size, and is only used
// to preserve the preexisting behavior of this code.
// tslint:disable-next-line:ban-ts-ignore see above
// @ts-ignore
exports = {};

import {Platform} from './platforms/platform';

// Expects flags from URL in the format ?tfjsflags=FLAG1:1,FLAG2:true.
Expand Down