Skip to content

ngtemplate-loader doesn't support esModule option #186

Description

@scottohara

html-loader allows us to import HTML files like this:

import AccountEditView from "accounts/views/edit.html";

[email protected] defaults to esModule: true, which causes ngtemplate-loader to throw an error:

WARNING in ./src/accounts/controllers/index.ts 26:25-40
export 'default' (imported as 'AccountEditView') was not found in 'accounts/views/edit.html' (module has no exports)
 @ ./src/accounts/index.ts 7:0-57 17:42-64
 @ ./src/loot/index.ts 6:0-18

As a workaround, we simply set esModule: false on html-loader; but it would be nice if we didn't have to do this and could use the default settings.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions