Skip to content

Commit fca8086

Browse files
authored
Merge pull request #5 from openlayers/local-events
Support local event annotation values
2 parents a2c2c3e + 9ae2a31 commit fca8086

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ exports.astNodeVisitor = {
200200

201201
// Replace local types with the full `module:` path
202202
Object.keys(identifiers).forEach(key => {
203-
const regex = new RegExp(`(@fires |[\{<\|,] ?!?)${key}`, 'g');
203+
const regex = new RegExp(`(@event |@fires |[\{<\|,] ?!?)${key}`, 'g');
204204
if (regex.test(comment.value)) {
205205
const identifier = identifiers[key];
206206
const absolutePath = path.resolve(path.dirname(currentSourceName), identifier.value);

0 commit comments

Comments
 (0)