Skip to content

Commit

Permalink
feat: add support for dir-dependency message type (#525)
Browse files Browse the repository at this point in the history
  • Loading branch information
bradlc authored May 14, 2021
1 parent 435224d commit 554802e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ export default async function loader(content, sourceMap, meta) {
this.addDependency(message.file);
}

if (message.type === "dir-dependency") {
this.addContextDependency(message.dir);
}

if (message.type === "asset" && message.content && message.file) {
this.emitFile(
message.file,
Expand Down

0 comments on commit 554802e

Please sign in to comment.