Skip to content

Commit

Permalink
normalize separators
Browse files Browse the repository at this point in the history
  • Loading branch information
bradlc committed May 27, 2021
1 parent e35a41a commit 54551d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/transformers/postcss/src/PostCSSTransformer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 54551d2

Please sign in to comment.