Closed DerekRoth closed 5 years ago
Yes, most probably. We had the issue at some point with the filesystem loader too.
@DerekRoth can you give 2.0.2 a try?
Just tested it, it is still failing when trying to require a template here:
for (let foundTemplateName of nodeVisitor.foundTemplateNames) {
parts.push(`require('${foundTemplateName}');
}
Good point. I also need to run the integration test suite with both separators. Will fix that.
Will be covered by #17.
On Windows, the loader fails to generate a valid code and triggers syntax errors:
I think this is because in the loader, require.resolve is used to get the path of some files, but this path will contain backslashes on Windows that should be escaped.