Skip to content

Commit 7dfd5a1

Browse files
committed
build(core): drop the Nx vite config helpers removed in Nx 24
nxViteTsPaths and nxCopyAssetsPlugin are inert stubs in Nx 24. Path aliases now come from Vite's native resolve.tsconfigPaths. The copy plugin only copied *.md on a vite build, and core builds with @nx/js:tsc, so it is removed rather than replaced.
1 parent dd8cea6 commit 7dfd5a1

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

‎packages/core/vite.config.ts‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
11
/// <reference types='vitest' />
22
import { defineConfig } from 'vite';
3-
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
4-
import { nxCopyAssetsPlugin } from '@nx/vite/plugins/nx-copy-assets.plugin';
53
import { fileURLToPath, URL } from 'node:url';
64

75
export default defineConfig({
86
root: __dirname,
97
cacheDir: '../../node_modules/.vite/packages/core',
10-
plugins: [nxViteTsPaths(), nxCopyAssetsPlugin(['*.md'])],
11-
// Uncomment this if you are using workers.
12-
// worker: {
13-
// plugins: [ nxViteTsPaths() ],
14-
// },
158
resolve: {
9+
tsconfigPaths: true,
1610
extensions: ['.ts', '.ios.ts'],
1711
alias: {
1812
// ‘~’ at import root → /absolute/path/to/src

0 commit comments

Comments
 (0)