@angular-devkit/build-angular 17.0.7 → 17.0.8
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/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-devkit/build-angular",
|
|
3
|
-
"version": "17.0.
|
|
3
|
+
"version": "17.0.8",
|
|
4
4
|
"description": "Angular Webpack Build Facade",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"typings": "src/index.d.ts",
|
|
7
7
|
"builders": "builders.json",
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@ampproject/remapping": "2.2.1",
|
|
10
|
-
"@angular-devkit/architect": "0.1700.
|
|
11
|
-
"@angular-devkit/build-webpack": "0.1700.
|
|
12
|
-
"@angular-devkit/core": "17.0.
|
|
10
|
+
"@angular-devkit/architect": "0.1700.8",
|
|
11
|
+
"@angular-devkit/build-webpack": "0.1700.8",
|
|
12
|
+
"@angular-devkit/core": "17.0.8",
|
|
13
13
|
"@babel/core": "7.23.2",
|
|
14
14
|
"@babel/generator": "7.23.0",
|
|
15
15
|
"@babel/helper-annotate-as-pure": "7.22.5",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"@babel/preset-env": "7.23.2",
|
|
21
21
|
"@babel/runtime": "7.23.2",
|
|
22
22
|
"@discoveryjs/json-ext": "0.5.7",
|
|
23
|
-
"@ngtools/webpack": "17.0.
|
|
23
|
+
"@ngtools/webpack": "17.0.8",
|
|
24
24
|
"@vitejs/plugin-basic-ssl": "1.0.1",
|
|
25
25
|
"ansi-colors": "4.1.3",
|
|
26
26
|
"autoprefixer": "10.4.16",
|
|
@@ -505,11 +505,9 @@ async function setupServer(serverOptions, outputFiles, assets, preserveSymlinks,
|
|
|
505
505
|
return;
|
|
506
506
|
}
|
|
507
507
|
transformIndexHtmlAndAddHeaders(url, rawHtml, res, next, async (html) => {
|
|
508
|
-
const protocol = serverOptions.ssl ? 'https' : 'http';
|
|
509
|
-
const route = `${protocol}://${req.headers.host}${req.originalUrl}`;
|
|
510
508
|
const { content } = await (0, render_page_1.renderPage)({
|
|
511
509
|
document: html,
|
|
512
|
-
route,
|
|
510
|
+
route: new URL(req.originalUrl ?? '/', server.resolvedUrls?.local[0]).toString(),
|
|
513
511
|
serverContext: 'ssr',
|
|
514
512
|
loadBundle: (uri) =>
|
|
515
513
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -40,7 +40,7 @@ function createAngularCompilerHost(compilerOptions, hostOptions) {
|
|
|
40
40
|
return null;
|
|
41
41
|
}
|
|
42
42
|
const result = await hostOptions.transformStylesheet(data, context.containingFile, context.resourceFile ?? undefined);
|
|
43
|
-
return result ? { content: result } : null;
|
|
43
|
+
return typeof result === 'string' ? { content: result } : null;
|
|
44
44
|
};
|
|
45
45
|
// Allow the AOT compiler to request the set of changed templates and styles
|
|
46
46
|
host.getModifiedResourceFiles = function () {
|
|
@@ -401,22 +401,19 @@ function createCompilerOptionsTransformer(setupWarnings, pluginOptions, preserve
|
|
|
401
401
|
function bundleWebWorker(build, pluginOptions, workerFile) {
|
|
402
402
|
try {
|
|
403
403
|
return build.esbuild.buildSync({
|
|
404
|
+
...build.initialOptions,
|
|
404
405
|
platform: 'browser',
|
|
405
406
|
write: false,
|
|
406
407
|
bundle: true,
|
|
407
408
|
metafile: true,
|
|
408
409
|
format: 'esm',
|
|
409
|
-
mainFields: ['es2020', 'es2015', 'browser', 'module', 'main'],
|
|
410
|
-
logLevel: 'silent',
|
|
411
|
-
sourcemap: pluginOptions.sourcemap,
|
|
412
410
|
entryNames: 'worker-[hash]',
|
|
413
411
|
entryPoints: [workerFile],
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
target: build.initialOptions.target,
|
|
412
|
+
sourcemap: pluginOptions.sourcemap,
|
|
413
|
+
// Zone.js is not used in Web workers so no need to disable
|
|
414
|
+
supported: undefined,
|
|
415
|
+
// Plugins are not supported in sync esbuild calls
|
|
416
|
+
plugins: undefined,
|
|
420
417
|
});
|
|
421
418
|
}
|
|
422
419
|
catch (error) {
|
|
@@ -49,7 +49,15 @@ let postcss;
|
|
|
49
49
|
*
|
|
50
50
|
* Based on https://tailwindcss.com/docs/functions-and-directives
|
|
51
51
|
*/
|
|
52
|
-
const TAILWIND_KEYWORDS = [
|
|
52
|
+
const TAILWIND_KEYWORDS = [
|
|
53
|
+
'@tailwind',
|
|
54
|
+
'@layer',
|
|
55
|
+
'@apply',
|
|
56
|
+
'@config',
|
|
57
|
+
'theme(',
|
|
58
|
+
'screen(',
|
|
59
|
+
'@screen', // Undocumented in version 3, see: https://github.com/tailwindlabs/tailwindcss/discussions/7516.
|
|
60
|
+
];
|
|
53
61
|
/**
|
|
54
62
|
* Cached postcss instances that can be re-used between various StylesheetPluginFactory instances.
|
|
55
63
|
*/
|