vue-template-babel-compiler icon indicating copy to clipboard operation
vue-template-babel-compiler copied to clipboard

Enable Optional Chaining(?.), Nullish Coalescing(??) and many new ES syntax for Vue.js SFC based on Babel

Results 19 vue-template-babel-compiler issues
Sort by recently updated
recently updated
newest added

``` ``` 改成这样就不报错 ``` ``` 报错信息: [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"

bug
contribution welcome

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...

question

# Array Spreading ## Current behavior ### Vue Code ``` html ``` ### Compiled Code ``` js _c("FormGroup", { staticClass: "mb-0", attrs: { id: "search", type: "select", options: [ {...

help wanted

## 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...

bug
help wanted

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 }]] }...

question

- [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...

question

## Description Filename: Functional.vue ``` vue {{ props.msg }} import Vue from 'vue'; export default Vue.extend({ name: 'Functional', props: { msg: String, }, }); ``` ## Current behavior Throw error...

question

invalid expression: Unexpected token '.' in optional?.chaining v1.0.0

bug

My devDependencies: ![image](https://user-images.githubusercontent.com/43535074/149469216-0d0de18d-eddb-4207-b64d-871d6938fdd4.png) Then use array deconstructing in template like this: ![image](https://user-images.githubusercontent.com/43535074/149469463-d1f7d238-369a-4ccf-a1d6-e7e1c5bba5bc.png) Run dev server by vue-cli with command "vue-cli-service serve". The browser shows errors: ReferenceError: _maybeArrayLike is not defined....

bug
contribution welcome
Fixed

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...

enhancement
contribution welcome