Skip to content

Commit a230265

Browse files
author
Justin Kimbrell
committed
chore: fix build issues
1 parent b47eac8 commit a230265

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

src/helpers/css.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ export function mergeCss<TSource extends CSSProperties, TTarget extends CSSPrope
2424
target: TTarget
2525
): TSource {
2626
for (const key in target) {
27-
if (!Object.prototype.hasOwnProperty.call(target, key) ||
28-
key === '__proto__' || key === 'constructor' || key === 'prototype') {
27+
if (!target.hasOwnProperty(key)) {
2928
continue;
3029
}
3130

vite.config.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { codecovVitePlugin } from "@codecov/vite-plugin";
21
import { existsSync } from 'fs';
32
import { mkdir, writeFile } from 'fs/promises';
43
import { extractCss } from 'goober';
@@ -12,13 +11,7 @@ export default ({ command }: any) => defineConfig({
1211
solid(),
1312
writeCss({
1413
'flipclock.css': [css, 'flip-clock']
15-
}),
16-
// Put the Codecov vite plugin after all other plugins
17-
codecovVitePlugin({
18-
enableBundleAnalysis: process.env.CODECOV_TOKEN !== undefined,
19-
bundleName: "FlipClock",
20-
uploadToken: process.env.CODECOV_TOKEN,
21-
}),
14+
})
2215
],
2316
build: {
2417
target: 'esnext',

0 commit comments

Comments
 (0)