Skip to content

Exports added when module = "none" #64

@mike-ward

Description

@mike-ward

This seems to be related to the recent introduction of VS 2017.

With the preprocessor options of:

typescriptPreprocessor: {
      target: 'ES5',
      module: 'none',
      sourceMap: false,
      noImplicitAny: false
    },

When I run Karma I get:

Uncaught ReferenceError: exports is not defined
  at apps/controls/app-controls.js:4

and the code in the generated JavaScript contains:

"use strict";
exports.__esModule = true;
angular.module('controls.directives', []);
angular.module('controls.filters', ['controls.services']);
angular.module('controls.services', []);
...

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