Skip to content

Commit

Permalink
🆕 Inherit importer's meta
Browse files Browse the repository at this point in the history
  • Loading branch information
Steel Brain committed Sep 10, 2018
1 parent d2acd5c commit 9accc92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/pundle-api/src/context/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export default class Context {
// TODO: Inject loc into errors?
// eslint-disable-next-line no-unused-vars
resolve(request: string, loc: ?Loc = null, specified: boolean = true) {
return worker.resolve({ request, requestFile: filePath, ignoredResolvers: [], meta: { specified } })
return worker.resolve({ request, requestFile: filePath, ignoredResolvers: [], meta: { ...meta, specified } })
},
async addImport(fileImport) {
try {
Expand Down

0 comments on commit 9accc92

Please sign in to comment.