-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(es/module): Fix resolving of dependencies (#8533)
**Description:** I changed the signature of `Resolve` because there was a need to pass the `value` part from `jsc.paths` to the caller. **Related issue:** - Closes #8184
- Loading branch information
Showing
32 changed files
with
257 additions
and
74 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
import styles from "./foo.ts/index.js"; | ||
import styles from "./foo.ts/index"; | ||
console.log(styles); |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
import { NekoRoute } from "./src/lib/structures/route/index.js"; | ||
import { NekoRoute } from "./src/lib/structures/route"; | ||
console.log(NekoRoute); |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
import { fn } from "./libs/pkg/src"; | ||
import { fn } from "./libs/pkg/src/index.ts"; | ||
console.log(fn); |
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,14 @@ | ||
{ | ||
"jsc": { | ||
"parser": { | ||
"syntax": "typescript", | ||
"tsx": true | ||
}, | ||
"baseUrl": ".", | ||
"paths": { | ||
"~/*": [ | ||
"./src/*" | ||
] | ||
} | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
crates/swc/tests/fixture/issues-8xxx/8184/1/input/src/a/index.jsx
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,16 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
|
||
const a = props => { | ||
return ( | ||
<div> | ||
|
||
</div> | ||
); | ||
}; | ||
|
||
a.propTypes = { | ||
|
||
}; | ||
|
||
export default a; |
16 changes: 16 additions & 0 deletions
16
crates/swc/tests/fixture/issues-8xxx/8184/1/input/src/b/index.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,16 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
|
||
const b = props => { | ||
return ( | ||
<div> | ||
|
||
</div> | ||
); | ||
}; | ||
|
||
b.propTypes = { | ||
|
||
}; | ||
|
||
export default b; |
1 change: 1 addition & 0 deletions
1
crates/swc/tests/fixture/issues-8xxx/8184/1/input/src/c/index.ts
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 (a) => a |
10 changes: 10 additions & 0 deletions
10
crates/swc/tests/fixture/issues-8xxx/8184/1/input/src/d/index.tsx
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 @@ | ||
import * as React from 'react'; | ||
|
||
interface IAppProps { | ||
} | ||
|
||
const App: React.FunctionComponent<IAppProps> = (props) => { | ||
return <div>123</div>; | ||
}; | ||
|
||
export default App; |
6 changes: 6 additions & 0 deletions
6
crates/swc/tests/fixture/issues-8xxx/8184/1/input/src/index.ts
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,6 @@ | ||
import a from '~/a'; | ||
import b from '~/b'; | ||
import c from '~/c'; | ||
import d from '~/d'; | ||
|
||
console.log(a, b, c, d); |
6 changes: 6 additions & 0 deletions
6
crates/swc/tests/fixture/issues-8xxx/8184/1/output/src/b/index.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,6 @@ | ||
import React from "react"; | ||
var b = function(props) { | ||
return /*#__PURE__*/ React.createElement("div", null); | ||
}; | ||
b.propTypes = {}; | ||
export default b; |
3 changes: 3 additions & 0 deletions
3
crates/swc/tests/fixture/issues-8xxx/8184/1/output/src/c/index.ts
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,3 @@ | ||
export default function(a) { | ||
return a; | ||
}; |
5 changes: 5 additions & 0 deletions
5
crates/swc/tests/fixture/issues-8xxx/8184/1/output/src/d/index.tsx
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,5 @@ | ||
import * as React from "react"; | ||
var App = function(props) { | ||
return /*#__PURE__*/ React.createElement("div", null, "123"); | ||
}; | ||
export default App; |
5 changes: 5 additions & 0 deletions
5
crates/swc/tests/fixture/issues-8xxx/8184/1/output/src/index.ts
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,5 @@ | ||
import a from "./a"; | ||
import b from "./b"; | ||
import c from "./c"; | ||
import d from "./d"; | ||
console.log(a, b, c, d); |
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
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
Oops, something went wrong.