vue-template-babel-compiler
vue-template-babel-compiler copied to clipboard
Enable Optional Chaining(?.), Nullish Coalescing(??) and many new ES syntax for Vue.js SFC based on Babel
``` ``` 改成这样就不报错 ``` ``` 报错信息: [vite-plugin-vue2] /Users/admin/work/code/brick/esop2-support/VueTemplateBabelCompiler: Property key of ObjectMethod expected node to be of a type ["Identifier","StringLiteral","NumericLiteral"] but instead got "MemberExpression"
Optional chaining works greats in my Nuxt application, however, when I run my Jest unit tests, I get the following error message: ```Jest encountered an unexpected token``` In my jest.config.js...
# Array Spreading ## Current behavior ### Vue Code ``` html ``` ### Compiled Code ``` js _c("FormGroup", { staticClass: "mb-0", attrs: { id: "search", type: "select", options: [ {...
## Current behavior when compiling for dev, the compiler seems to work great when compiling for prod, i get the following error (38 times, for different vue components) ``` ERROR...
I'm trying to do this in Webpack: ```js use: { loader: 'vue-loader', options: { compiler: require('vue-template-babel-compiler'), compilerOptions: { babelOptions: { plugins: [['babel-plugin-istanbul', { extension: ['.js', '.vue'], excludeNodeModules: false }]] }...
- [yes ] Would you like to work on a fix? ## Current behavior ``` html // your code goes here 输出:{{info.aaa ?? 'empty'}} ``` https://github.com/LYSSION/vue-demo 环境:nodejs12.22.1 复现步骤 1.拉取仓库代码 2.npm...
## Description Filename: Functional.vue ``` vue {{ props.msg }} import Vue from 'vue'; export default Vue.extend({ name: 'Functional', props: { msg: String, }, }); ``` ## Current behavior Throw error...
invalid expression: Unexpected token '.' in optional?.chaining v1.0.0
My devDependencies:  Then use array deconstructing in template like this:  Run dev server by vue-cli with command "vue-cli-service serve". The browser shows errors: ReferenceError: _maybeArrayLike is not defined....
Are there any plans to add support for the [Babel pipeline operator proposal](https://babeljs.io/docs/en/babel-plugin-proposal-pipeline-operator)? We have a (pretty huge) Vue@2 project and would like a way to support these as we...