We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5fb03b0 + 2a4cc96 commit c235e15Copy full SHA for c235e15
src/index.js
@@ -48,10 +48,10 @@ export default (options = {}) => {
48
name: "import-css",
49
50
/* convert the css file to a module and save the code for a file output */
51
- transform(code, id) {
+ async transform(code, id) {
52
if (!filter(id)) return;
53
54
- const transformedCode = (options.minify) ? minifyCSS(options.transform(code)) : options.transform(code);
+ const transformedCode = (options.minify) ? minifyCSS(await options.transform(code)) : await options.transform(code);
55
56
/* cache the result */
57
if (!styles[id] || styles[id] != transformedCode) {
0 commit comments