Skip to content

Commit

Permalink
tsconfig adjusted and rollup plug ins order improved
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiHotz committed Dec 3, 2024
1 parent 57fc6b5 commit 1361c80
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
11 changes: 6 additions & 5 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@ export default defineConfig(
},
],
plugins: [
external({ includeDependencies: true }),
resolve(),
commonjs(),
svgr(),
url(),
postcss({
plugins: [],
minimize: true,
}),
external({ includeDependencies: true }),
resolve(),
commonjs(),
typescript({
tsconfig: './tsconfig.json',
typescript: typescriptEngine,
Expand All @@ -46,6 +48,7 @@ export default defineConfig(
'*.cjs',
'*.mjs',
'**/__snapshots__/*',
'**/.storybook/*',
'**/__tests__',
'**/*.test.js+(|x)',
'**/*.test.ts+(|x)',
Expand All @@ -59,8 +62,6 @@ export default defineConfig(
'vitest.config.ts',
],
}),
url(),
svgr(),
terser(),
],
},
Expand Down
6 changes: 3 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
]
},
"allowJs": true,
"target": "esnext",
"module": "esnext",
"target": "ES2023",
"module": "ESNext",
"useDefineForClassFields": true,
"lib": ["dom", "dom.iterable", "esnext"],
"lib": ["DOM", "DOM.Iterable", "ESNext"],
"types": ["@testing-library/jest-dom"],
"skipLibCheck": true,
"sourceMap": true,
Expand Down

0 comments on commit 1361c80

Please sign in to comment.