rslib icon indicating copy to clipboard operation
rslib copied to clipboard

fix: preserve original extension when extension redirection is disabled

Open Timeless0911 opened this issue 2 weeks ago • 1 comments

Summary

when redirect.js.extension set to false

source

export * from './bar.node';
export * from './bar.node.js';
export * from './bar.node.ts';
export * from './bar';
export * from './baz-folder';
export * from './foo.js';
export * from './foo.ts';

before

export * from "./bar.node.ts";
export * from "./bar.node.ts";
export * from "./bar.node.ts";
export * from "./baz.ts";
export * from "./baz-folder/index.ts";
export * from "./foo.ts";
export * from "./foo.ts";

now

export * from "./bar.node";
export * from "./bar.node.js";
export * from "./bar.node.ts";
export * from "./baz";
export * from "./baz-folder/index";
export * from "./foo.js";
export * from "./foo.ts";

Related Links

close: https://github.com/web-infra-dev/rslib/discussions/1368

Checklist

  • [ ] Tests updated (or not required).
  • [ ] Documentation updated (or not required).

Timeless0911 avatar Nov 27 '25 10:11 Timeless0911

Deploy Preview for rslib ready!

Name Link
Latest commit 40151d3a458a51797a60e0375fa923e42bc44e6a
Latest deploy log https://app.netlify.com/projects/rslib/deploys/692d78e06e46180008107944
Deploy Preview https://deploy-preview-1369--rslib.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

netlify[bot] avatar Nov 27 '25 10:11 netlify[bot]