Custom Javascript module to be imported correctly on a Windows environment.
Actual behavior
Custom Javascript classes will not be loaded at all because the context.template variable is populated using backslashes which will not map to the customClasses dictionary correctly.
Steps to reproduce behavior
Create a custom template for a page and Javscript module based on the PageManager class
Run Stencil locally on a Windows environment
Custom module will not load when viewing the page
This is caused by the context.template variable in the assets/js/app.js file containing backslashes on a Windows environment (pages\custom\page\custom-page-template) . The path should be normalized so that it works on both Linux/Windows environments.
Expected behavior
Custom Javascript module to be imported correctly on a Windows environment.
Actual behavior
Custom Javascript classes will not be loaded at all because the context.template variable is populated using backslashes which will not map to the customClasses dictionary correctly.
Steps to reproduce behavior
This is caused by the context.template variable in the assets/js/app.js file containing backslashes on a Windows environment (pages\custom\page\custom-page-template) . The path should be normalized so that it works on both Linux/Windows environments.