Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(babel): strip hash and query param in extension filter (#533)
* fix(babel): strip query param in extension filter * fix(babel): fix test * test(babel): make test more robust
- Loading branch information
Showing
9 changed files
with
97 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/* eslint-disable import/extensions */ | ||
/* eslint-disable import/no-unresolved */ | ||
|
||
// ? should be treated as special symbol for query params | ||
export { default as WithQuery } from './moduleQuery?q=asd'; | ||
// # should be treated as normal filename character | ||
export { default as WithHash } from './module#Hash'; | ||
|
||
// So, this is an import with path "./moduleQueryAnd#Hash" and query "?q=asd#hash" | ||
export { default as WithQueryAndHash } from './moduleQueryAnd#Hash?q=asd#hash'; |
1 change: 1 addition & 0 deletions
1
packages/babel/test/fixtures/with-query-and-hash/module#Hash.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export default class WithHash {} |
1 change: 1 addition & 0 deletions
1
packages/babel/test/fixtures/with-query-and-hash/moduleQuery.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export default class WithQuery {} |
1 change: 1 addition & 0 deletions
1
packages/babel/test/fixtures/with-query-and-hash/moduleQueryAnd#Hash.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export default class WithQueryAndHash {} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.