|
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' |
5 | 5 |
|
6 | 6 | 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 | + ], |
26 | 26 | }) |
0 commit comments