提交 bd231b0b 编写于 作者: B bryk

Fix js_module_root compiler option

Now it is correctly specified and allows for imports anchored at
frontend src, e.g., `import 'chrome/chrome';`.
上级 e180bb12
......@@ -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.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册