-
Notifications
You must be signed in to change notification settings - Fork 30
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
[Bug]: Bundleless mode ouput files outside of the specified entries #498
Comments
Can you show your |
{
"$schema": "https://json.schemastore.org/tsconfig",
"compilerOptions": {
"allowImportingTsExtensions": true,
"moduleResolution": "NodeNext",
"module": "NodeNext",
"target": "ESNext",
"lib": ["ESNext"],
"isolatedModules": true,
"allowSyntheticDefaultImports": true,
"resolveJsonModule": true,
"strict": true,
"allowJs": true,
"checkJs": false,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"sourceMap": false
},
"exclude": ["dist", "node_modules"]
} I tried adding:
But then I get the following error:
Shouldn't the |
The dts generation is equivalent to You can create a new |
Thanks @Timeless0911, indeed it fixed the issue thank you 🙏🏻 Could somehow Rslib abstract the need for a custom |
Oh wait, now the DTS files are fine but there's no source code anymore All I got is an export * from "./shared/assertions.js";
export * from "./logging/consoleLogger.js";
export * from "./logging/logger.js";
export * from "./runtime/runtime.js";
export * from "./runtime/RuntimeContext.js";
export * from "./runtime/RuntimeLogger.js";
export * from "./runtime/useEventBus.js";
export * from "./runtime/useLogger.js";
export * from "./runtime/usePlugin.js";
export * from "./runtime/useRuntimeMode.js";
export * from "./messaging/eventBus.js";
export * from "./messaging/useEventBusDispatcher.js";
export * from "./messaging/useEventBusListener.js";
export * from "./registration/mergeDeferredRegistrations.js";
export * from "./registration/moduleRegistry.js";
export * from "./registration/registerLocalModules.js";
export * from "./registration/registerModule.js";
export * from "./plugins/plugin.js";
;// CONCATENATED MODULE: ./src/index.ts?__rslib_entry__ I'll extract a reproduction from by repository. |
Here's a repro: https://github.com/patricklafrance/rslib-issue-498-repro |
The Typescript Compiler need
You use The correct config is source: {
entry: {
- index: "./src/index.ts"
+ index: "./src/**"
},
},
see https://lib.rsbuild.dev/config/lib/bundle#bundle-false for details |
Ah you're right! It works as expected now, thank you for your help 🙏🏻 |
Version
Details
When Rslib is configured to ouput bundleless files, it also generate dts files for folders that are outside of my entry point (the
tests
folder and the tooling configuration files likejest.config.ts
). Is it a known issue or i'm I missing a configuration?I am using version
0.1.0
and my config is:I also tried without success:
Reproduce Steps
rslib build
The text was updated successfully, but these errors were encountered: