Version
2.1.3
Platform
linux
What steps will reproduce the bug?
- initialize lume project with esbuild.
.
├── _config.ts
├── _site
│ ├── a.js
│ └── b.js
├── a.ts
├── b.ts
└── deno.json
- setup project as following:
_config.ts
import lume from "lume/mod.ts"
import esbuild from "lume/plugins/esbuild.ts"
const site = lume()
site.use(esbuild({
extensions: [".tsx", ".ts"],
options: {
minify: false,
keepNames: false,
bundle: false,
splitting: true,
},
}))
export default site
a.ts
import { b } from "./b.ts"
console.log(b)
b.ts
- run
deno task build.
How often does it reproduce? Is there a required condition?
it always happens.
What is the expected behavior?
.ts extension in compiled output is converted to .js.
What do you see instead?
a.js
import { b } from "./b.ts";
console.log(b);
b.js
const b = 3;
export {
b
};
output extension is unchanged './b.ts', thus fails to load in browser.
Additional information
No response
Version
2.1.3
Platform
linux
What steps will reproduce the bug?
_config.tsa.tsb.tsdeno task build.How often does it reproduce? Is there a required condition?
it always happens.
What is the expected behavior?
.tsextension in compiled output is converted to.js.What do you see instead?
a.jsb.jsoutput extension is unchanged '
./b.ts', thus fails to load in browser.Additional information
No response