Bug Report
🔎 Search Terms
TS 4.4 beta commonjs
🕗 Version & Regression Information
- This changed between versions 4.3.5 and 4.4.0-beta
⏯ Playground Link
Playground link with relevant code
💻 Code
import {render} from 'less';
render('input', () => {});
🙁 Actual behavior
render is called with a this of Window
Emit is
(0, less_1.render)('input', () => { });
🙂 Expected behavior
render is called with a this of require('less')
Emit should be
less_1.render('input', () => { });
It looks like this was caused by #44624.