We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
// folder/index.ts export const folder = 'folder';
// index.ts import { folder } from './folder'; export const text = folder;
import * as __WEBPACK_EXTERNAL_MODULE__folder_js__ from "./folder.js"; const src_text = __WEBPACK_EXTERNAL_MODULE__folder_js__.folder; export { src_text as text };
rslib/packages/core/src/config.ts
Lines 693 to 721 in 600937c
In line 710, we directly add a jsExtension in bundless mode to make bundleless esm outputs work.
Line 710 in 600937c
/index
Index resolution is a standard behaviour which takes effects in both nodejs and ts, and Rslib now use default resolve.mainFiles: ['index'] of Rspack.
resolve.mainFiles: ['index']
We should handle when ./folder/index.ts and ./folder.ts exists at the same time, there may also be .ts, .tsx, .jsx existing.
./folder/index.ts
./folder.ts
.ts
.tsx
.jsx
The text was updated successfully, but these errors were encountered:
Feeling like we really need getResolve param in function external type.
getResolve
Sorry, something went wrong.
autoExtensions
"./components/button/index.js"
bundle: false
Successfully merging a pull request may close this issue.
Details
input
Output
rslib/packages/core/src/config.ts
Lines 693 to 721 in 600937c
In line 710, we directly add a jsExtension in bundless mode to make bundleless esm outputs work.
rslib/packages/core/src/config.ts
Line 710 in 600937c
/index
in bundleless mode.Index resolution is a standard behaviour which takes effects in both nodejs and ts, and Rslib now use default
resolve.mainFiles: ['index']
of Rspack.We should handle when
./folder/index.ts
and./folder.ts
exists at the same time, there may also be.ts
,.tsx
,.jsx
existing.The text was updated successfully, but these errors were encountered: