Skip to content

Commit

Permalink
feat: emit asset from messages
Browse files Browse the repository at this point in the history
  • Loading branch information
cap-Bernardito committed Aug 17, 2020
1 parent 0933990 commit 5acc3d3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,12 @@ export default async function loader(content, sourceMap, meta = {}) {
}

if (message.type === 'asset' && message.content && message.file) {
this.emitFile(message.file, message.content);
this.emitFile(
message.file,
message.content,
message.sourceMap,
message.info
);
}
});

Expand Down

0 comments on commit 5acc3d3

Please sign in to comment.