Closed
Description
If you try compiling the following with swc:
import Foo from 'bar';
You get this:
'use strict';
var _bar = _interopRequireDefault(require('bar'));
The function _interopRequireDefault
is referenced, though never defined, leading to ReferenceError
s.
There are other functions that have the same behavior:
_interopRequireWildcard
Expected: If swc inserts references to functions, it will define or import those functions.
Actual: swc references numerous functions that it does not define/import.
Metadata
Metadata
Assignees
Labels
No labels