Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bundles error with 'exports is not defined' on html imports #2270

Closed
MoonStorm opened this issue Mar 29, 2017 · 1 comment
Closed

bundles error with 'exports is not defined' on html imports #2270

MoonStorm opened this issue Mar 29, 2017 · 1 comment

Comments

@MoonStorm
Copy link

MoonStorm commented Mar 29, 2017

When attempting to bundle html files for production, I get the following construct in the js file:

System.register("app/components/component.html", [], function (_export, _context) {
  "use strict";
  return {
    setters: [],
    execute: function () {
      Object.defineProperty(exports, "__esModule", { value: true });
      exports.__useDefault = true;
      exports.default = "<div>....</div>";
    }
  };
});

Bundles get generated but they fail with an 'exports is not defined' error when referenced in the browser.

The dev/build config uses the typescript plugin and the text plugin, both working fine otherwise.

@guybedford
Copy link
Member

This seems like a duplicate of systemjs/plugin-text#47, moving discussion there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants