You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to parse some of what were originally SLIM templates using webpack. I've created a pretty basic loader (code below) and it works for the most part but I'm getting some unusual errors being thrown. I'm also not getting line numbers from the errors, nor does the error look like something from the SLM library.
The Loader:
'use strict';
var loaderUtils = require("loader-utils");
var slm = require("slm");
var markdown = require("slm-markdown")
markdown.register(slm.template)
module.exports = function(source) {
this.cacheable && this.cacheable(true);
var query = loaderUtils.parseQuery(this.query);
var req = loaderUtils.getRemainingRequest(this).replace(/^!/, "");
slm.compile(source)()
}
I'm trying to parse some of what were originally SLIM templates using webpack. I've created a pretty basic loader (code below) and it works for the most part but I'm getting some unusual errors being thrown. I'm also not getting line numbers from the errors, nor does the error look like something from the SLM library.
The Loader:
The error
The line that is causing it:
If I remove the
$
it works. This is an angular template so it is meant to return a currency value, hence the dollar sign.The text was updated successfully, but these errors were encountered: