Skip to content
New issue

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

fix: add language fallback for template code #407

Merged
merged 3 commits into from Oct 24, 2020
Merged

fix: add language fallback for template code #407

merged 3 commits into from Oct 24, 2020

Conversation

@Nerixyz
Copy link
Contributor

@Nerixyz Nerixyz commented Oct 24, 2020

Fixes #406 .

Changes proposed in this pull request:

  • Add language fallback ("js") for template code (so it's able to be transformed by babel).

/ping @znck

src/index.ts Outdated
@@ -478,7 +478,7 @@ function getTemplateCode(
const idQuery = `&id=${id}`
const scopedQuery = hasScoped ? `&scoped=true` : ``
const srcQuery = descriptor.template.src ? `&src` : ``
const attrsQuery = attrsToQuery(descriptor.template.attrs)
const attrsQuery = attrsToQuery(descriptor.template.attrs, 'js')
Copy link
Member

@znck znck Oct 24, 2020

Add true as third argument to always force .js

znck
znck approved these changes Oct 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

2 participants