-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
incorrect path when resolve to the same or the sub folder #404
Comments
please merge and release a new version |
To help others, while #405 isn't merged, I'm changing de code inside Inside function resolveImports(file, imports, options) {
//...code
const target = path_1.default.relative(base, resolved);
let relative = path_1.default.relative(current, target).replace(/\\/g, '/');
if (!relative.startsWith('..')) {
// https://github.com/gulp-plugin/alias/issues/404
// in the some folder or the sub folder
relative = './' + relative
}
lines[imported.index] = line.replace(imported.import, relative);
//...code
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this test case will fail:
The text was updated successfully, but these errors were encountered: