Skip to content
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

Use relative file location in source maps with relativeSourceLocation enabled #5464

Merged
merged 5 commits into from
Dec 22, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
make test better
  • Loading branch information
tjzel committed Dec 22, 2023
commit ad24c627ac2d3109317064ae2ccc9b5ad0b74dd4
2 changes: 1 addition & 1 deletion __tests__/plugin.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ describe('babel plugin', () => {
relativeSourceLocation: true,
});
console.log(code);
const matches = code?.match(/\.\.\/dev\/null/g);
const matches = code?.match(new RegExp(`..${MOCK_LOCATION}`, 'g'));
expect(matches).toHaveLength(2);
});

Expand Down
Loading