@angular-devkit/build-angular 18.1.0-next.0 → 18.1.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -14
- package/package.json +38 -30
- package/plugins/karma.d.ts +1 -1
- package/plugins/karma.js +1 -1
- package/src/babel-bazel.d.ts +1 -1
- package/src/builders/app-shell/index.d.ts +1 -1
- package/src/builders/app-shell/index.js +1 -1
- package/src/builders/app-shell/render-worker.d.ts +1 -1
- package/src/builders/app-shell/render-worker.js +1 -1
- package/src/builders/browser/index.d.ts +1 -1
- package/src/builders/browser/index.js +3 -3
- package/src/builders/browser-esbuild/builder-status-warnings.d.ts +1 -1
- package/src/builders/browser-esbuild/builder-status-warnings.js +2 -3
- package/src/builders/browser-esbuild/index.d.ts +1 -1
- package/src/builders/browser-esbuild/index.js +2 -3
- package/src/builders/dev-server/builder.d.ts +1 -2
- package/src/builders/dev-server/builder.js +3 -4
- package/src/builders/dev-server/index.d.ts +1 -1
- package/src/builders/dev-server/index.js +1 -1
- package/src/builders/dev-server/options.d.ts +5 -1
- package/src/builders/dev-server/options.js +27 -3
- package/src/builders/dev-server/schema.d.ts +10 -0
- package/src/builders/dev-server/schema.json +11 -0
- package/src/builders/dev-server/webpack-server.d.ts +1 -1
- package/src/builders/dev-server/webpack-server.js +4 -4
- package/src/builders/extract-i18n/application-extraction.d.ts +1 -1
- package/src/builders/extract-i18n/application-extraction.js +2 -3
- package/src/builders/extract-i18n/builder.d.ts +1 -1
- package/src/builders/extract-i18n/builder.js +2 -3
- package/src/builders/extract-i18n/empty-loader.d.ts +1 -1
- package/src/builders/extract-i18n/empty-loader.js +2 -2
- package/src/builders/extract-i18n/index.d.ts +1 -1
- package/src/builders/extract-i18n/index.js +1 -1
- package/src/builders/extract-i18n/ivy-extract-loader.d.ts +1 -1
- package/src/builders/extract-i18n/ivy-extract-loader.js +2 -2
- package/src/builders/extract-i18n/options.d.ts +1 -1
- package/src/builders/extract-i18n/options.js +2 -3
- package/src/builders/extract-i18n/webpack-extraction.d.ts +1 -1
- package/src/builders/extract-i18n/webpack-extraction.js +2 -3
- package/src/builders/jest/index.d.ts +1 -1
- package/src/builders/jest/index.js +1 -1
- package/src/builders/jest/init-test-bed.mjs +5 -2
- package/src/builders/jest/jest-global.mjs +2 -2
- package/src/builders/jest/jest.config.mjs +1 -1
- package/src/builders/jest/options.d.ts +1 -1
- package/src/builders/jest/options.js +2 -3
- package/src/builders/karma/find-tests-plugin.d.ts +1 -1
- package/src/builders/karma/find-tests-plugin.js +1 -1
- package/src/builders/karma/index.d.ts +1 -1
- package/src/builders/karma/index.js +2 -3
- package/src/builders/ng-packagr/index.d.ts +1 -1
- package/src/builders/ng-packagr/index.js +2 -3
- package/src/builders/prerender/index.d.ts +1 -1
- package/src/builders/prerender/index.js +2 -3
- package/src/builders/prerender/render-worker.d.ts +1 -1
- package/src/builders/prerender/render-worker.js +1 -1
- package/src/builders/prerender/routes-extractor-worker.d.ts +1 -1
- package/src/builders/prerender/routes-extractor-worker.js +1 -1
- package/src/builders/protractor/index.d.ts +1 -1
- package/src/builders/protractor/index.js +2 -3
- package/src/builders/server/index.d.ts +1 -1
- package/src/builders/server/index.js +2 -3
- package/src/builders/server/platform-server-exports-loader.d.ts +1 -1
- package/src/builders/server/platform-server-exports-loader.js +2 -2
- package/src/builders/ssr-dev-server/index.d.ts +1 -1
- package/src/builders/ssr-dev-server/index.js +3 -4
- package/src/builders/ssr-dev-server/utils.d.ts +1 -2
- package/src/builders/ssr-dev-server/utils.js +4 -5
- package/src/builders/web-test-runner/builder-status-warnings.d.ts +1 -1
- package/src/builders/web-test-runner/builder-status-warnings.js +2 -3
- package/src/builders/web-test-runner/index.d.ts +1 -1
- package/src/builders/web-test-runner/index.js +1 -1
- package/src/builders/web-test-runner/jasmine_runner.js +1 -1
- package/src/builders/web-test-runner/options.d.ts +1 -1
- package/src/builders/web-test-runner/options.js +2 -3
- package/src/index.d.ts +1 -1
- package/src/index.js +1 -1
- package/src/tools/babel/babel-loader.d.ts +1 -1
- package/src/tools/babel/presets/application.d.ts +1 -1
- package/src/tools/babel/presets/application.js +3 -4
- package/src/tools/babel/webpack-loader.d.ts +1 -1
- package/src/tools/babel/webpack-loader.js +1 -1
- package/src/tools/webpack/configs/common.d.ts +1 -1
- package/src/tools/webpack/configs/common.js +2 -3
- package/src/tools/webpack/configs/dev-server.d.ts +1 -1
- package/src/tools/webpack/configs/dev-server.js +3 -4
- package/src/tools/webpack/configs/index.d.ts +1 -1
- package/src/tools/webpack/configs/index.js +1 -1
- package/src/tools/webpack/configs/styles.d.ts +1 -1
- package/src/tools/webpack/configs/styles.js +2 -3
- package/src/tools/webpack/plugins/any-component-style-budget-checker.d.ts +1 -1
- package/src/tools/webpack/plugins/any-component-style-budget-checker.js +1 -1
- package/src/tools/webpack/plugins/builder-watch-plugin.d.ts +1 -1
- package/src/tools/webpack/plugins/builder-watch-plugin.js +1 -1
- package/src/tools/webpack/plugins/common-js-usage-warn-plugin.d.ts +1 -1
- package/src/tools/webpack/plugins/common-js-usage-warn-plugin.js +1 -1
- package/src/tools/webpack/plugins/css-optimizer-plugin.d.ts +1 -1
- package/src/tools/webpack/plugins/css-optimizer-plugin.js +1 -1
- package/src/tools/webpack/plugins/dedupe-module-resolve-plugin.d.ts +1 -1
- package/src/tools/webpack/plugins/dedupe-module-resolve-plugin.js +1 -1
- package/src/tools/webpack/plugins/devtools-ignore-plugin.d.ts +1 -1
- package/src/tools/webpack/plugins/devtools-ignore-plugin.js +1 -1
- package/src/tools/webpack/plugins/esbuild-executor.d.ts +1 -1
- package/src/tools/webpack/plugins/esbuild-executor.js +1 -1
- package/src/tools/webpack/plugins/hmr/hmr-accept.d.ts +1 -1
- package/src/tools/webpack/plugins/hmr/hmr-accept.js +2 -2
- package/src/tools/webpack/plugins/hmr/hmr-loader.d.ts +1 -1
- package/src/tools/webpack/plugins/hmr/hmr-loader.js +2 -2
- package/src/tools/webpack/plugins/index-html-webpack-plugin.d.ts +1 -1
- package/src/tools/webpack/plugins/index-html-webpack-plugin.js +1 -1
- package/src/tools/webpack/plugins/index.d.ts +1 -1
- package/src/tools/webpack/plugins/index.js +1 -1
- package/src/tools/webpack/plugins/javascript-optimizer-plugin.d.ts +1 -1
- package/src/tools/webpack/plugins/javascript-optimizer-plugin.js +1 -1
- package/src/tools/webpack/plugins/javascript-optimizer-worker.d.ts +1 -1
- package/src/tools/webpack/plugins/javascript-optimizer-worker.js +2 -2
- package/src/tools/webpack/plugins/json-stats-plugin.d.ts +1 -1
- package/src/tools/webpack/plugins/json-stats-plugin.js +1 -1
- package/src/tools/webpack/plugins/karma/karma.d.ts +1 -1
- package/src/tools/webpack/plugins/karma/karma.js +1 -1
- package/src/tools/webpack/plugins/named-chunks-plugin.d.ts +1 -1
- package/src/tools/webpack/plugins/named-chunks-plugin.js +1 -1
- package/src/tools/webpack/plugins/occurrences-plugin.d.ts +1 -1
- package/src/tools/webpack/plugins/occurrences-plugin.js +1 -1
- package/src/tools/webpack/plugins/postcss-cli-resources.d.ts +1 -1
- package/src/tools/webpack/plugins/postcss-cli-resources.js +2 -2
- package/src/tools/webpack/plugins/progress-plugin.d.ts +1 -1
- package/src/tools/webpack/plugins/progress-plugin.js +1 -1
- package/src/tools/webpack/plugins/remove-hash-plugin.d.ts +1 -1
- package/src/tools/webpack/plugins/remove-hash-plugin.js +1 -1
- package/src/tools/webpack/plugins/scripts-webpack-plugin.d.ts +1 -1
- package/src/tools/webpack/plugins/scripts-webpack-plugin.js +1 -1
- package/src/tools/webpack/plugins/service-worker-plugin.d.ts +1 -1
- package/src/tools/webpack/plugins/service-worker-plugin.js +1 -1
- package/src/tools/webpack/plugins/styles-webpack-plugin.d.ts +1 -1
- package/src/tools/webpack/plugins/styles-webpack-plugin.js +1 -1
- package/src/tools/webpack/plugins/suppress-entry-chunks-webpack-plugin.d.ts +1 -1
- package/src/tools/webpack/plugins/suppress-entry-chunks-webpack-plugin.js +1 -1
- package/src/tools/webpack/plugins/transfer-size-plugin.d.ts +1 -1
- package/src/tools/webpack/plugins/transfer-size-plugin.js +1 -1
- package/src/tools/webpack/plugins/typescript.d.ts +1 -1
- package/src/tools/webpack/plugins/typescript.js +2 -3
- package/src/tools/webpack/plugins/watch-files-logs-plugin.d.ts +1 -1
- package/src/tools/webpack/plugins/watch-files-logs-plugin.js +1 -1
- package/src/tools/webpack/utils/async-chunks.d.ts +1 -1
- package/src/tools/webpack/utils/async-chunks.js +2 -3
- package/src/tools/webpack/utils/helpers.d.ts +1 -1
- package/src/tools/webpack/utils/helpers.js +11 -12
- package/src/tools/webpack/utils/stats.d.ts +1 -1
- package/src/tools/webpack/utils/stats.js +8 -9
- package/src/transforms.d.ts +1 -1
- package/src/transforms.js +1 -1
- package/src/utils/action-executor.d.ts +1 -1
- package/src/utils/action-executor.js +1 -1
- package/src/utils/build-options.d.ts +1 -1
- package/src/utils/build-options.js +1 -1
- package/src/utils/bundle-inline-options.d.ts +1 -1
- package/src/utils/bundle-inline-options.js +1 -1
- package/src/utils/color.d.ts +1 -1
- package/src/utils/color.js +1 -1
- package/src/utils/copy-assets.d.ts +1 -1
- package/src/utils/copy-assets.js +2 -3
- package/src/utils/default-progress.d.ts +1 -1
- package/src/utils/default-progress.js +2 -3
- package/src/utils/environment-options.d.ts +1 -1
- package/src/utils/environment-options.js +1 -1
- package/src/utils/error.d.ts +1 -1
- package/src/utils/error.js +2 -3
- package/src/utils/i18n-inlining.d.ts +1 -1
- package/src/utils/i18n-inlining.js +2 -3
- package/src/utils/i18n-webpack.d.ts +1 -1
- package/src/utils/i18n-webpack.js +3 -3
- package/src/utils/index.d.ts +1 -1
- package/src/utils/index.js +1 -1
- package/src/utils/load-esm.d.ts +1 -1
- package/src/utils/load-esm.js +2 -3
- package/src/utils/normalize-asset-patterns.d.ts +1 -1
- package/src/utils/normalize-asset-patterns.js +3 -3
- package/src/utils/normalize-builder-schema.d.ts +1 -1
- package/src/utils/normalize-builder-schema.js +2 -3
- package/src/utils/normalize-cache.d.ts +1 -1
- package/src/utils/normalize-cache.js +3 -4
- package/src/utils/normalize-file-replacements.d.ts +1 -1
- package/src/utils/normalize-file-replacements.js +3 -3
- package/src/utils/normalize-optimization.d.ts +1 -1
- package/src/utils/normalize-optimization.js +2 -3
- package/src/utils/normalize-polyfills.d.ts +1 -1
- package/src/utils/normalize-polyfills.js +2 -3
- package/src/utils/normalize-source-maps.d.ts +1 -1
- package/src/utils/normalize-source-maps.js +2 -3
- package/src/utils/output-paths.d.ts +1 -1
- package/src/utils/output-paths.js +2 -3
- package/src/utils/package-chunk-sort.d.ts +1 -1
- package/src/utils/package-chunk-sort.js +2 -3
- package/src/utils/package-version.d.ts +1 -1
- package/src/utils/package-version.js +1 -1
- package/src/utils/process-bundle.d.ts +3 -3
- package/src/utils/process-bundle.js +2 -3
- package/src/utils/read-tsconfig.d.ts +1 -1
- package/src/utils/read-tsconfig.js +2 -3
- package/src/utils/run-module-as-observable-fork.d.ts +1 -1
- package/src/utils/run-module-as-observable-fork.js +2 -3
- package/src/utils/run-module-worker.js +1 -1
- package/src/utils/spinner.d.ts +1 -1
- package/src/utils/spinner.js +1 -1
- package/src/utils/tailwind.d.ts +1 -1
- package/src/utils/tailwind.js +2 -3
- package/src/utils/test-files.d.ts +1 -1
- package/src/utils/test-files.js +2 -3
- package/src/utils/tty.d.ts +1 -1
- package/src/utils/tty.js +2 -3
- package/src/utils/url.d.ts +1 -1
- package/src/utils/url.js +2 -3
- package/src/utils/webpack-browser-config.d.ts +1 -1
- package/src/utils/webpack-browser-config.js +6 -7
- package/src/utils/webpack-diagnostics.d.ts +1 -1
- package/src/utils/webpack-diagnostics.js +3 -4
package/src/utils/tailwind.js
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
6
|
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
-
* found in the LICENSE file at https://angular.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.findTailwindConfigurationFile =
|
|
10
|
+
exports.findTailwindConfigurationFile = findTailwindConfigurationFile;
|
|
11
11
|
const promises_1 = require("node:fs/promises");
|
|
12
12
|
const node_path_1 = require("node:path");
|
|
13
13
|
const tailwindConfigFiles = [
|
|
@@ -31,4 +31,3 @@ async function findTailwindConfigurationFile(workspaceRoot, projectRoot) {
|
|
|
31
31
|
}
|
|
32
32
|
return undefined;
|
|
33
33
|
}
|
|
34
|
-
exports.findTailwindConfigurationFile = findTailwindConfigurationFile;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import fastGlob from 'fast-glob';
|
|
9
9
|
/**
|
package/src/utils/test-files.js
CHANGED
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
6
|
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
-
* found in the LICENSE file at https://angular.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
10
10
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.findTestFiles =
|
|
13
|
+
exports.findTestFiles = findTestFiles;
|
|
14
14
|
const fast_glob_1 = __importDefault(require("fast-glob"));
|
|
15
15
|
/**
|
|
16
16
|
* Finds all test files in the project.
|
|
@@ -32,4 +32,3 @@ async function findTestFiles(include, exclude, workspaceRoot, glob = fast_glob_1
|
|
|
32
32
|
// Flatten and deduplicate any files found in multiple include patterns.
|
|
33
33
|
return new Set(included.flat());
|
|
34
34
|
}
|
|
35
|
-
exports.findTestFiles = findTestFiles;
|
package/src/utils/tty.d.ts
CHANGED
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
export declare function isTTY(): boolean;
|
package/src/utils/tty.js
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
6
|
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
-
* found in the LICENSE file at https://angular.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.isTTY =
|
|
10
|
+
exports.isTTY = isTTY;
|
|
11
11
|
function _isTruthy(value) {
|
|
12
12
|
// Returns true if value is a string that is anything but 0 or false.
|
|
13
13
|
return value !== undefined && value !== '0' && value.toUpperCase() !== 'FALSE';
|
|
@@ -20,4 +20,3 @@ function isTTY() {
|
|
|
20
20
|
}
|
|
21
21
|
return !!process.stdout.isTTY && !_isTruthy(process.env['CI']);
|
|
22
22
|
}
|
|
23
|
-
exports.isTTY = isTTY;
|
package/src/utils/url.d.ts
CHANGED
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
export declare function urlJoin(...parts: string[]): string;
|
package/src/utils/url.js
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
6
|
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
-
* found in the LICENSE file at https://angular.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.urlJoin =
|
|
10
|
+
exports.urlJoin = urlJoin;
|
|
11
11
|
function urlJoin(...parts) {
|
|
12
12
|
const [p, ...rest] = parts;
|
|
13
13
|
// Remove trailing slash from first part
|
|
@@ -15,4 +15,3 @@ function urlJoin(...parts) {
|
|
|
15
15
|
// Dedupe double slashes from path names
|
|
16
16
|
return p.replace(/\/$/, '') + ('/' + rest.join('/')).replace(/\/\/+/g, '/');
|
|
17
17
|
}
|
|
18
|
-
exports.urlJoin = urlJoin;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import { BuilderContext } from '@angular-devkit/architect';
|
|
9
9
|
import { Configuration } from 'webpack';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
6
|
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
-
* found in the LICENSE file at https://angular.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
@@ -30,7 +30,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
30
30
|
return result;
|
|
31
31
|
};
|
|
32
32
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33
|
-
exports.
|
|
33
|
+
exports.generateWebpackConfig = generateWebpackConfig;
|
|
34
|
+
exports.generateI18nBrowserWebpackConfigFromContext = generateI18nBrowserWebpackConfigFromContext;
|
|
35
|
+
exports.generateBrowserWebpackConfigFromContext = generateBrowserWebpackConfigFromContext;
|
|
36
|
+
exports.getIndexOutputFile = getIndexOutputFile;
|
|
37
|
+
exports.getIndexInputFile = getIndexInputFile;
|
|
34
38
|
const path = __importStar(require("path"));
|
|
35
39
|
const webpack_1 = require("webpack");
|
|
36
40
|
const webpack_merge_1 = require("webpack-merge");
|
|
@@ -61,7 +65,6 @@ async function generateWebpackConfig(workspaceRoot, projectRoot, sourceRoot, pro
|
|
|
61
65
|
const webpackConfig = (0, webpack_merge_1.merge)(partials);
|
|
62
66
|
return webpackConfig;
|
|
63
67
|
}
|
|
64
|
-
exports.generateWebpackConfig = generateWebpackConfig;
|
|
65
68
|
async function generateI18nBrowserWebpackConfigFromContext(options, context, webpackPartialGenerator, extraBuildOptions = {}) {
|
|
66
69
|
const { buildOptions, i18n } = await (0, i18n_webpack_1.configureI18nBuild)(context, options);
|
|
67
70
|
const result = await generateBrowserWebpackConfigFromContext(buildOptions, context, (wco) => {
|
|
@@ -102,7 +105,6 @@ async function generateI18nBrowserWebpackConfigFromContext(options, context, web
|
|
|
102
105
|
}
|
|
103
106
|
return { ...result, i18n };
|
|
104
107
|
}
|
|
105
|
-
exports.generateI18nBrowserWebpackConfigFromContext = generateI18nBrowserWebpackConfigFromContext;
|
|
106
108
|
async function generateBrowserWebpackConfigFromContext(options, context, webpackPartialGenerator, extraBuildOptions = {}) {
|
|
107
109
|
const projectName = context.target && context.target.project;
|
|
108
110
|
if (!projectName) {
|
|
@@ -130,7 +132,6 @@ async function generateBrowserWebpackConfigFromContext(options, context, webpack
|
|
|
130
132
|
projectSourceRoot,
|
|
131
133
|
};
|
|
132
134
|
}
|
|
133
|
-
exports.generateBrowserWebpackConfigFromContext = generateBrowserWebpackConfigFromContext;
|
|
134
135
|
function getIndexOutputFile(index) {
|
|
135
136
|
if (typeof index === 'string') {
|
|
136
137
|
return path.basename(index);
|
|
@@ -139,7 +140,6 @@ function getIndexOutputFile(index) {
|
|
|
139
140
|
return index.output || 'index.html';
|
|
140
141
|
}
|
|
141
142
|
}
|
|
142
|
-
exports.getIndexOutputFile = getIndexOutputFile;
|
|
143
143
|
function getIndexInputFile(index) {
|
|
144
144
|
if (typeof index === 'string') {
|
|
145
145
|
return index;
|
|
@@ -148,4 +148,3 @@ function getIndexInputFile(index) {
|
|
|
148
148
|
return index.input;
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
|
-
exports.getIndexInputFile = getIndexInputFile;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright Google LLC All Rights Reserved.
|
|
4
4
|
*
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.
|
|
6
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import type { Compilation } from 'webpack';
|
|
9
9
|
export declare function addWarning(compilation: Compilation, message: string): void;
|
|
@@ -4,15 +4,14 @@
|
|
|
4
4
|
* Copyright Google LLC All Rights Reserved.
|
|
5
5
|
*
|
|
6
6
|
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
-
* found in the LICENSE file at https://angular.
|
|
7
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.
|
|
10
|
+
exports.addWarning = addWarning;
|
|
11
|
+
exports.addError = addError;
|
|
11
12
|
function addWarning(compilation, message) {
|
|
12
13
|
compilation.warnings.push(new compilation.compiler.webpack.WebpackError(message));
|
|
13
14
|
}
|
|
14
|
-
exports.addWarning = addWarning;
|
|
15
15
|
function addError(compilation, message) {
|
|
16
16
|
compilation.errors.push(new compilation.compiler.webpack.WebpackError(message));
|
|
17
17
|
}
|
|
18
|
-
exports.addError = addError;
|