Skip to content

Commit

Permalink
Merge pull request #141 from nabla-studio/davidesegullo/fix-next15
Browse files Browse the repository at this point in the history
fix(react): 🐛 fix next 15 runtime error
  • Loading branch information
DavideSegullo authored Oct 30, 2024
2 parents 007d944 + dbf14d3 commit 6b66d59
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
"dependsOn": ["^build"],
"inputs": ["production", "^production"]
},
"@nx/vite:build": {
"cache": true,
"dependsOn": ["^build"],
"inputs": ["production", "^production"]
},
"@nx/vite:test": {
"cache": true,
"inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"]
Expand Down
7 changes: 4 additions & 3 deletions packages/react/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ export default defineConfig({
cacheDir: '../../node_modules/.vite/react',

plugins: [
react({
jsxRuntime: 'classic',
}),
react(),
nxViteTsPaths(),
dts({
entryRoot: 'src',
Expand All @@ -28,6 +26,9 @@ export default defineConfig({

// Configuration for building your library.
// See: https://vitejs.dev/guide/build.html#library-mode
esbuild: {
jsxDev: false,
},
build: {
outDir: '../../dist/packages/react',
emptyOutDir: true,
Expand Down

0 comments on commit 6b66d59

Please sign in to comment.