You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[flow][tslib] Support export = ... and import foo = ...
Summary:
This adds support for two [TypeScript-style](https://www.typescriptlang.org/docs/handbook/modules/reference.html#export--and-import--require) syntactic forms behind the `tslib_syntax` flag:
1. `export = <expression>` (ExportAssignment) — the equivalent of `module.exports = ...`
2. `import <id> = require("<module>")` and `import <id> = <QualifiedName>` (ImportEqualsDeclaration) — the equivalent of `const <id> = require(...)`
Changelog: [internal]
Reviewed By: SamChou19815
Differential Revision: D92915376
fbshipit-source-id: 70f67a14dce1abbce6d2978a3507c83f3aa53f60
0 commit comments