diff --git a/src/rml-loader.js b/src/rml-loader.js index 8e305b8..f37eaf7 100644 --- a/src/rml-loader.js +++ b/src/rml-loader.js @@ -20,9 +20,9 @@ module.exports = function RMLLoader(rawContent) { const parts = preCompileParts(rawContent, resourcePath); - const loadScriptRequest = stringifyRequest(`${paths.partLoader}?part=script!${resourcePath}`); - const loadTemplateRequest = stringifyRequest(`${paths.templateLoader}?renderer=${renderer}&inlineStyle=${inlineStyle}!${paths.partLoader}?part=template!${resourcePath}`); - const loadStyleRequest = stringifyRequest(`${paths.styleLoader}!${resourcePath}`); + const loadScriptRequest = stringifyRequest(`-!${paths.partLoader}?part=script!${resourcePath}`); + const loadTemplateRequest = stringifyRequest(`-!${paths.templateLoader}?renderer=${renderer}&inlineStyle=${inlineStyle}!${paths.partLoader}?part=template!${resourcePath}`); + const loadStyleRequest = stringifyRequest(`-!${paths.styleLoader}!${resourcePath}`); let loadData; if (parts.script) {