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

  is stripped from templates #13

Closed
jasonhibbs opened this issue Jul 1, 2020 · 1 comment
Closed

  is stripped from templates #13

jasonhibbs opened this issue Jul 1, 2020 · 1 comment

Comments

@jasonhibbs
Copy link

jasonhibbs commented Jul 1, 2020

I believe some combination of Typescript and Pug means  s are stripped from template blocks.

Test

Create fresh project from Vue CLI with basic settings:

Vue CLI v4.4.6
? Please pick a preset: Manually select features
? Check the features needed for your project: Babel, TS, Linter
? Use class-style component syntax? Yes
? Use Babel alongside TypeScript (required for modern mode, auto-detected polyfills, transpiling JSX)? Yes
? Pick a linter / formatter config: Basic
? Pick additional lint features: Lint on save
? Where do you prefer placing config for Babel, ESLint, etc.? In dedicated config files
? Save this as a preset for future projects? No

Add vue-cli-plugin-pug:

vue add pug

Replace HelloWord.vue template with:

<template lang="pug">
  .hello
    p This&nbsp;should&nbsp;never&nbsp;break.&nbsp;This&nbsp;should&nbsp;never&nbsp;break.&nbsp;This&nbsp;should&nbsp;never&nbsp;break.&nbsp;
</template>

When inspected, &nbsp;s are not present. Is this to do with Babel and JSX as mentioned here?

@jasonhibbs
Copy link
Author

Reproduced without Pug and without Typescript, new issue opened at vue-cli.

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

No branches or pull requests

1 participant