Home Reference Source

Function

Static Public Summary
public

Checks if an HTML file is an Aurelia view that is being exported using ES modules and replaces the syntax in order to use module.exports.

Static Public

public htmlLoader(source: String): String source

Checks if an HTML file is an Aurelia view that is being exported using ES modules and replaces the syntax in order to use module.exports. The issue here is that the Aurelia's webpack plugin doesn't use ES modules and when the view is loaded, the HTML is inside a default property, which breaks the Aurelia's loader.

Params:

NameTypeAttributeDescription
source String

The module's code.

Return:

String