Skip to content

Doesn't work with latest closure compiler #30

@alexeagle

Description

@alexeagle

Upgrading from v20170409 to v20170423 breaks the Angular example:

Release notes: https://github.com/google/closure-compiler/wiki/Releases#april-23-2017-v20170423
Broken build:
https://circleci.com/gh/alexeagle/closure-compiler-angular-bundling/82

node_modules/@angular/core/@angular/core.js:5607: ERROR - variable System is undeclared
        return System.import(module)
               ^^^^^^

node_modules/@angular/platform-browser/@angular/platform-browser.js:3091: ERROR - variable Hammer is undeclared
        const /** @type {?} */ mc = new Hammer(element);
                                        ^^^^^^

node_modules/moment/moment.js:8: ERROR - variable module is undeclared
    typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
                                          ^^^^^^

node_modules/moment/moment.js:9: ERROR - variable define is undeclared
    typeof define === 'function' && define.amd ? define(factory) :
           ^^^^^^

node_modules/moment/moment.js:399: ERROR - variable require is undeclared
                require('./locale/' + name);
                ^^^^^^^

node_modules/rxjs/util/root.js:8: ERROR - variable global is undeclared
else if (typeof global == 'object' && global.global === global) {
                ^^^^^^

cc @StephenFluin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions