Skip to content

Commit

Permalink
Merge pull request #2116 from Hyperkid123/nx-downgrade
Browse files Browse the repository at this point in the history
chore: downgrade NX to attempt fix release issues
  • Loading branch information
Hyperkid123 authored Nov 22, 2024
2 parents 4b7901c + daba51d commit ef7445e
Show file tree
Hide file tree
Showing 12 changed files with 2,919 additions and 2,811 deletions.
3 changes: 1 addition & 2 deletions examples/demo/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
import { nxCopyAssetsPlugin } from '@nx/vite/plugins/nx-copy-assets.plugin';

export default defineConfig({
root: __dirname,
cacheDir: '../../node_modules/.vite/examples/demo',
plugins: [react(), nxViteTsPaths(), nxCopyAssetsPlugin(['*.md'])],
plugins: [react(), nxViteTsPaths()],
// Uncomment this if you are using workers.
// worker: {
// plugins: [ nxViteTsPaths() ],
Expand Down
12 changes: 4 additions & 8 deletions examples/demo/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const { NxAppWebpackPlugin } = require('@nx/webpack/app-plugin');
const { NxReactWebpackPlugin } = require('@nx/react/webpack-plugin');
// const { NxAppWebpackPlugin } = require('@nx/webpack/app-plugin');
// const { NxReactWebpackPlugin } = require('@nx/react/webpack-plugin');
const { NxWebpackPlugin } = require('@nx/webpack');
const { join } = require('path');

module.exports = {
Expand All @@ -15,7 +16,7 @@ module.exports = {
},
},
plugins: [
new NxAppWebpackPlugin({
new NxWebpackPlugin({
tsConfig: './tsconfig.app.json',
compiler: 'babel',
main: './src/main.tsx',
Expand All @@ -26,10 +27,5 @@ module.exports = {
outputHashing: process.env['NODE_ENV'] === 'production' ? 'all' : 'none',
optimization: process.env['NODE_ENV'] === 'production',
}),
new NxReactWebpackPlugin({
// Uncomment this line if you don't want to use SVGR
// See: https://react-svgr.com/
// svgr: false
}),
],
};
12 changes: 0 additions & 12 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,6 @@
"componentTestingTargetName": "component-test",
"ciTargetName": "e2e-ci"
}
},
{
"plugin": "@nx/js/typescript",
"options": {
"typecheck": {
"targetName": "tsc:typecheck"
},
"build": {
"targetName": "tsc:build",
"configName": "tsconfig.lib.json"
}
}
}
],
"generators": {
Expand Down
Loading

0 comments on commit ef7445e

Please sign in to comment.