From 54551d2510b2e10be9f0d6be67a52bb1f0388f3c Mon Sep 17 00:00:00 2001 From: Brad Cornes Date: Thu, 27 May 2021 12:17:49 +0100 Subject: [PATCH] normalize separators --- packages/transformers/postcss/src/PostCSSTransformer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/transformers/postcss/src/PostCSSTransformer.js b/packages/transformers/postcss/src/PostCSSTransformer.js index b7bf08da42c..676a6bbe4f3 100644 --- a/packages/transformers/postcss/src/PostCSSTransformer.js +++ b/packages/transformers/postcss/src/PostCSSTransformer.js @@ -2,7 +2,7 @@ import type {FilePath, MutableAsset, PluginOptions} from '@parcel/types'; -import {md5FromString, glob} from '@parcel/utils'; +import {md5FromString, glob, normalizeSeparators} from '@parcel/utils'; import {Transformer} from '@parcel/plugin'; import FileSystemLoader from 'css-modules-loader-core/lib/file-system-loader'; import nullthrows from 'nullthrows'; @@ -110,7 +110,7 @@ export default (new Transformer({ if (msg.type === 'dependency') { asset.addIncludedFile(msg.file); } else if (msg.type === 'dir-dependency') { - let dirGlob = `${msg.dir}/**/*`; + let dirGlob = normalizeSeparators(`${msg.dir}/**/*`); let files = await glob(dirGlob, asset.fs, {onlyFiles: true}); for (let file of files) { asset.addIncludedFile(file);