File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ exports.astNodeVisitor = {
180
180
const moduleId = path . relative ( path . join ( process . cwd ( ) , moduleRoot ) , rel ) . replace ( / \. j s $ / , '' ) ;
181
181
if ( getModuleInfo ( moduleId , parser ) ) {
182
182
const exportName = importMatch [ 2 ] === 'default' ? getDefaultExportName ( moduleId , parser ) : importMatch [ 2 ] ;
183
- const delimiter = importMatch [ 2 ] === 'default' ? '~' : getDelimiter ( moduleId , exportName , parser ) ;
183
+ const delimiter = importMatch [ 2 ] === 'default' ? '~' : getDelimiter ( moduleId , exportName , parser ) ;
184
184
replacement = `module:${ moduleId . replace ( slashRegEx , '/' ) } ${ exportName ? delimiter + exportName : '' } ` ;
185
185
}
186
186
}
@@ -196,7 +196,9 @@ exports.astNodeVisitor = {
196
196
value : path . basename ( currentSourceName )
197
197
} ;
198
198
}
199
+ } ) ;
199
200
201
+ node . comments . forEach ( comment => {
200
202
// Replace local types with the full `module:` path
201
203
Object . keys ( identifiers ) . forEach ( key => {
202
204
const regex = new RegExp ( `@(event |fires |.*[\{<\|,] ?!?)${ key } ` , 'g' ) ;
You can’t perform that action at this time.
0 commit comments