Skip to content

Commit ffdb341

Browse files
committed
fix: update vite config to exclude eslint/csstree
1 parent 289626b commit ffdb341

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

vite.config.js

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
import { resolve } from "path"
2-
import { defineConfig } from "vite"
3-
import dts from "vite-plugin-dts"
4-
import { codecovVitePlugin } from "@codecov/vite-plugin"
1+
import { resolve } from 'path'
2+
import { defineConfig } from 'vite'
3+
import dts from 'vite-plugin-dts'
4+
import { codecovVitePlugin } from '@codecov/vite-plugin'
55

66
export default defineConfig({
7-
build: {
8-
lib: {
9-
entry: resolve(__dirname, "index.js"),
10-
formats: ["es"],
11-
},
12-
rollupOptions: {
13-
// make sure to externalize deps that shouldn't be bundled
14-
// into your library
15-
external: ["css-tree/parser"],
16-
},
17-
},
18-
plugins: [
19-
dts(),
20-
codecovVitePlugin({
21-
enableBundleAnalysis: process.env.CODECOV_TOKEN !== undefined,
22-
bundleName: "formatCss",
23-
uploadToken: process.env.CODECOV_TOKEN,
24-
}),
25-
],
7+
build: {
8+
lib: {
9+
entry: resolve(__dirname, 'index.js'),
10+
formats: ['es'],
11+
},
12+
rollupOptions: {
13+
// make sure to externalize deps that shouldn't be bundled
14+
// into your library
15+
external: ['@eslint/css-tree'],
16+
},
17+
},
18+
plugins: [
19+
dts(),
20+
codecovVitePlugin({
21+
enableBundleAnalysis: process.env.CODECOV_TOKEN !== undefined,
22+
bundleName: 'formatCss',
23+
uploadToken: process.env.CODECOV_TOKEN,
24+
}),
25+
],
2626
})

0 commit comments

Comments
 (0)