Skip to content
This repository was archived by the owner on Aug 16, 2022. It is now read-only.

Commit b1aff3f

Browse files
authored
fix: set correct clean-css import (#103)
1 parent ac34efc commit b1aff3f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: src/postcss-clean.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import * as postcss from 'postcss'
2-
import CleanCSS from 'clean-css'
2+
// ESM import of clean-css breaks test/runtime check this fix for reference:
3+
// https://github.com/vuejs/vue-component-compiler/pull/103#issuecomment-632676899
4+
const CleanCSS = require('clean-css')
35

46
export default postcss.plugin('clean', (options: any) => {
57
const clean = new CleanCSS({ compatibility: 'ie9', ...options })

0 commit comments

Comments
 (0)