Runtime code is erroneously executed at compile-time #2114
Labels
breaking
Use to mark breaking PR
bug
Issues related to defects and incorrect/unexpected feature behavior
severity: moderate
Issues with medium impact on the product, e.g., new features, non-critical defects, etc.
Describe the bug
Since undocumented changes in 0.33.X framework version, runtime code can be erroneously executed at compile-time
To Reproduce
Steps to reproduce the behaviour:
npx [email protected] -e hacker-news -t hn-33
AWS_XRAY_DAEMON_ADDRESS=qqq yarn cloud
in example directoryExpected behaviour
Compile time phase should not involve execution of runtime code, including any dependencies. Compiler should only perform transpiling and bundling, but should not execute any customer and dependencies code at compile-time
Desktop (please complete the following information):
Additional context
Compile/runtime phases isolation had been broken here https://github.com/reimagined/resolve/blob/dev/packages/tools/scripts/src/alias/%24resolve.backendEntry.js#L58-L59 in this ~10K LOC changes commit 2be44e3
The text was updated successfully, but these errors were encountered: