Skip to content

Commit 569ad6e

Browse files
committed
Fix warnings
1 parent c3bfe94 commit 569ad6e

File tree

5 files changed

+255
-131
lines changed

5 files changed

+255
-131
lines changed

examples/with-vite-config/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { visualizer } from "rollup-plugin-visualizer";
33
/** @type {import('vite').UserConfig} */
44
export default {
55
build: {
6-
rollupOptions: {
6+
rolldownOptions: {
77
plugins: [visualizer()],
88
},
99
},

packages/zudoku/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@
248248
"@tanstack/react-query": "5.90.12",
249249
"@types/react": "catalog:",
250250
"@types/react-dom": "catalog:",
251-
"@vitejs/plugin-react": "5.1.0",
251+
"@vitejs/plugin-react": "5.1.2",
252252
"@x0k/json-schema-merge": "1.0.2",
253253
"@zudoku/httpsnippet": "10.0.9",
254254
"@zudoku/react-helmet-async": "2.0.5",

packages/zudoku/vite.config.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ const entries: Record<string, string> = {
3434
export default defineConfig({
3535
resolve: {
3636
alias: [
37-
{ find: /^zudoku\/ui\/(.*)\.js/, replacement: `./src/lib/ui/$1.tsx` },
37+
{
38+
find: /^zudoku\/ui\/(.*)\.js/,
39+
replacement: path.resolve(import.meta.dirname, "src/lib/ui/$1.tsx"),
40+
},
3841
],
3942
},
4043
build: {
@@ -53,7 +56,7 @@ export default defineConfig({
5356
? `${fileName}.js`
5457
: `zudoku.${fileName}.js`,
5558
},
56-
rollupOptions: {
59+
rolldownOptions: {
5760
external: [
5861
"react",
5962
"react-dom",

packages/zudoku/vite.standalone.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export default defineConfig({
4141
return `zudoku.${fileName}.js`;
4242
},
4343
},
44-
rollupOptions: {
44+
rolldownOptions: {
4545
onwarn(warning, warn) {
4646
// Suppress "Module level directives cause errors when bundled" warnings
4747
if (

0 commit comments

Comments
 (0)