Skip to content

Commit ef7445e

Browse files
authored
Merge pull request #2116 from Hyperkid123/nx-downgrade
chore: downgrade NX to attempt fix release issues
2 parents 4b7901c + daba51d commit ef7445e

File tree

12 files changed

+2919
-2811
lines changed

12 files changed

+2919
-2811
lines changed

examples/demo/vite.config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import { defineConfig } from 'vite';
22
import react from '@vitejs/plugin-react';
33
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
4-
import { nxCopyAssetsPlugin } from '@nx/vite/plugins/nx-copy-assets.plugin';
54

65
export default defineConfig({
76
root: __dirname,
87
cacheDir: '../../node_modules/.vite/examples/demo',
9-
plugins: [react(), nxViteTsPaths(), nxCopyAssetsPlugin(['*.md'])],
8+
plugins: [react(), nxViteTsPaths()],
109
// Uncomment this if you are using workers.
1110
// worker: {
1211
// plugins: [ nxViteTsPaths() ],

examples/demo/webpack.config.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
const { NxAppWebpackPlugin } = require('@nx/webpack/app-plugin');
2-
const { NxReactWebpackPlugin } = require('@nx/react/webpack-plugin');
1+
// const { NxAppWebpackPlugin } = require('@nx/webpack/app-plugin');
2+
// const { NxReactWebpackPlugin } = require('@nx/react/webpack-plugin');
3+
const { NxWebpackPlugin } = require('@nx/webpack');
34
const { join } = require('path');
45

56
module.exports = {
@@ -15,7 +16,7 @@ module.exports = {
1516
},
1617
},
1718
plugins: [
18-
new NxAppWebpackPlugin({
19+
new NxWebpackPlugin({
1920
tsConfig: './tsconfig.app.json',
2021
compiler: 'babel',
2122
main: './src/main.tsx',
@@ -26,10 +27,5 @@ module.exports = {
2627
outputHashing: process.env['NODE_ENV'] === 'production' ? 'all' : 'none',
2728
optimization: process.env['NODE_ENV'] === 'production',
2829
}),
29-
new NxReactWebpackPlugin({
30-
// Uncomment this line if you don't want to use SVGR
31-
// See: https://react-svgr.com/
32-
// svgr: false
33-
}),
3430
],
3531
};

nx.json

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,6 @@
6262
"componentTestingTargetName": "component-test",
6363
"ciTargetName": "e2e-ci"
6464
}
65-
},
66-
{
67-
"plugin": "@nx/js/typescript",
68-
"options": {
69-
"typecheck": {
70-
"targetName": "tsc:typecheck"
71-
},
72-
"build": {
73-
"targetName": "tsc:build",
74-
"configName": "tsconfig.lib.json"
75-
}
76-
}
7765
}
7866
],
7967
"generators": {

0 commit comments

Comments
 (0)