Open thisredone opened 4 years ago
Here is a solution if you are using a bundler which supports resolutions in package.json
{
"resolutions": {
"vue-template-es2015-compiler": "npm:vue-template-babel-compiler@1.1.3"
}
}
Here is a solution if you are using a bundler which supports resolutions in package.json
{ "resolutions": { "vue-template-es2015-compiler": "npm:vue-template-babel-compiler@1.1.3" } }
VERY NICE!
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