Incorrect to compile `sass` source code
- Dominant language
- Go
- Stars
- 40.1k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
The `require` of `sass.dart.js` will be rename to `__require`


But esbuild use global `require` to access object property

It will make `Uncaught RangeError: Maximum call stack size exceeded` when using `monaco-editor`

Maybe esbuild should only rename the expression of calling function
This is a minimal reproduction link: https://codesandbox.io/p/devbox/esbuild-issue-ws2f3n
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the linked CodeSandbox minimal reproduction and inspect the generated code around the renamed `require` call and the global `require` property access. Confirm the `monaco-editor` case produces the reported maximum call stack error; done means the reproduction no longer fails because of this renaming interaction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, sass
- Domain
- build-system, compilers, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100