We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b62ceaf commit 7046af0Copy full SHA for 7046af0
packages/transformers/js/src/JSTransformer.js
@@ -2,7 +2,6 @@
2
import type {
3
JSONObject,
4
EnvMap,
5
- Location,
6
SourceLocation,
7
FilePath,
8
FileCreateInvalidation,
@@ -166,7 +165,11 @@ type MacroAsset = {|
166
165
// NOTE: Make sure this is in sync with the TypeScript definition in the @parcel/macros package.
167
type MacroContext = {|
168
addAsset(asset: MacroAsset): void,
169
- loc: Location,
+ loc: {|
+ +filePath: string,
170
+ +line: number,
171
+ +col: number,
172
+ |},
173
invalidateOnFileChange(FilePath): void,
174
invalidateOnFileCreate(FileCreateInvalidation): void,
175
invalidateOnEnvChange(string): void,
0 commit comments