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:

committed by
Andrew Kushnir

parent
84857a267c
commit
aa7f2c8dc7
16
packages/bazel/test/ngc-wrapped/flat_module/BUILD.bazel
Normal file
16
packages/bazel/test/ngc-wrapped/flat_module/BUILD.bazel
Normal 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",
|
||||
],
|
||||
)
|
9
packages/bazel/test/ngc-wrapped/flat_module/export.ts
Normal file
9
packages/bazel/test/ngc-wrapped/flat_module/export.ts
Normal 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';
|
9
packages/bazel/test/ngc-wrapped/flat_module/index.ts
Normal file
9
packages/bazel/test/ngc-wrapped/flat_module/index.ts
Normal 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';
|
@ -0,0 +1,6 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"skipLibCheck": true,
|
||||
"types": []
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user