Skip to content
This repository has been archived by the owner on Jan 18, 2022. It is now read-only.

fix: add language fallback for template code #407

Merged
merged 3 commits into from Oct 24, 2020
Merged

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add true as third argument to always force .js

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Babel doesn't transform/transpile template code
2 participants