@nx/rspack 21.0.0-beta.4 → 21.0.0-beta.6
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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/rspack",
|
|
3
3
|
"description": "The Nx Plugin for Rspack contains executors and generators that support building applications using Rspack.",
|
|
4
|
-
"version": "21.0.0-beta.
|
|
4
|
+
"version": "21.0.0-beta.6",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
"generators": "./generators.json",
|
|
25
25
|
"executors": "./executors.json",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@nx/js": "21.0.0-beta.
|
|
28
|
-
"@nx/devkit": "21.0.0-beta.
|
|
29
|
-
"@nx/web": "21.0.0-beta.
|
|
30
|
-
"@nx/module-federation": "21.0.0-beta.
|
|
27
|
+
"@nx/js": "21.0.0-beta.6",
|
|
28
|
+
"@nx/devkit": "21.0.0-beta.6",
|
|
29
|
+
"@nx/web": "21.0.0-beta.6",
|
|
30
|
+
"@nx/module-federation": "21.0.0-beta.6",
|
|
31
31
|
"@phenomnomnominal/tsquery": "~5.0.1",
|
|
32
32
|
"@rspack/core": "^1.1.5",
|
|
33
33
|
"@rspack/dev-server": "^1.0.9",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/schema",
|
|
3
|
-
"$id": "
|
|
4
|
-
"description": "Convert existing
|
|
5
|
-
"title": "Convert a
|
|
3
|
+
"$id": "NxRspackConvertToInferred",
|
|
4
|
+
"description": "Convert existing Rspack project(s) using `@nx/rspack:rspack` executor to use `@nx/rspack/plugin`.",
|
|
5
|
+
"title": "Convert a Rspack project from executor to plugin",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"properties": {
|
|
8
8
|
"project": {
|
|
9
9
|
"type": "string",
|
|
10
|
-
"description": "The project to convert from using the `@nx/
|
|
10
|
+
"description": "The project to convert from using the `@nx/rspack:rspack` executor to use `@nx/rspack/plugin`. If not provided, all projects using the `@nx/rspack:rspack` executor will be converted.",
|
|
11
11
|
"x-priority": "important"
|
|
12
12
|
},
|
|
13
13
|
"skipFormat": {
|
|
@@ -90,9 +90,9 @@ function applyWebConfig(options, config = {}, { useNormalizedEntry, } = {}) {
|
|
|
90
90
|
{
|
|
91
91
|
loader: require.resolve('sass-loader'),
|
|
92
92
|
options: {
|
|
93
|
-
implementation: options.sassImplementation === 'sass
|
|
94
|
-
? require.resolve('sass
|
|
95
|
-
: require.resolve('sass'),
|
|
93
|
+
implementation: options.sassImplementation === 'sass'
|
|
94
|
+
? require.resolve('sass')
|
|
95
|
+
: require.resolve('sass-embedded'),
|
|
96
96
|
api: 'modern-compiler',
|
|
97
97
|
sassOptions: {
|
|
98
98
|
fiber: false,
|
|
@@ -151,9 +151,9 @@ function applyWebConfig(options, config = {}, { useNormalizedEntry, } = {}) {
|
|
|
151
151
|
loader: require.resolve('sass-loader'),
|
|
152
152
|
options: {
|
|
153
153
|
api: 'modern-compiler',
|
|
154
|
-
implementation: options.sassImplementation === 'sass
|
|
155
|
-
? require.resolve('sass
|
|
156
|
-
: require.resolve('sass'),
|
|
154
|
+
implementation: options.sassImplementation === 'sass'
|
|
155
|
+
? require.resolve('sass')
|
|
156
|
+
: require.resolve('sass-embedded'),
|
|
157
157
|
sourceMap: !!options.sourceMap,
|
|
158
158
|
sassOptions: {
|
|
159
159
|
fiber: false,
|
|
@@ -216,9 +216,9 @@ function applyWebConfig(options, config = {}, { useNormalizedEntry, } = {}) {
|
|
|
216
216
|
loader: require.resolve('sass-loader'),
|
|
217
217
|
options: {
|
|
218
218
|
api: 'modern-compiler',
|
|
219
|
-
implementation: options.sassImplementation === 'sass
|
|
220
|
-
? require.resolve('sass
|
|
221
|
-
: require.resolve('sass'),
|
|
219
|
+
implementation: options.sassImplementation === 'sass'
|
|
220
|
+
? require.resolve('sass')
|
|
221
|
+
: require.resolve('sass-embedded'),
|
|
222
222
|
sourceMap: !!options.sourceMap,
|
|
223
223
|
sassOptions: {
|
|
224
224
|
fiber: false,
|
|
@@ -151,6 +151,7 @@ export interface NxAppRspackPluginOptions {
|
|
|
151
151
|
runtimeChunk?: boolean;
|
|
152
152
|
/**
|
|
153
153
|
* The implementation of the SASS compiler to use. Can be either `sass` or `sass-embedded`. Defaults to `sass-embedded`.
|
|
154
|
+
* @deprecated Sass option will be removed in Nx 22. This option will also be removed in Nx 22 as it is no longer needed.
|
|
154
155
|
*/
|
|
155
156
|
sassImplementation?: 'sass' | 'sass-embedded';
|
|
156
157
|
/**
|
|
@@ -77,7 +77,8 @@ function normalizeOptions(options) {
|
|
|
77
77
|
projectRoot: projectNode.data.root,
|
|
78
78
|
root: devkit_1.workspaceRoot,
|
|
79
79
|
runtimeChunk: combinedPluginAndMaybeExecutorOptions.runtimeChunk ?? true,
|
|
80
|
-
sassImplementation: combinedPluginAndMaybeExecutorOptions.sassImplementation ??
|
|
80
|
+
sassImplementation: combinedPluginAndMaybeExecutorOptions.sassImplementation ??
|
|
81
|
+
'sass-embedded',
|
|
81
82
|
scripts: combinedPluginAndMaybeExecutorOptions.scripts ?? [],
|
|
82
83
|
sourceMap: combinedPluginAndMaybeExecutorOptions.sourceMap ?? !isProd,
|
|
83
84
|
sourceRoot,
|