google / google/closure-compiler

Recognize Inner Scoped Types Exported as a Property on the Global Object

Open
#789 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.7k
Forks
1.2k
Avg merge
2d 12h
Merged PRs (30d)
6

Description

A lot of libraries I come across are almost compatible with closure-compiler. Usually the first step is to remove the IIFE that the code has.

I'd like the compiler to do this for me. A couple of options I've thought of:
1. Custom pass, possibly with a command line flag option.
2. Attempt to treat global IIFEs in a similar manner to goog.scope calls.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.