From bd231b0bb10c38833ca0f10b98debc6614399305 Mon Sep 17 00:00:00 2001 From: bryk Date: Thu, 19 Nov 2015 15:43:41 +0100 Subject: [PATCH] Fix js_module_root compiler option Now it is correctly specified and allows for imports anchored at frontend src, e.g., `import 'chrome/chrome';`. --- build/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/script.js b/build/script.js index f5d8323bf..7afb4b971 100644 --- a/build/script.js +++ b/build/script.js @@ -59,7 +59,7 @@ gulp.task('scripts:prod', ['angular-templates'], function() { // "foo_flag: null" means that a flag is enabled. compilerFlags: { angular_pass: null, - closure_entry_point: 'module$src$app$frontend$index_module', + closure_entry_point: 'module$index_module', compilation_level: 'ADVANCED_OPTIMIZATIONS', export_local_property_definitions: null, externs: [ @@ -76,7 +76,7 @@ gulp.task('scripts:prod', ['angular-templates'], function() { path.join(conf.paths.externs, '**/*.js'), ], generate_exports: null, - js_module_root: conf.paths.frontendSrc, + js_module_root: path.relative(conf.paths.base, conf.paths.frontendSrc), // Enable all compiler checks by default and make them errors. jscomp_error: '*', // Disable checks that are not applicable to the project. -- GitLab