Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
aeharding committed Nov 23, 2024
1 parent 35170d6 commit bcf0f33
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,6 @@ import { defineConfig } from "vitest/config";
import compilerOptions from "./compilerOptions.js";
import manifest from "./manifest.json";

const IGNORED_ROLLUP_WARNINGS = [
// https://github.com/Anber/wyw-in-js/issues/62
"contains an annotation that Rollup cannot interpret due to the position of the comment",
"The comment will be removed to avoid issues.",

// https://github.com/vitejs/vite/blob/fe30349d350ef08bccd56404ccc3e6d6e0a2e156/packages/vite/rollup.config.ts#L71
"Circular dependency",
];

// https://vitejs.dev/config/
export default defineConfig({
plugins: [
Expand Down Expand Up @@ -71,13 +62,6 @@ export default defineConfig({
cssMinify: "lightningcss",
chunkSizeWarningLimit: 5_000,
rollupOptions: {
onwarn: (log, handler) => {
for (const msg in IGNORED_ROLLUP_WARNINGS) {
if (log.message.includes(msg)) return;
}

handler(log);
},
output: {
manualChunks: () => "index.js",

Expand Down

0 comments on commit bcf0f33

Please sign in to comment.