This PR removes these from v20 since they were deprecated and slated for removal: - `executeWebpackDevServerBuilder` export from `@nx/angular/executors`, users should use `executeDevServerBuilder` - `withStylus` util from `@nx/next/plugins/with-stylus` since it was deprecated in v17 and has just throw an error that users need to use SASS with Next.js The `getRollupOptions` function from `@nx/react/plugins/bundle-rollup` has been deprecated as mention previously and slated for removal in v22. New users are using inferred targets from Rollup, and existing projects using this module should run `nx g @nx/rollup:convert-to-inferred` or manually update rollup config to use `withNx` function. Also, bumped some deprecation for later in v21: - Remove inline builds from tsc/swc - Changes to SVGR to align with Webpack v5 (e.g. `import ReactComponent from './img.svg?svgr'`) - Remove `isolatedConfig` from Webpack executor -- requires a migration that extracts to a standard webpack config just in case (different from the original one that extracts to `withNx`) The ESLint TODOs were rescoped to `TODO(eslint)` and we'll look at it in further flat config work rather than tying it to an Nx release. <!-- If this is a particularly complex change or feature addition, you can request a dedicated Nx release for this pull request branch. Mention someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they will confirm if the PR warrants its own release for testing purposes, and generate it for you if appropriate. --> ## Current Behavior <!-- This is the behavior we have today --> ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #
41 lines
2.0 KiB
TypeScript
41 lines
2.0 KiB
TypeScript
import { configurationGenerator } from './src/generators/configuration/configuration';
|
|
import { NxAppWebpackPlugin } from './src/plugins/nx-webpack-plugin/nx-app-webpack-plugin';
|
|
import { NxTsconfigPathsWebpackPlugin as _NxTsconfigPathsWebpackPlugin } from './src/plugins/nx-typescript-webpack-plugin/nx-tsconfig-paths-webpack-plugin';
|
|
import { convertConfigToWebpackPluginGenerator } from './src/generators/convert-config-to-webpack-plugin/convert-config-to-webpack-plugin';
|
|
import { useLegacyNxPlugin } from './src/plugins/use-legacy-nx-plugin/use-legacy-nx-plugin';
|
|
|
|
export {
|
|
configurationGenerator,
|
|
convertConfigToWebpackPluginGenerator,
|
|
useLegacyNxPlugin,
|
|
};
|
|
|
|
// Exported for backwards compatibility in case a plugin is using the old name.
|
|
/** @deprecated Use `configurationGenerator` instead. */
|
|
export const webpackProjectGenerator = configurationGenerator;
|
|
|
|
// TODO(v21): Remove this in favor of deep imports in order to load configs faster (150-200ms faster).
|
|
/** @deprecated Use NxAppWebpackPlugin from `@nx/webpack/app-plugin` instead. */
|
|
export const NxWebpackPlugin = NxAppWebpackPlugin;
|
|
/** @deprecated Use NxTsconfigPathsWebpackPlugin from `@nx/webpack/tsconfig-paths-plugin` instead. */
|
|
export const NxTsconfigPathsWebpackPlugin = _NxTsconfigPathsWebpackPlugin;
|
|
|
|
export * from './src/utils/create-copy-plugin';
|
|
export * from './src/utils/config';
|
|
export { webpackInitGenerator } from './src/generators/init/init';
|
|
export type { WebDevServerOptions } from './src/executors/dev-server/schema';
|
|
export * from './src/executors/dev-server/dev-server.impl';
|
|
export * from './src/executors/webpack/lib/normalize-options';
|
|
export type {
|
|
WebpackExecutorOptions,
|
|
NormalizedWebpackExecutorOptions,
|
|
AssetGlobPattern,
|
|
FileReplacement,
|
|
} from './src/executors/webpack/schema';
|
|
export * from './src/executors/webpack/webpack.impl';
|
|
export * from './src/utils/get-css-module-local-ident';
|
|
export * from './src/utils/with-nx';
|
|
export * from './src/utils/with-web';
|
|
export * from './src/utils/module-federation/public-api';
|
|
export * from './src/utils/e2e-web-server-info-utils';
|