rslib
rslib copied to clipboard
fix: preserve original extension when extension redirection is disabled
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).
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...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify project configuration.