mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-28 11:10:12 +08:00
Refactored the `CommonEngine` API import path to remove Node.js dependencies from the `@angular/ssr` main entry-point. BREAKING CHANGE: The `CommonEngine` API now needs to be imported from `@angular/ssr/node`. **Before** ```ts import { CommonEngine } from '@angular/ssr'; ``` **After** ```ts import { CommonEngine } from '@angular/ssr/node'; ```
21 lines
419 B
Python
21 lines
419 B
Python
load("//tools:defaults.bzl", "ts_library")
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
ts_library(
|
|
name = "node",
|
|
srcs = glob(
|
|
[
|
|
"*.ts",
|
|
"src/**/*.ts",
|
|
],
|
|
),
|
|
module_name = "@angular/ssr/node",
|
|
deps = [
|
|
"//packages/angular/ssr",
|
|
"@npm//@angular/core",
|
|
"@npm//@angular/platform-server",
|
|
"@npm//@types/node",
|
|
],
|
|
)
|