-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
js.Build vs experimentalDecorators #11232
Comments
In v0.113.0 we were using: In v0.114.0 we bumped to: See https://github.com/evanw/esbuild/releases/tag/v0.18.0
|
so I must be setting that in the wrong place. My tsconfig has that line.
|
it occurred to me that maybe it isn't using the tsconfig? I tried three different ways of setting it.
and
none of them change the result. |
Git bisects says baef235 is the first bad commit. Minimal reproducible example:
Expected result: 2 Actual result in v0.114.0:
|
I try my best to read through the release notes/change sets of dependency updates, but esbuild has been really active lately, so I missed this one.
No, this is probably the build options that Hugo exposes -- and |
Ignore my last comment, this isn't part of the Go API. According to This should live in tsconfig. |
As far as I can tell, in our implementation esBuild has never read tsconfig.json files (I tested back to v0.74.0). This was probably never a problem because esBuild only inspects/honors certain fields anyway (see https://esbuild.github.io/content-types/#tsconfig-json). |
Note that esBuild only inspects/honors certain fields. See https://esbuild.github.io/content-types/#tsconfig-json. Related to gohugoio#11232
Note that esBuild only inspects/honors certain fields. See https://esbuild.github.io/content-types/#tsconfig-json. Related to gohugoio#11232
Note that esBuild only inspects/honors certain fields. See https://esbuild.github.io/content-types/#tsconfig-json. Fixes gohugoio#11232
Note that esBuild only inspects/honors certain fields. See https://esbuild.github.io/content-types/#tsconfig-json. Fixes #11232
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
In 0.113.0 I have a typescript component included by the partial
that uses typescript decorators. This component works as expected.
On upgrading, I get the following error:
repeated a number of times before the build finally fails, saying
reverting back to 0.113.0 and the build works again.
What version of Hugo are you using (
hugo version
)?and
I have tried with both. The problem does not exist with 0.113.0.
Does this issue reproduce with the latest release?
Yes.
The text was updated successfully, but these errors were encountered: