Function
| Static Public Summary | ||
| public |
htmlLoader(source: String): String Checks if an HTML file is an Aurelia view that is being exported using ES modules and replaces
the syntax in order to use |
|
Static Public
public htmlLoader(source: String): String source
import htmlLoader from 'projext-plugin-webpack-aurelia/src/htmlLoader.js'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:
| Name | Type | Attribute | Description |
| source | String | The module's code. |
