Closed KonnorRogers closed 1 month ago
@KonnorRogers So…I'm trying to find esbuild documentation that explains object syntax here vs. array, and all I'm seeing here:
https://esbuild.github.io/api/#entry-points
is out
/in
syntax which does something very specific (lets you map an input file to a differently named output file). I don't know if "javascript/index": "frontend/javascript/index.js",
is a valid option. 🤔
@jaredcwhite its just poorly documented.
its 100% a valid option.
I use it for Light Pen and Role Components
Ah, OK I see some of the entries there. Interesting!
@jaredcwhite The object syntax is actually more flexible than arrays. So I could do something like:
{
"my-custom-index-path": "frontend/javascript/index.js"
}
So then frontend/javascript/index.js
will turn into my-custom-index-path.[hash].js
in your final output.
Bridgetown Version: 2.0.0.beta2
To Reproduce
Current behavior
You'll get the following error:
Expected behavior
Should accept an object.
Screenshots
Computing environment (please complete the following information):
Additional context