Did `basename` just break `esbuild` plugin?
ngdangtu-vn opened this issue · 1 comments
ngdangtu-vn commented
Version
2.2.1
Platform
linux / ubuntu / tuxedo os 3
What steps will reproduce the bug?
- create a folder, let's call
frontend/
- add
frontend/_data.ts
with content like thisexport default { basename: '/' }
- create
main.ts
with simple content such asconsole.log('hello-world')
- install esbuild plugin
- run
deno task serve
How often does it reproduce? Is there a required condition?
always in both build mode and server mode
What is the expected behavior?
The esbuild should build the files then copy the built files to a new path
What do you see instead?
The files (that were meant to be built) got copied to a new path before esbuild can start working on it. In the end, the origin files were copied to the public and the built files are still created in the old relative path under public root.
Additional information
This is a bug because the sass plugin doesn't have this behaviour.
oscarotero commented
Thanks for reporting this. I can reproduce this issue and indeed it's a bug.