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

Allow for different transpilers than vue-template-es2015-compiler #65

Open
thisredone opened this issue Jul 13, 2019 · 2 comments
Open

Comments

@thisredone
Copy link

Specifying a different transpiler than the current vue-template-es2015-compiler would add the ability for code inside the templates to be processed the same (or a similar) way to the code from <script>.

For example there are outstanding proposals to the ecmascript that currently can be used through babel plugins[1] but they won't work inside the template expressions since they don't follow the same compilation path.

[1] https://babeljs.io/docs/en/babel-plugin-proposal-optional-chaining

@NikhilVerma
Copy link

Here is a solution if you are using a bundler which supports resolutions in package.json

{
  "resolutions": {
    "vue-template-es2015-compiler": "npm:[email protected]"
  }
}

@hejun200613224
Copy link

Here is a solution if you are using a bundler which supports resolutions in package.json

{
  "resolutions": {
    "vue-template-es2015-compiler": "npm:[email protected]"
  }
}

VERY NICE!

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

3 participants