@nx/webpack 23.0.0-pr.35413.460eeef → 23.0.0-rc.0
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/{app-plugin.d.ts → dist/app-plugin.d.ts} +0 -1
- package/{index.d.ts → dist/index.d.ts} +0 -4
- package/{index.js → dist/index.js} +1 -4
- package/dist/internal.d.ts +8 -0
- package/dist/internal.js +26 -0
- package/{plugin.d.ts → dist/plugin.d.ts} +0 -1
- package/{src → dist/src}/executors/dev-server/dev-server.impl.d.ts +0 -1
- package/{src → dist/src}/executors/dev-server/dev-server.impl.js +10 -8
- package/{src → dist/src}/executors/dev-server/lib/get-dev-server-config.d.ts +0 -1
- package/{src → dist/src}/executors/dev-server/lib/serve-path.d.ts +0 -1
- package/{src → dist/src}/executors/dev-server/schema.json +1 -0
- package/{src → dist/src}/executors/ssr-dev-server/lib/wait-until-server-is-listening.d.ts +0 -1
- package/{src → dist/src}/executors/ssr-dev-server/ssr-dev-server.impl.d.ts +0 -1
- package/{src → dist/src}/executors/ssr-dev-server/ssr-dev-server.impl.js +2 -2
- package/{src → dist/src}/executors/webpack/lib/normalize-options.d.ts +0 -1
- package/{src → dist/src}/executors/webpack/lib/normalize-options.js +2 -2
- package/{src → dist/src}/executors/webpack/lib/run-webpack.d.ts +1 -2
- package/{src → dist/src}/executors/webpack/lib/run-webpack.js +3 -3
- package/{src → dist/src}/executors/webpack/schema.d.ts +1 -1
- package/{src → dist/src}/executors/webpack/schema.json +1 -0
- package/{src → dist/src}/executors/webpack/webpack.impl.d.ts +0 -1
- package/{src → dist/src}/executors/webpack/webpack.impl.js +6 -4
- package/{src → dist/src}/generators/configuration/configuration.d.ts +0 -1
- package/{src → dist/src}/generators/configuration/configuration.js +9 -2
- package/{src → dist/src}/generators/convert-config-to-webpack-plugin/convert-config-to-webpack-plugin.d.ts +0 -1
- package/{src → dist/src}/generators/convert-config-to-webpack-plugin/convert-config-to-webpack-plugin.js +5 -3
- package/{src → dist/src}/generators/convert-config-to-webpack-plugin/lib/extract-webpack-options.d.ts +0 -1
- package/{src → dist/src}/generators/convert-config-to-webpack-plugin/lib/normalize-path-options.d.ts +0 -1
- package/{src → dist/src}/generators/convert-config-to-webpack-plugin/lib/utils.d.ts +0 -1
- package/{src → dist/src}/generators/convert-config-to-webpack-plugin/lib/validate-project.d.ts +0 -1
- package/{src → dist/src}/generators/convert-to-inferred/convert-to-inferred.d.ts +0 -1
- package/{src → dist/src}/generators/convert-to-inferred/convert-to-inferred.js +5 -5
- package/{src → dist/src}/generators/convert-to-inferred/utils/ast.d.ts +0 -1
- package/{src → dist/src}/generators/convert-to-inferred/utils/build-post-target-transformer.d.ts +0 -1
- package/{src → dist/src}/generators/convert-to-inferred/utils/build-post-target-transformer.js +8 -8
- package/{src → dist/src}/generators/convert-to-inferred/utils/index.d.ts +0 -1
- package/{src → dist/src}/generators/convert-to-inferred/utils/serve-post-target-transformer.d.ts +0 -1
- package/{src → dist/src}/generators/convert-to-inferred/utils/serve-post-target-transformer.js +4 -4
- package/{src → dist/src}/generators/convert-to-inferred/utils/types.d.ts +1 -2
- package/{src → dist/src}/generators/init/init.d.ts +0 -1
- package/{src → dist/src}/generators/init/init.js +10 -3
- package/{src → dist/src}/generators/init/schema.json +1 -1
- package/{src → dist/src}/migrations/update-21-0-0/remove-isolated-config.d.ts +0 -1
- package/{src → dist/src}/migrations/update-21-0-0/remove-isolated-config.js +2 -2
- package/dist/src/migrations/update-21-0-0/remove-isolated-config.md +37 -0
- package/{src → dist/src}/migrations/update-22-0-0/remove-deprecated-options.d.ts +0 -1
- package/dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.d.ts +9 -0
- package/dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.js +223 -0
- package/dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.md +25 -0
- package/dist/src/migrations/update-23-0-0/remove-nx-tsconfig-paths-webpack-plugin-import.d.ts +2 -0
- package/dist/src/migrations/update-23-0-0/remove-nx-tsconfig-paths-webpack-plugin-import.js +128 -0
- package/dist/src/migrations/update-23-0-0/remove-nx-tsconfig-paths-webpack-plugin-import.md +54 -0
- package/dist/src/migrations/update-23-0-0/rewrite-internal-subpath-imports.d.ts +3 -0
- package/dist/src/migrations/update-23-0-0/rewrite-internal-subpath-imports.js +225 -0
- package/{src → dist/src}/plugins/generate-package-json-plugin.d.ts +0 -1
- package/{src → dist/src}/plugins/nx-typescript-webpack-plugin/nx-tsconfig-paths-webpack-plugin.d.ts +0 -1
- package/{src → dist/src}/plugins/nx-typescript-webpack-plugin/nx-tsconfig-paths-webpack-plugin.js +5 -5
- package/{src → dist/src}/plugins/nx-webpack-plugin/lib/apply-base-config.d.ts +0 -1
- package/{src → dist/src}/plugins/nx-webpack-plugin/lib/apply-base-config.js +2 -2
- package/{src → dist/src}/plugins/nx-webpack-plugin/lib/apply-web-config.d.ts +0 -1
- package/{src → dist/src}/plugins/nx-webpack-plugin/lib/apply-web-config.js +3 -3
- package/{src → dist/src}/plugins/nx-webpack-plugin/lib/compiler-loaders.d.ts +0 -1
- package/{src → dist/src}/plugins/nx-webpack-plugin/lib/get-terser-ecma-version.d.ts +0 -1
- package/{src → dist/src}/plugins/nx-webpack-plugin/lib/instantiate-script-plugins.d.ts +0 -1
- package/{src → dist/src}/plugins/nx-webpack-plugin/lib/normalize-options.d.ts +0 -1
- package/{src → dist/src}/plugins/nx-webpack-plugin/lib/normalize-options.js +2 -2
- package/{src → dist/src}/plugins/nx-webpack-plugin/lib/stylesheet-loaders.d.ts +0 -1
- package/{src → dist/src}/plugins/nx-webpack-plugin/lib/utils.d.ts +0 -1
- package/{src → dist/src}/plugins/nx-webpack-plugin/nx-app-webpack-plugin-options.d.ts +1 -2
- package/{src → dist/src}/plugins/nx-webpack-plugin/nx-app-webpack-plugin.d.ts +0 -1
- package/{src → dist/src}/plugins/plugin.d.ts +3 -4
- package/{src → dist/src}/plugins/plugin.js +62 -29
- package/{src → dist/src}/plugins/stats-json-plugin.d.ts +0 -1
- package/{src → dist/src}/plugins/use-legacy-nx-plugin/use-legacy-nx-plugin.d.ts +0 -1
- package/{src → dist/src}/plugins/webpack-nx-build-coordination-plugin.d.ts +0 -1
- package/{src → dist/src}/plugins/write-index-html-plugin.d.ts +0 -1
- package/{src → dist/src}/utils/config.d.ts +12 -1
- package/{src → dist/src}/utils/config.js +17 -2
- package/{src → dist/src}/utils/create-copy-plugin.d.ts +0 -1
- package/dist/src/utils/deprecation.d.ts +8 -0
- package/dist/src/utils/deprecation.js +55 -0
- package/dist/src/utils/e2e-web-server-info-utils.d.ts +2 -0
- package/{src → dist/src}/utils/e2e-web-server-info-utils.js +6 -5
- package/{src → dist/src}/utils/ensure-dependencies.d.ts +0 -1
- package/{src → dist/src}/utils/ensure-dependencies.js +3 -3
- package/{src → dist/src}/utils/fs.d.ts +0 -1
- package/{src → dist/src}/utils/get-client-environment.d.ts +0 -1
- package/{src → dist/src}/utils/get-css-module-local-ident.d.ts +0 -1
- package/{src → dist/src}/utils/has-plugin.d.ts +0 -1
- package/{src → dist/src}/utils/hash-format.d.ts +0 -1
- package/{src → dist/src}/utils/models.d.ts +0 -1
- package/{src → dist/src}/utils/run-webpack.d.ts +0 -1
- package/dist/src/utils/versions.d.ts +12 -0
- package/dist/src/utils/versions.js +24 -0
- package/dist/src/utils/web-babel-loader.d.ts +1 -0
- package/{src → dist/src}/utils/web-babel-loader.js +2 -0
- package/dist/src/utils/webpack/deprecated-less-loader.js +19 -0
- package/{src → dist/src}/utils/webpack/interpolate-env-variables-to-index.d.ts +0 -1
- package/{src → dist/src}/utils/webpack/normalize-entry.d.ts +0 -1
- package/{src → dist/src}/utils/webpack/package-chunk-sort.d.ts +0 -1
- package/{src → dist/src}/utils/webpack/plugins/postcss-cli-resources.d.ts +0 -1
- package/{src → dist/src}/utils/webpack/plugins/scripts-webpack-plugin.d.ts +0 -1
- package/{src → dist/src}/utils/webpack/read-webpack-options.d.ts +0 -1
- package/{src → dist/src}/utils/webpack/resolve-user-defined-webpack-config.d.ts +0 -1
- package/{src → dist/src}/utils/webpack/resolve-user-defined-webpack-config.js +4 -6
- package/{src → dist/src}/utils/with-nx.d.ts +4 -1
- package/{src → dist/src}/utils/with-nx.js +6 -0
- package/{src → dist/src}/utils/with-web.d.ts +4 -1
- package/{src → dist/src}/utils/with-web.js +6 -0
- package/{tsconfig-paths-plugin.d.ts → dist/tsconfig-paths-plugin.d.ts} +0 -1
- package/executors.json +6 -6
- package/generators.json +8 -8
- package/migrations.json +34 -20
- package/package.json +85 -16
- package/app-plugin.d.ts.map +0 -1
- package/index.d.ts.map +0 -1
- package/plugin.d.ts.map +0 -1
- package/src/executors/dev-server/dev-server.impl.d.ts.map +0 -1
- package/src/executors/dev-server/lib/get-dev-server-config.d.ts.map +0 -1
- package/src/executors/dev-server/lib/serve-path.d.ts.map +0 -1
- package/src/executors/ssr-dev-server/lib/wait-until-server-is-listening.d.ts.map +0 -1
- package/src/executors/ssr-dev-server/ssr-dev-server.impl.d.ts.map +0 -1
- package/src/executors/webpack/lib/normalize-options.d.ts.map +0 -1
- package/src/executors/webpack/lib/run-webpack.d.ts.map +0 -1
- package/src/executors/webpack/webpack.impl.d.ts.map +0 -1
- package/src/generators/configuration/configuration.d.ts.map +0 -1
- package/src/generators/convert-config-to-webpack-plugin/convert-config-to-webpack-plugin.d.ts.map +0 -1
- package/src/generators/convert-config-to-webpack-plugin/lib/extract-webpack-options.d.ts.map +0 -1
- package/src/generators/convert-config-to-webpack-plugin/lib/normalize-path-options.d.ts.map +0 -1
- package/src/generators/convert-config-to-webpack-plugin/lib/utils.d.ts.map +0 -1
- package/src/generators/convert-config-to-webpack-plugin/lib/validate-project.d.ts.map +0 -1
- package/src/generators/convert-to-inferred/convert-to-inferred.d.ts.map +0 -1
- package/src/generators/convert-to-inferred/utils/ast.d.ts.map +0 -1
- package/src/generators/convert-to-inferred/utils/build-post-target-transformer.d.ts.map +0 -1
- package/src/generators/convert-to-inferred/utils/index.d.ts.map +0 -1
- package/src/generators/convert-to-inferred/utils/serve-post-target-transformer.d.ts.map +0 -1
- package/src/generators/convert-to-inferred/utils/types.d.ts.map +0 -1
- package/src/generators/init/init.d.ts.map +0 -1
- package/src/migrations/update-21-0-0/remove-isolated-config.d.ts.map +0 -1
- package/src/migrations/update-22-0-0/remove-deprecated-options.d.ts.map +0 -1
- package/src/plugins/generate-package-json-plugin.d.ts.map +0 -1
- package/src/plugins/nx-typescript-webpack-plugin/nx-tsconfig-paths-webpack-plugin.d.ts.map +0 -1
- package/src/plugins/nx-webpack-plugin/lib/apply-base-config.d.ts.map +0 -1
- package/src/plugins/nx-webpack-plugin/lib/apply-web-config.d.ts.map +0 -1
- package/src/plugins/nx-webpack-plugin/lib/compiler-loaders.d.ts.map +0 -1
- package/src/plugins/nx-webpack-plugin/lib/get-terser-ecma-version.d.ts.map +0 -1
- package/src/plugins/nx-webpack-plugin/lib/instantiate-script-plugins.d.ts.map +0 -1
- package/src/plugins/nx-webpack-plugin/lib/normalize-options.d.ts.map +0 -1
- package/src/plugins/nx-webpack-plugin/lib/stylesheet-loaders.d.ts.map +0 -1
- package/src/plugins/nx-webpack-plugin/lib/utils.d.ts.map +0 -1
- package/src/plugins/nx-webpack-plugin/nx-app-webpack-plugin-options.d.ts.map +0 -1
- package/src/plugins/nx-webpack-plugin/nx-app-webpack-plugin.d.ts.map +0 -1
- package/src/plugins/plugin.d.ts.map +0 -1
- package/src/plugins/stats-json-plugin.d.ts.map +0 -1
- package/src/plugins/use-legacy-nx-plugin/use-legacy-nx-plugin.d.ts.map +0 -1
- package/src/plugins/webpack-nx-build-coordination-plugin.d.ts.map +0 -1
- package/src/plugins/write-index-html-plugin.d.ts.map +0 -1
- package/src/utils/config.d.ts.map +0 -1
- package/src/utils/create-copy-plugin.d.ts.map +0 -1
- package/src/utils/e2e-web-server-info-utils.d.ts +0 -3
- package/src/utils/e2e-web-server-info-utils.d.ts.map +0 -1
- package/src/utils/ensure-dependencies.d.ts.map +0 -1
- package/src/utils/fs.d.ts.map +0 -1
- package/src/utils/get-client-environment.d.ts.map +0 -1
- package/src/utils/get-css-module-local-ident.d.ts.map +0 -1
- package/src/utils/has-plugin.d.ts.map +0 -1
- package/src/utils/hash-format.d.ts.map +0 -1
- package/src/utils/models.d.ts.map +0 -1
- package/src/utils/run-webpack.d.ts.map +0 -1
- package/src/utils/versions.d.ts +0 -8
- package/src/utils/versions.d.ts.map +0 -1
- package/src/utils/versions.js +0 -11
- package/src/utils/web-babel-loader.d.ts +0 -1
- package/src/utils/web-babel-loader.d.ts.map +0 -1
- package/src/utils/webpack/interpolate-env-variables-to-index.d.ts.map +0 -1
- package/src/utils/webpack/normalize-entry.d.ts.map +0 -1
- package/src/utils/webpack/package-chunk-sort.d.ts.map +0 -1
- package/src/utils/webpack/plugins/postcss-cli-resources.d.ts.map +0 -1
- package/src/utils/webpack/plugins/scripts-webpack-plugin.d.ts.map +0 -1
- package/src/utils/webpack/read-webpack-options.d.ts.map +0 -1
- package/src/utils/webpack/resolve-user-defined-webpack-config.d.ts.map +0 -1
- package/src/utils/with-nx.d.ts.map +0 -1
- package/src/utils/with-web.d.ts.map +0 -1
- package/tsconfig-paths-plugin.d.ts.map +0 -1
- /package/{LICENSE → dist/LICENSE} +0 -0
- /package/{app-plugin.js → dist/app-plugin.js} +0 -0
- /package/{plugin.js → dist/plugin.js} +0 -0
- /package/{src → dist/src}/executors/dev-server/lib/get-dev-server-config.js +0 -0
- /package/{src → dist/src}/executors/dev-server/lib/serve-path.js +0 -0
- /package/{src → dist/src}/executors/dev-server/schema.d.ts +0 -0
- /package/{src → dist/src}/executors/ssr-dev-server/lib/wait-until-server-is-listening.js +0 -0
- /package/{src → dist/src}/executors/ssr-dev-server/schema.d.ts +0 -0
- /package/{src → dist/src}/executors/ssr-dev-server/schema.json +0 -0
- /package/{src → dist/src}/generators/configuration/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/configuration/schema.json +0 -0
- /package/{src → dist/src}/generators/convert-config-to-webpack-plugin/lib/extract-webpack-options.js +0 -0
- /package/{src → dist/src}/generators/convert-config-to-webpack-plugin/lib/normalize-path-options.js +0 -0
- /package/{src → dist/src}/generators/convert-config-to-webpack-plugin/lib/utils.js +0 -0
- /package/{src → dist/src}/generators/convert-config-to-webpack-plugin/lib/validate-project.js +0 -0
- /package/{src → dist/src}/generators/convert-config-to-webpack-plugin/schema.json +0 -0
- /package/{src → dist/src}/generators/convert-to-inferred/schema.json +0 -0
- /package/{src → dist/src}/generators/convert-to-inferred/utils/ast.js +0 -0
- /package/{src → dist/src}/generators/convert-to-inferred/utils/index.js +0 -0
- /package/{src → dist/src}/generators/convert-to-inferred/utils/types.js +0 -0
- /package/{src → dist/src}/generators/init/schema.d.ts +0 -0
- /package/{src → dist/src}/migrations/update-22-0-0/remove-deprecated-options.js +0 -0
- /package/{src → dist/src}/plugins/generate-package-json-plugin.js +0 -0
- /package/{src → dist/src}/plugins/nx-webpack-plugin/lib/compiler-loaders.js +0 -0
- /package/{src → dist/src}/plugins/nx-webpack-plugin/lib/get-terser-ecma-version.js +0 -0
- /package/{src → dist/src}/plugins/nx-webpack-plugin/lib/instantiate-script-plugins.js +0 -0
- /package/{src → dist/src}/plugins/nx-webpack-plugin/lib/stylesheet-loaders.js +0 -0
- /package/{src → dist/src}/plugins/nx-webpack-plugin/lib/utils.js +0 -0
- /package/{src → dist/src}/plugins/nx-webpack-plugin/nx-app-webpack-plugin-options.js +0 -0
- /package/{src → dist/src}/plugins/nx-webpack-plugin/nx-app-webpack-plugin.js +0 -0
- /package/{src → dist/src}/plugins/stats-json-plugin.js +0 -0
- /package/{src → dist/src}/plugins/use-legacy-nx-plugin/use-legacy-nx-plugin.js +0 -0
- /package/{src → dist/src}/plugins/webpack-nx-build-coordination-plugin.js +0 -0
- /package/{src → dist/src}/plugins/write-index-html-plugin.js +0 -0
- /package/{src → dist/src}/utils/create-copy-plugin.js +0 -0
- /package/{src → dist/src}/utils/fs.js +0 -0
- /package/{src → dist/src}/utils/get-client-environment.js +0 -0
- /package/{src → dist/src}/utils/get-css-module-local-ident.js +0 -0
- /package/{src → dist/src}/utils/has-plugin.js +0 -0
- /package/{src → dist/src}/utils/hash-format.js +0 -0
- /package/{src → dist/src}/utils/models.js +0 -0
- /package/{src → dist/src}/utils/run-webpack.js +0 -0
- /package/{src → dist/src}/utils/webpack/interpolate-env-variables-to-index.js +0 -0
- /package/{src → dist/src}/utils/webpack/normalize-entry.js +0 -0
- /package/{src → dist/src}/utils/webpack/package-chunk-sort.js +0 -0
- /package/{src → dist/src}/utils/webpack/plugins/postcss-cli-resources.js +0 -0
- /package/{src → dist/src}/utils/webpack/plugins/scripts-webpack-plugin.js +0 -0
- /package/{src → dist/src}/utils/webpack/read-webpack-options.js +0 -0
- /package/{tsconfig-paths-plugin.js → dist/tsconfig-paths-plugin.js} +0 -0
|
@@ -5,13 +5,21 @@ exports.isNxWebpackComposablePlugin = isNxWebpackComposablePlugin;
|
|
|
5
5
|
exports.composePlugins = composePlugins;
|
|
6
6
|
exports.composePluginsSync = composePluginsSync;
|
|
7
7
|
const devkit_1 = require("@nx/devkit");
|
|
8
|
-
const
|
|
8
|
+
const internal_1 = require("@nx/js/internal");
|
|
9
9
|
const configuration_1 = require("nx/src/config/configuration");
|
|
10
|
+
const deprecation_1 = require("./deprecation");
|
|
10
11
|
exports.nxWebpackComposablePlugin = 'nxWebpackComposablePlugin';
|
|
11
12
|
function isNxWebpackComposablePlugin(a) {
|
|
12
13
|
return a?.[exports.nxWebpackComposablePlugin] === true;
|
|
13
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated Will be removed in Nx v24. Use `NxAppWebpackPlugin` from
|
|
17
|
+
* `@nx/webpack/app-plugin` in a standard webpack config and run
|
|
18
|
+
* `nx g @nx/webpack:convert-to-inferred`. See
|
|
19
|
+
* https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.
|
|
20
|
+
*/
|
|
14
21
|
function composePlugins(...plugins) {
|
|
22
|
+
(0, deprecation_1.warnWebpackComposeHelpersDeprecation)();
|
|
15
23
|
return Object.assign(async function combined(config, ctx) {
|
|
16
24
|
// Webpack may be calling us as a standard config function.
|
|
17
25
|
// Build up Nx context from environment variables.
|
|
@@ -31,7 +39,14 @@ function composePlugins(...plugins) {
|
|
|
31
39
|
[exports.nxWebpackComposablePlugin]: true,
|
|
32
40
|
});
|
|
33
41
|
}
|
|
42
|
+
/**
|
|
43
|
+
* @deprecated Will be removed in Nx v24. Use `NxAppWebpackPlugin` from
|
|
44
|
+
* `@nx/webpack/app-plugin` in a standard webpack config and run
|
|
45
|
+
* `nx g @nx/webpack:convert-to-inferred`. See
|
|
46
|
+
* https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.
|
|
47
|
+
*/
|
|
34
48
|
function composePluginsSync(...plugins) {
|
|
49
|
+
(0, deprecation_1.warnWebpackComposeHelpersDeprecation)();
|
|
35
50
|
return Object.assign(function combined(config, ctx) {
|
|
36
51
|
for (const plugin of plugins) {
|
|
37
52
|
config = plugin(config, ctx);
|
|
@@ -50,7 +65,7 @@ function ensureNxWebpackExecutionContext(ctx) {
|
|
|
50
65
|
ctx.options ??= {
|
|
51
66
|
root: devkit_1.workspaceRoot,
|
|
52
67
|
projectRoot: projectNode.data.root,
|
|
53
|
-
sourceRoot: (0,
|
|
68
|
+
sourceRoot: (0, internal_1.getProjectSourceRoot)(projectNode.data),
|
|
54
69
|
// These aren't actually needed since NxWebpackPlugin and withNx both support them being undefined.
|
|
55
70
|
assets: undefined,
|
|
56
71
|
outputPath: undefined,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const WEBPACK_EXECUTOR_DEPRECATION_MESSAGE = "The `@nx/webpack:webpack` executor is deprecated and will be removed in Nx v24. Run `nx g @nx/webpack:convert-to-inferred` to migrate to the `@nx/webpack/plugin` inferred targets. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.";
|
|
2
|
+
export declare const WEBPACK_DEV_SERVER_EXECUTOR_DEPRECATION_MESSAGE = "The `@nx/webpack:dev-server` executor is deprecated and will be removed in Nx v24. Run `nx g @nx/webpack:convert-to-inferred` to migrate to the `@nx/webpack/plugin` inferred targets. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.";
|
|
3
|
+
export declare function warnWebpackExecutorDeprecation(): void;
|
|
4
|
+
export declare function warnWebpackDevServerExecutorDeprecation(): void;
|
|
5
|
+
export declare function warnWebpackExecutorGenerating(): void;
|
|
6
|
+
export declare const WEBPACK_COMPOSE_HELPERS_DEPRECATION_MESSAGE = "The `composePlugins`, `withNx`, and `withWeb` config helpers from `@nx/webpack` are deprecated and will be removed in Nx v24. They produce an Nx-specific config function that only runs under the `@nx/webpack:webpack` executor. Migrate to a standard webpack config that uses `NxAppWebpackPlugin` (from `@nx/webpack/app-plugin`) under the inferred `@nx/webpack/plugin` by running `nx g @nx/webpack:convert-to-inferred`. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.";
|
|
7
|
+
export declare function suppressWebpackComposeHelperWarnings<T>(fn: () => T): T;
|
|
8
|
+
export declare function warnWebpackComposeHelpersDeprecation(): void;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WEBPACK_COMPOSE_HELPERS_DEPRECATION_MESSAGE = exports.WEBPACK_DEV_SERVER_EXECUTOR_DEPRECATION_MESSAGE = exports.WEBPACK_EXECUTOR_DEPRECATION_MESSAGE = void 0;
|
|
4
|
+
exports.warnWebpackExecutorDeprecation = warnWebpackExecutorDeprecation;
|
|
5
|
+
exports.warnWebpackDevServerExecutorDeprecation = warnWebpackDevServerExecutorDeprecation;
|
|
6
|
+
exports.warnWebpackExecutorGenerating = warnWebpackExecutorGenerating;
|
|
7
|
+
exports.suppressWebpackComposeHelperWarnings = suppressWebpackComposeHelperWarnings;
|
|
8
|
+
exports.warnWebpackComposeHelpersDeprecation = warnWebpackComposeHelpersDeprecation;
|
|
9
|
+
const devkit_1 = require("@nx/devkit");
|
|
10
|
+
// TODO(v24): Remove the @nx/webpack:webpack and @nx/webpack:dev-server
|
|
11
|
+
// executors. The inferred plugin (@nx/webpack/plugin) and the
|
|
12
|
+
// convert-to-inferred generator stay supported.
|
|
13
|
+
exports.WEBPACK_EXECUTOR_DEPRECATION_MESSAGE = 'The `@nx/webpack:webpack` executor is deprecated and will be removed in Nx v24. Run `nx g @nx/webpack:convert-to-inferred` to migrate to the `@nx/webpack/plugin` inferred targets. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.';
|
|
14
|
+
exports.WEBPACK_DEV_SERVER_EXECUTOR_DEPRECATION_MESSAGE = 'The `@nx/webpack:dev-server` executor is deprecated and will be removed in Nx v24. Run `nx g @nx/webpack:convert-to-inferred` to migrate to the `@nx/webpack/plugin` inferred targets. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.';
|
|
15
|
+
function warnWebpackExecutorDeprecation() {
|
|
16
|
+
devkit_1.logger.warn(exports.WEBPACK_EXECUTOR_DEPRECATION_MESSAGE);
|
|
17
|
+
}
|
|
18
|
+
function warnWebpackDevServerExecutorDeprecation() {
|
|
19
|
+
devkit_1.logger.warn(exports.WEBPACK_DEV_SERVER_EXECUTOR_DEPRECATION_MESSAGE);
|
|
20
|
+
}
|
|
21
|
+
// Fired when the @nx/webpack:configuration generator is about to generate
|
|
22
|
+
// targets that use the deprecated executors — i.e. when @nx/webpack/plugin
|
|
23
|
+
// isn't registered in nx.json. Surfaces the deprecation at generation time
|
|
24
|
+
// rather than only when the user later runs the generated targets.
|
|
25
|
+
function warnWebpackExecutorGenerating() {
|
|
26
|
+
devkit_1.logger.warn('Generating targets that use the deprecated `@nx/webpack:webpack` and `@nx/webpack:dev-server` executors. These executors will be removed in Nx v24. Run `nx g @nx/webpack:convert-to-inferred` next to migrate these targets to the `@nx/webpack/plugin` inferred plugin and prevent future generators from emitting executor targets. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.');
|
|
27
|
+
}
|
|
28
|
+
// TODO(v24): Remove the composePlugins/withNx/withWeb config helpers. They emit
|
|
29
|
+
// an Nx-specific config function that only runs under the @nx/webpack:webpack
|
|
30
|
+
// executor; the inferred @nx/webpack/plugin works with standard webpack configs
|
|
31
|
+
// built around NxAppWebpackPlugin instead.
|
|
32
|
+
exports.WEBPACK_COMPOSE_HELPERS_DEPRECATION_MESSAGE = 'The `composePlugins`, `withNx`, and `withWeb` config helpers from `@nx/webpack` are deprecated and will be removed in Nx v24. They produce an Nx-specific config function that only runs under the `@nx/webpack:webpack` executor. Migrate to a standard webpack config that uses `NxAppWebpackPlugin` (from `@nx/webpack/app-plugin`) under the inferred `@nx/webpack/plugin` by running `nx g @nx/webpack:convert-to-inferred`. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.';
|
|
33
|
+
let composeHelpersWarned = false;
|
|
34
|
+
let suppressDepth = 0;
|
|
35
|
+
// Nx-internal entry points compose these helpers themselves (e.g. the rspack
|
|
36
|
+
// executor, the storybook/component-testing presets). They wrap their
|
|
37
|
+
// synchronous composition in this so the warning fires only for user-authored
|
|
38
|
+
// configs, not for users who never touched the compose helpers.
|
|
39
|
+
function suppressWebpackComposeHelperWarnings(fn) {
|
|
40
|
+
suppressDepth++;
|
|
41
|
+
try {
|
|
42
|
+
return fn();
|
|
43
|
+
}
|
|
44
|
+
finally {
|
|
45
|
+
suppressDepth--;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
// Warn once per process so a `composePlugins(withNx(), withWeb())` chain logs a
|
|
49
|
+
// single line, not one per helper, and HMR reloads don't repeat it.
|
|
50
|
+
function warnWebpackComposeHelpersDeprecation() {
|
|
51
|
+
if (suppressDepth > 0 || composeHelpersWarned)
|
|
52
|
+
return;
|
|
53
|
+
composeHelpersWarned = true;
|
|
54
|
+
devkit_1.logger.warn(exports.WEBPACK_COMPOSE_HELPERS_DEPRECATION_MESSAGE);
|
|
55
|
+
}
|
|
@@ -2,15 +2,16 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getWebpackE2EWebServerInfo = getWebpackE2EWebServerInfo;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
|
-
const
|
|
5
|
+
const internal_1 = require("@nx/devkit/internal");
|
|
6
6
|
async function getWebpackE2EWebServerInfo(tree, projectName, configFilePath, isPluginBeingAdded, e2ePortOverride) {
|
|
7
7
|
const nxJson = (0, devkit_1.readNxJson)(tree);
|
|
8
8
|
let e2ePort = e2ePortOverride ?? 4200;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
const servePort = (0, internal_1.readTargetDefaultsForTarget)('serve', nxJson.targetDefaults)
|
|
10
|
+
?.options?.port;
|
|
11
|
+
if (servePort) {
|
|
12
|
+
e2ePort = servePort;
|
|
12
13
|
}
|
|
13
|
-
return (0,
|
|
14
|
+
return (0, internal_1.getE2EWebServerInfo)(tree, projectName, {
|
|
14
15
|
plugin: '@nx/webpack/plugin',
|
|
15
16
|
serveTargetName: 'serveTargetName',
|
|
16
17
|
serveStaticTargetName: 'serveStaticTargetName',
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ensureDependencies = ensureDependencies;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
|
-
const
|
|
5
|
+
const internal_1 = require("@nx/js/internal");
|
|
6
6
|
const versions_1 = require("./versions");
|
|
7
7
|
function ensureDependencies(tree, options) {
|
|
8
8
|
const tasks = [];
|
|
9
9
|
const devDependencies = {};
|
|
10
10
|
if (options.compiler === 'swc') {
|
|
11
11
|
devDependencies['swc-loader'] = versions_1.swcLoaderVersion;
|
|
12
|
-
const addSwcTask = (0,
|
|
12
|
+
const addSwcTask = (0, internal_1.addSwcDependencies)(tree);
|
|
13
13
|
tasks.push(addSwcTask);
|
|
14
14
|
}
|
|
15
15
|
if (options.compiler === 'tsc') {
|
|
@@ -21,6 +21,6 @@ function ensureDependencies(tree, options) {
|
|
|
21
21
|
devDependencies['@svgr/webpack'] = versions_1.svgrWebpackVersion;
|
|
22
22
|
devDependencies['react-refresh'] = versions_1.reactRefreshVersion;
|
|
23
23
|
}
|
|
24
|
-
tasks.push((0, devkit_1.addDependenciesToPackageJson)(tree, {}, devDependencies));
|
|
24
|
+
tasks.push((0, devkit_1.addDependenciesToPackageJson)(tree, {}, devDependencies, undefined, true));
|
|
25
25
|
return (0, devkit_1.runTasksInSerial)(...tasks);
|
|
26
26
|
}
|
|
@@ -4,4 +4,3 @@ export declare function findAllNodeModules(from: string, root?: string): string[
|
|
|
4
4
|
* Delete an output directory, but error out if it's the root of the project.
|
|
5
5
|
*/
|
|
6
6
|
export declare function deleteOutputDir(root: string, outputPath: string): void;
|
|
7
|
-
//# sourceMappingURL=fs.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type Tree } from '@nx/devkit';
|
|
2
|
+
export declare const nxVersion: any;
|
|
3
|
+
export declare const swcLoaderVersion = "0.1.15";
|
|
4
|
+
export declare const tsLibVersion = "^2.3.0";
|
|
5
|
+
export declare const minSupportedWebpackVersion = "5.0.0";
|
|
6
|
+
export declare const webpackVersion = "^5.101.3";
|
|
7
|
+
export declare const webpackDevServerVersion = "^5.2.1";
|
|
8
|
+
export declare const webpackCliVersion = "^7.0.0";
|
|
9
|
+
export declare const reactRefreshWebpackPluginVersion = "^0.5.7";
|
|
10
|
+
export declare const svgrWebpackVersion = "^8.0.1";
|
|
11
|
+
export declare const reactRefreshVersion = "^0.10.0";
|
|
12
|
+
export declare function assertSupportedWebpackVersion(tree: Tree): void;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.reactRefreshVersion = exports.svgrWebpackVersion = exports.reactRefreshWebpackPluginVersion = exports.webpackCliVersion = exports.webpackDevServerVersion = exports.webpackVersion = exports.minSupportedWebpackVersion = exports.tsLibVersion = exports.swcLoaderVersion = exports.nxVersion = void 0;
|
|
4
|
+
exports.assertSupportedWebpackVersion = assertSupportedWebpackVersion;
|
|
5
|
+
const path_1 = require("path");
|
|
6
|
+
const internal_1 = require("@nx/devkit/internal");
|
|
7
|
+
exports.nxVersion = require((0, path_1.join)('@nx/webpack', 'package.json')).version;
|
|
8
|
+
exports.swcLoaderVersion = '0.1.15';
|
|
9
|
+
exports.tsLibVersion = '^2.3.0';
|
|
10
|
+
// Floor for the generator-level support check. The plugin's runtime code uses
|
|
11
|
+
// webpack 5-only APIs (e.g. `ids.HashedModuleIdsPlugin`, `webpack.sources`,
|
|
12
|
+
// `experiments.cacheUnaffected`), so webpack 5 is the supported floor.
|
|
13
|
+
exports.minSupportedWebpackVersion = '5.0.0';
|
|
14
|
+
// Fresh-install versions written when the package is not already present.
|
|
15
|
+
exports.webpackVersion = '^5.101.3';
|
|
16
|
+
exports.webpackDevServerVersion = '^5.2.1';
|
|
17
|
+
exports.webpackCliVersion = '^7.0.0';
|
|
18
|
+
// React apps
|
|
19
|
+
exports.reactRefreshWebpackPluginVersion = '^0.5.7';
|
|
20
|
+
exports.svgrWebpackVersion = '^8.0.1';
|
|
21
|
+
exports.reactRefreshVersion = '^0.10.0';
|
|
22
|
+
function assertSupportedWebpackVersion(tree) {
|
|
23
|
+
(0, internal_1.assertSupportedPackageVersion)(tree, 'webpack', exports.minSupportedWebpackVersion);
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const lessLoader = require('less-loader');
|
|
2
|
+
|
|
3
|
+
module.exports = function (...args) {
|
|
4
|
+
if (!process.env.__NX_LESS_DEPRECATION_WARNED) {
|
|
5
|
+
process.env.__NX_LESS_DEPRECATION_WARNED = '1';
|
|
6
|
+
console.warn(
|
|
7
|
+
'\n⚠️ Less support in Nx is deprecated and will be removed in a future version.\n' +
|
|
8
|
+
' Please migrate to CSS or SCSS.\n' +
|
|
9
|
+
' Existing .less imports continue to compile, but Nx generators no longer\n' +
|
|
10
|
+
' accept --style=less. To add new Less files, install less-loader manually\n' +
|
|
11
|
+
' and generate with --style=css, then rename the file to .less.\n'
|
|
12
|
+
);
|
|
13
|
+
}
|
|
14
|
+
return lessLoader.apply(this, args);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
if (lessLoader.raw) {
|
|
18
|
+
module.exports.raw = lessLoader.raw;
|
|
19
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.resolveUserDefinedWebpackConfig = resolveUserDefinedWebpackConfig;
|
|
4
|
-
const internal_1 = require("@nx/
|
|
5
|
-
const
|
|
4
|
+
const internal_1 = require("@nx/devkit/internal");
|
|
5
|
+
const internal_2 = require("@nx/js/internal");
|
|
6
6
|
function resolveUserDefinedWebpackConfig(path, tsConfig,
|
|
7
7
|
/** Skip require cache and return latest content */
|
|
8
8
|
reload = false) {
|
|
@@ -10,7 +10,7 @@ reload = false) {
|
|
|
10
10
|
// Clear cache if the path is in the cache
|
|
11
11
|
if (require.cache[path]) {
|
|
12
12
|
// Clear all entries because config may import other modules
|
|
13
|
-
(0,
|
|
13
|
+
(0, internal_1.clearRequireCache)();
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
// Don't transpile non-TS files. This prevents workspaces libs from being registered via tsconfig-paths.
|
|
@@ -18,9 +18,7 @@ reload = false) {
|
|
|
18
18
|
if (!/\.(ts|mts|cts)$/.test(path)) {
|
|
19
19
|
return require(path);
|
|
20
20
|
}
|
|
21
|
-
const
|
|
22
|
-
const maybeCustomWebpackConfig = require(path);
|
|
23
|
-
cleanupTranspiler();
|
|
21
|
+
const maybeCustomWebpackConfig = (0, internal_2.loadTsFile)(path, tsConfig);
|
|
24
22
|
// If the user provides a configuration in TS file
|
|
25
23
|
// then there are 3 cases for exporing an object. The first one is:
|
|
26
24
|
// `module.exports = { ... }`. And the second one is:
|
|
@@ -2,8 +2,11 @@ import { NxComposableWebpackPlugin } from './config';
|
|
|
2
2
|
import { NxAppWebpackPluginOptions } from '../plugins/nx-webpack-plugin/nx-app-webpack-plugin-options';
|
|
3
3
|
export type WithNxOptions = Partial<NxAppWebpackPluginOptions>;
|
|
4
4
|
/**
|
|
5
|
+
* @deprecated Will be removed in Nx v24. Use `NxAppWebpackPlugin` from
|
|
6
|
+
* `@nx/webpack/app-plugin` in a standard webpack config and run
|
|
7
|
+
* `nx g @nx/webpack:convert-to-inferred`. See
|
|
8
|
+
* https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.
|
|
5
9
|
* @param {WithNxOptions} pluginOptions
|
|
6
10
|
* @returns {NxWebpackPlugin}
|
|
7
11
|
*/
|
|
8
12
|
export declare function withNx(pluginOptions?: WithNxOptions): NxComposableWebpackPlugin;
|
|
9
|
-
//# sourceMappingURL=with-nx.d.ts.map
|
|
@@ -3,12 +3,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.withNx = withNx;
|
|
4
4
|
const apply_base_config_1 = require("../plugins/nx-webpack-plugin/lib/apply-base-config");
|
|
5
5
|
const normalize_options_1 = require("../plugins/nx-webpack-plugin/lib/normalize-options");
|
|
6
|
+
const deprecation_1 = require("./deprecation");
|
|
6
7
|
const processed = new Set();
|
|
7
8
|
/**
|
|
9
|
+
* @deprecated Will be removed in Nx v24. Use `NxAppWebpackPlugin` from
|
|
10
|
+
* `@nx/webpack/app-plugin` in a standard webpack config and run
|
|
11
|
+
* `nx g @nx/webpack:convert-to-inferred`. See
|
|
12
|
+
* https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.
|
|
8
13
|
* @param {WithNxOptions} pluginOptions
|
|
9
14
|
* @returns {NxWebpackPlugin}
|
|
10
15
|
*/
|
|
11
16
|
function withNx(pluginOptions = {}) {
|
|
17
|
+
(0, deprecation_1.warnWebpackComposeHelpersDeprecation)();
|
|
12
18
|
return function configure(config, { options, context }) {
|
|
13
19
|
if (processed.has(config))
|
|
14
20
|
return config;
|
|
@@ -20,8 +20,11 @@ export interface WithWebOptions {
|
|
|
20
20
|
}
|
|
21
21
|
export type MergedOptions = Omit<NormalizedWebpackExecutorOptions, keyof WithWebOptions> & WithWebOptions;
|
|
22
22
|
/**
|
|
23
|
+
* @deprecated Will be removed in Nx v24. Use `NxAppWebpackPlugin` from
|
|
24
|
+
* `@nx/webpack/app-plugin` in a standard webpack config and run
|
|
25
|
+
* `nx g @nx/webpack:convert-to-inferred`. See
|
|
26
|
+
* https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.
|
|
23
27
|
* @param {WithWebOptions} pluginOptions
|
|
24
28
|
* @returns {NxWebpackPlugin}
|
|
25
29
|
*/
|
|
26
30
|
export declare function withWeb(pluginOptions?: WithWebOptions): NxComposableWebpackPlugin;
|
|
27
|
-
//# sourceMappingURL=with-web.d.ts.map
|
|
@@ -2,12 +2,18 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.withWeb = withWeb;
|
|
4
4
|
const apply_web_config_1 = require("../plugins/nx-webpack-plugin/lib/apply-web-config");
|
|
5
|
+
const deprecation_1 = require("./deprecation");
|
|
5
6
|
const processed = new Set();
|
|
6
7
|
/**
|
|
8
|
+
* @deprecated Will be removed in Nx v24. Use `NxAppWebpackPlugin` from
|
|
9
|
+
* `@nx/webpack/app-plugin` in a standard webpack config and run
|
|
10
|
+
* `nx g @nx/webpack:convert-to-inferred`. See
|
|
11
|
+
* https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.
|
|
7
12
|
* @param {WithWebOptions} pluginOptions
|
|
8
13
|
* @returns {NxWebpackPlugin}
|
|
9
14
|
*/
|
|
10
15
|
function withWeb(pluginOptions = {}) {
|
|
16
|
+
(0, deprecation_1.warnWebpackComposeHelpersDeprecation)();
|
|
11
17
|
return function configure(config, { options, context }) {
|
|
12
18
|
if (processed.has(config))
|
|
13
19
|
return config;
|
package/executors.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"executors": {
|
|
3
3
|
"webpack": {
|
|
4
|
-
"implementation": "./src/executors/webpack/webpack.impl",
|
|
5
|
-
"schema": "./src/executors/webpack/schema.json",
|
|
4
|
+
"implementation": "./dist/src/executors/webpack/webpack.impl",
|
|
5
|
+
"schema": "./dist/src/executors/webpack/schema.json",
|
|
6
6
|
"description": "Run webpack build."
|
|
7
7
|
},
|
|
8
8
|
"dev-server": {
|
|
9
|
-
"implementation": "./src/executors/dev-server/dev-server.impl",
|
|
10
|
-
"schema": "./src/executors/dev-server/schema.json",
|
|
9
|
+
"implementation": "./dist/src/executors/dev-server/dev-server.impl",
|
|
10
|
+
"schema": "./dist/src/executors/dev-server/schema.json",
|
|
11
11
|
"description": "Serve a web application."
|
|
12
12
|
},
|
|
13
13
|
"ssr-dev-server": {
|
|
14
|
-
"implementation": "./src/executors/ssr-dev-server/ssr-dev-server.impl",
|
|
15
|
-
"schema": "./src/executors/ssr-dev-server/schema.json",
|
|
14
|
+
"implementation": "./dist/src/executors/ssr-dev-server/ssr-dev-server.impl",
|
|
15
|
+
"schema": "./dist/src/executors/ssr-dev-server/schema.json",
|
|
16
16
|
"description": "Serve a SSR application."
|
|
17
17
|
}
|
|
18
18
|
}
|
package/generators.json
CHANGED
|
@@ -3,27 +3,27 @@
|
|
|
3
3
|
"version": "0.1",
|
|
4
4
|
"generators": {
|
|
5
5
|
"init": {
|
|
6
|
-
"factory": "./src/generators/init/init#webpackInitGeneratorInternal",
|
|
7
|
-
"schema": "./src/generators/init/schema.json",
|
|
6
|
+
"factory": "./dist/src/generators/init/init#webpackInitGeneratorInternal",
|
|
7
|
+
"schema": "./dist/src/generators/init/schema.json",
|
|
8
8
|
"description": "Initialize the `@nx/webpack` plugin.",
|
|
9
9
|
"aliases": ["ng-add"],
|
|
10
10
|
"hidden": true
|
|
11
11
|
},
|
|
12
12
|
"configuration": {
|
|
13
13
|
"aliases": ["webpack-project"],
|
|
14
|
-
"factory": "./src/generators/configuration/configuration#configurationGeneratorInternal",
|
|
15
|
-
"schema": "./src/generators/configuration/schema.json",
|
|
14
|
+
"factory": "./dist/src/generators/configuration/configuration#configurationGeneratorInternal",
|
|
15
|
+
"schema": "./dist/src/generators/configuration/schema.json",
|
|
16
16
|
"description": "Add webpack configuration to a project.",
|
|
17
17
|
"hidden": true
|
|
18
18
|
},
|
|
19
19
|
"convert-config-to-webpack-plugin": {
|
|
20
|
-
"factory": "./src/generators/convert-config-to-webpack-plugin/convert-config-to-webpack-plugin",
|
|
21
|
-
"schema": "./src/generators/convert-config-to-webpack-plugin/schema.json",
|
|
20
|
+
"factory": "./dist/src/generators/convert-config-to-webpack-plugin/convert-config-to-webpack-plugin",
|
|
21
|
+
"schema": "./dist/src/generators/convert-config-to-webpack-plugin/schema.json",
|
|
22
22
|
"description": "Convert the project to use the `NxAppWebpackPlugin` and `NxReactWebpackPlugin`."
|
|
23
23
|
},
|
|
24
24
|
"convert-to-inferred": {
|
|
25
|
-
"factory": "./src/generators/convert-to-inferred/convert-to-inferred#convertToInferred",
|
|
26
|
-
"schema": "./src/generators/convert-to-inferred/schema.json",
|
|
25
|
+
"factory": "./dist/src/generators/convert-to-inferred/convert-to-inferred#convertToInferred",
|
|
26
|
+
"schema": "./dist/src/generators/convert-to-inferred/schema.json",
|
|
27
27
|
"description": "Convert existing Webpack project(s) using `@nx/webpack:wepack` executor to use `@nx/webpack/plugin`."
|
|
28
28
|
}
|
|
29
29
|
}
|
package/migrations.json
CHANGED
|
@@ -4,44 +4,58 @@
|
|
|
4
4
|
"cli": "nx",
|
|
5
5
|
"version": "21.0.0-beta.11",
|
|
6
6
|
"description": "Remove isolatedConfig option for @nx/webpack:webpack",
|
|
7
|
-
"implementation": "./src/migrations/update-21-0-0/remove-isolated-config"
|
|
7
|
+
"implementation": "./dist/src/migrations/update-21-0-0/remove-isolated-config",
|
|
8
|
+
"documentation": "./dist/src/migrations/update-21-0-0/remove-isolated-config.md"
|
|
8
9
|
},
|
|
9
10
|
"update-22-0-0-remove-deprecated-options": {
|
|
10
11
|
"cli": "nx",
|
|
11
12
|
"version": "22.0.0-beta.0",
|
|
12
13
|
"description": "Remove deprecated deleteOutputPath and sassImplementation options from @nx/webpack:webpack",
|
|
13
|
-
"implementation": "./src/migrations/update-22-0-0/remove-deprecated-options"
|
|
14
|
+
"implementation": "./dist/src/migrations/update-22-0-0/remove-deprecated-options"
|
|
15
|
+
},
|
|
16
|
+
"update-23-0-0-remove-nx-tsconfig-paths-webpack-plugin-import": {
|
|
17
|
+
"cli": "nx",
|
|
18
|
+
"version": "23.0.0-beta.10",
|
|
19
|
+
"description": "Rewrites imports of NxTsconfigPathsWebpackPlugin from '@nx/webpack' to the sub-path '@nx/webpack/tsconfig-paths-plugin'.",
|
|
20
|
+
"factory": "./dist/src/migrations/update-23-0-0/remove-nx-tsconfig-paths-webpack-plugin-import",
|
|
21
|
+
"documentation": "./dist/src/migrations/update-23-0-0/remove-nx-tsconfig-paths-webpack-plugin-import.md"
|
|
22
|
+
},
|
|
23
|
+
"rewrite-webpack-internal-subpath-imports": {
|
|
24
|
+
"version": "23.0.0-beta.24",
|
|
25
|
+
"description": "Rewrites `@nx/webpack/src/*` subpath imports now that the `./src/*` subpath is no longer exposed by `@nx/webpack`'s exports map. Named imports/exports of public symbols are routed to `@nx/webpack` and the rest to the new `@nx/webpack/internal` entry; `require`, dynamic `import` and `jest.mock` calls reference the whole module and are routed to `@nx/webpack/internal`.",
|
|
26
|
+
"implementation": "./dist/src/migrations/update-23-0-0/rewrite-internal-subpath-imports"
|
|
27
|
+
},
|
|
28
|
+
"update-23-0-0-migrate-create-nodes-v2-import": {
|
|
29
|
+
"version": "23.0.0-beta.24",
|
|
30
|
+
"description": "Rename imports of `createNodesV2` from `@nx/webpack/plugin` to the canonical `createNodes` export.",
|
|
31
|
+
"implementation": "./dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes",
|
|
32
|
+
"documentation": "./dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.md"
|
|
14
33
|
}
|
|
15
34
|
},
|
|
16
35
|
"packageJsonUpdates": {
|
|
17
|
-
"
|
|
18
|
-
"version": "
|
|
36
|
+
"21.5.0": {
|
|
37
|
+
"version": "21.5.0-beta.0",
|
|
19
38
|
"packages": {
|
|
20
|
-
"
|
|
21
|
-
"version": "
|
|
39
|
+
"webpack": {
|
|
40
|
+
"version": "5.101.3",
|
|
22
41
|
"alwaysAddToPackageJson": false
|
|
23
42
|
}
|
|
24
43
|
}
|
|
25
44
|
},
|
|
26
|
-
"
|
|
27
|
-
"version": "
|
|
45
|
+
"23.0.0": {
|
|
46
|
+
"version": "23.0.0-beta.24",
|
|
28
47
|
"packages": {
|
|
29
48
|
"webpack": {
|
|
30
|
-
"version": "5.
|
|
31
|
-
"alwaysAddToPackageJson":
|
|
49
|
+
"version": "^5.101.3",
|
|
50
|
+
"alwaysAddToPackageJson": "devDependencies"
|
|
32
51
|
},
|
|
33
52
|
"webpack-dev-server": {
|
|
34
53
|
"version": "^5.2.1",
|
|
35
|
-
"alwaysAddToPackageJson":
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
"version": "21.5.0-beta.0",
|
|
41
|
-
"packages": {
|
|
42
|
-
"webpack": {
|
|
43
|
-
"version": "5.101.3",
|
|
44
|
-
"alwaysAddToPackageJson": false
|
|
54
|
+
"alwaysAddToPackageJson": "devDependencies"
|
|
55
|
+
},
|
|
56
|
+
"webpack-cli": {
|
|
57
|
+
"version": "^7.0.0",
|
|
58
|
+
"alwaysAddToPackageJson": "devDependencies"
|
|
45
59
|
}
|
|
46
60
|
}
|
|
47
61
|
}
|