Comments (1)
The only difference I see is that the new compiler doesn't generate an (otherwise unused) local variable for an exported import statement. Specifically, given:
export import a = b;
the old compiler would generate:
var a = b;
exports.a = a;
where the new compiler simply generates:
exports.a = b;
Both compilers rewrite all references to a
into exports.a
so the new scheme definitely seems better.
from typescript.
Related Issues (20)
- Impossible to annotate parameter properties in an isolatedDeclarations compatible way HOT 4
- Intellisense "includes" breaks after many large files
- ScriptKind.Deferred treated as LanguageVariant.Standard HOT 2
- The `super` keyword in a private method leads to the compilation of incorrect JS code HOT 1
- Is there any plan to support tc39/proposal-decorators/EXTENSIONS? HOT 7
- If `tsc` finds 0 errors, log using `console.log` instead of `console.error` HOT 3
- Assertion signature on generics doesn't narrow HOT 12
- Cannot use type narrowing with a generic against a type map HOT 2
- 'React' refers to a UMD global, but the current file is a module. Consider adding an import instead. HOT 7
- Improve module resolution using "paths" of "tsconfig.json" file
- A
- Grammatical error in TS9025 diagnostic
- [NewErrors] deploys-pr-build-5.7.0-pr-60122-2 vs 5.6.2 HOT 38
- `exactOptionalPropertyTypes` faults the use of `Omit` HOT 7
- moduleResolution: "bunder" with subpath exports does not support extensionless imports HOT 8
- `asserts this is T` does not narrow type of `this` HOT 2
- @types/node's URL is no longer assignable to TS 5.6's DOM URL type HOT 1
- Inconsistent Function Subtyping: `(input?: string) => void` Incorrectly Assignable to `() => void` HOT 1
- TS2416 with typescript 5.6 when using disposable lib
- Add Stage 3 float16 features types
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from typescript.