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

Add better support for pug #1361

Merged
merged 2 commits into from Aug 13, 2017
Merged

Add better support for pug #1361

merged 2 commits into from Aug 13, 2017

Conversation

DaxChen
Copy link

@DaxChen DaxChen commented Aug 13, 2017

When using lang="pug", passing Boolean true as prop and using directives will case errors.

See:
vuejs/vue-loader#693
vuejs/vue-loader#55

For example:

<template lang="pug">
foo(
  bar
  v-baz-directive
)
</template>

This will be rendered as
<foo bar="bar" v-baz-directive="v-baz-directive">
and cause errors such as bar expected Boolean but got String and v/baz/directive not defined.

When using `lang="pug"`, passing Boolean `true` as prop and using directives will case errors.

See: 
vuejs/vue-loader#693
vuejs/vue-loader#55

For example:

```html
<template lang="pug">
foo(
  bar
  v-baz-directive
)
</template>
```

This will be rendered as
`<foo bar="bar" v-baz-directive="v-baz-directive">`
and cause errors such as `bar expected Boolean but got String` and `v`/`baz`/`directive` not defined.
@codecov-io
Copy link

codecov-io commented Aug 13, 2017

Codecov Report

Merging #1361 into dev will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##              dev    #1361   +/-   ##
=======================================
  Coverage   93.04%   93.04%           
=======================================
  Files          12       12           
  Lines         748      748           
=======================================
  Hits          696      696           
  Misses         52       52
Impacted Files Coverage Δ
lib/builder/webpack/vue-loader.config.js 100% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 61111c8...90b19e0. Read the comment docs.

@Atinux Atinux merged commit 2a4119c into nuxt:dev Aug 13, 2017
@lock
Copy link

lock bot commented Nov 1, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Nov 1, 2018
@danielroe danielroe added the 2.x label Jan 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants