Closed maerten closed 2 years ago
This fixes a small issue where imports are incorrectly rewritten.
Example:
// in file: cypress/integration/test.ts import config from '../../src/config'
was being rewritten to
# in file: cypress/integration/test.ts import config from 'config'
This PR extends isParentFolder to check if the import can be safely rewritten.
isParentFolder
This fixes a small issue where imports are incorrectly rewritten.
The bug
Example:
was being rewritten to
Fix
This PR extends
isParentFolder
to check if the import can be safely rewritten.