@nx/next 21.2.0-beta.1 → 21.2.0-beta.3
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 +1 -1
- package/package.json +7 -7
- package/plugins/with-nx.js +11 -0
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
|
|
23
23
|
# Nx: Smart Repos · Fast Builds
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
An AI-first build platform that connects everything from your editor to CI. Helping you deliver fast, without breaking things.
|
|
26
26
|
|
|
27
27
|
This package is a [Next.js plugin for Nx](https://nx.dev/next/overview).
|
|
28
28
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/next",
|
|
3
|
-
"version": "21.2.0-beta.
|
|
3
|
+
"version": "21.2.0-beta.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Next.js plugin for Nx contains executors and generators for managing Next.js applications and libraries within an Nx workspace. It provides:\n\n\n- Scaffolding for creating, building, serving, linting, and testing Next.js applications.\n\n- Integration with building, serving, and exporting a Next.js application.\n\n- Integration with React libraries within the workspace. \n\nWhen using Next.js in Nx, you get the out-of-the-box support for TypeScript, Playwright, Cypress, and Jest. No need to configure anything: watch mode, source maps, and typings just work.",
|
|
6
6
|
"repository": {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"next": ">=14.0.0"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@nx/devkit": "21.2.0-beta.
|
|
38
|
+
"@nx/devkit": "21.2.0-beta.3",
|
|
39
39
|
"@babel/plugin-proposal-decorators": "^7.22.7",
|
|
40
40
|
"@svgr/webpack": "^8.1.0",
|
|
41
41
|
"copy-webpack-plugin": "^10.2.4",
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"semver": "^7.5.3",
|
|
45
45
|
"tslib": "^2.3.0",
|
|
46
46
|
"webpack-merge": "^5.8.0",
|
|
47
|
-
"@nx/js": "21.2.0-beta.
|
|
48
|
-
"@nx/eslint": "21.2.0-beta.
|
|
49
|
-
"@nx/react": "21.2.0-beta.
|
|
50
|
-
"@nx/web": "21.2.0-beta.
|
|
51
|
-
"@nx/webpack": "21.2.0-beta.
|
|
47
|
+
"@nx/js": "21.2.0-beta.3",
|
|
48
|
+
"@nx/eslint": "21.2.0-beta.3",
|
|
49
|
+
"@nx/react": "21.2.0-beta.3",
|
|
50
|
+
"@nx/web": "21.2.0-beta.3",
|
|
51
|
+
"@nx/webpack": "21.2.0-beta.3",
|
|
52
52
|
"@phenomnomnominal/tsquery": "~5.0.1"
|
|
53
53
|
},
|
|
54
54
|
"publishConfig": {
|
package/plugins/with-nx.js
CHANGED
|
@@ -157,6 +157,17 @@ function getNextConfig(nextConfig = {}, context = getWithNxContext()) {
|
|
|
157
157
|
},
|
|
158
158
|
...validNextConfig,
|
|
159
159
|
webpack: (config, options) => {
|
|
160
|
+
/**
|
|
161
|
+
* To support ESM library export, we need to ensure the extensionAlias contains both `.js` and `.ts` extensions.
|
|
162
|
+
* This is because Webpack uses the `extensionAlias` to resolve the correct file extension when importing modules.
|
|
163
|
+
*/
|
|
164
|
+
config.resolve.extensionAlias = {
|
|
165
|
+
...(config.resolve.extensionAlias || {}),
|
|
166
|
+
'.js': ['.ts', '.tsx', '.js', '.jsx'],
|
|
167
|
+
'.mjs': ['.mts', '.mjs'],
|
|
168
|
+
'.cjs': ['.cts', '.cjs'],
|
|
169
|
+
'.jsx': ['.tsx', '.jsx'],
|
|
170
|
+
};
|
|
160
171
|
/*
|
|
161
172
|
* Update babel to support our monorepo setup.
|
|
162
173
|
* The 'upward' mode allows the root babel.config.json and per-project .babelrc files to be picked up.
|