Skip to content

Design Meeting Notes, 5/21/2020 #38713

Closed
Closed
@DanielRosenwasser

Description

@DanielRosenwasser

Always Emit export {}

#38696

  • What does "always" mean?
  • If there were import/export statements in the file, there must at least be one import or export in the output.
  • We already have this rule in declaration files.
    • We just don't do it in module output.
    • We probably do.
  • This is valuable for tools like Webpack/TypeScript, but there's a class of users who won't want this.
    • They will have a point.
  • Conclusion

Optimization hints on classes

#38602
#38566

In 3.9 we started emitting an IIFE around classes with statics when targeting ES2015.

class C {
    static x = someExpression();
}

Becomes

let C = /** @class */ (() => {
    class C {
    }
    C.x = someExpression();
});

Closure can't understand this output.

https://www.hyrumslaw.com/

Allow modules to implement interfaces

#420

Metadata

Metadata

Assignees

No one assigned

    Labels

    Design NotesNotes from our design meetings

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions