Skip to content

Commit 34041cb

Browse files
committed
mark parser as external
1 parent 4954d4a commit 34041cb

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

vite.config.js

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

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

0 commit comments

Comments
 (0)