Skip to content

Commit

Permalink
Fix NodeJS bootstrap.
Browse files Browse the repository at this point in the history
Fixes #1195.

RELNOTES: Fix NodeJS bootstrap.
PiperOrigin-RevId: 534894065
Change-Id: Ib1d7c05c7669b45a8f2991ba5e4ea619f666ee97
  • Loading branch information
12wrigja authored and Copybara-Service committed May 24, 2023
1 parent a99c155 commit 7c9edc1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions closure/goog/bootstrap/nodejs.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ var vm = require('vm');
*/
global.goog = {};

/** The runtime nodejs bootstrap relies on the Debug Loader being enabled. */
global.CLOSURE_UNCOMPILED_DEFINES = global.CLOSURE_UNCOMPILED_DEFINES || {};
global.CLOSURE_UNCOMPILED_DEFINES['goog.ENABLE_DEBUG_LOADER'] = true;

/**
* Imports a script using Node's require() API.
Expand Down

0 comments on commit 7c9edc1

Please sign in to comment.