fix(bazel): flat module misses AMD module name on windows (#27839)

* Fixes that the flat module out files do not have a proper AMD module name on Windows. This is currently blocking serving a `ng_module` using the Bazel TypeScript `devserver` on Windows.

PR Close #27839
This commit is contained in:
Paul Gschwendtner
2018-12-26 19:12:29 +01:00
committed by Andrew Kushnir
parent 84857a267c
commit aa7f2c8dc7
7 changed files with 104 additions and 6 deletions

View File

@ -0,0 +1,16 @@
load("//tools:defaults.bzl", "ng_module")
package(default_visibility = ["//packages/bazel/test:__subpackages__"])
ng_module(
name = "flat_module",
srcs = [
"export.ts",
"index.ts",
],
module_name = "flat_module",
tsconfig = ":tsconfig.json",
deps = [
"//packages/core",
],
)

View File

@ -0,0 +1,9 @@
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
export const Test = 'This is a test export';

View File

@ -0,0 +1,9 @@
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
export * from './export';

View File

@ -0,0 +1,6 @@
{
"compilerOptions": {
"skipLibCheck": true,
"types": []
}
}