We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
styleUrls
templateUrl
I have a component like this (modified from preprocessor.test.js):
@Component({ selector : 'xc-media-box-h0', templateUrl: 'media-box-h0.component.html', styleUrls : [ '../../../box.component.scss', '../../box.component.scss', '../media-box.component.scss', './media-box-h0.component.scss' ], })
My IDE will add spaces before colon to make them align. When I run the test, it shows:
SyntaxError: The string did not match the expected pattern.
Remove the spaces before colon will fix this issue.
I think the issue is like #136. The regex in preprocessor doesn't recognize this type of component declaration.
I created a PR for fixing this, change the regex to templateUrl\s*:\s*('|")(\.\/){0,}(.*)('|") and styleUrls\s*:\s*\[[^\]]*\].
templateUrl\s*:\s*('|")(\.\/){0,}(.*)('|")
styleUrls\s*:\s*\[[^\]]*\]
The text was updated successfully, but these errors were encountered:
fix: transformer breaking on spaces before colon (#165)
bd5b569
Fixes #164
No branches or pull requests
I have a component like this (modified from preprocessor.test.js):
My IDE will add spaces before colon to make them align.
When I run the test, it shows:
Remove the spaces before colon will fix this issue.
I think the issue is like #136. The regex in preprocessor doesn't recognize this type of component declaration.
I created a PR for fixing this, change the regex to
templateUrl\s*:\s*('|")(\.\/){0,}(.*)('|")
andstyleUrls\s*:\s*\[[^\]]*\]
.The text was updated successfully, but these errors were encountered: