JuniorTour / vue-template-babel-compiler

Enable Optional Chaining(?.), Nullish Coalescing(??) and many new ES syntax for Vue.js SFC based on Babel
https://www.npmjs.com/package/vue-template-babel-compiler
118 stars 9 forks source link

[Bug] dynamic class bind error #13

Closed Mrzhangqc closed 2 years ago

Mrzhangqc commented 2 years ago

Current behavior

<template>
  <div :class="{[`${componentCls}__single`]: true}">

    </div>
</template>

动态class绑定时控制台报错, vue.esm.js:628 [Vue warn]: Error in render: "ReferenceError: _defineProperty is not defined"

Expected behavior

期望正常解析

Usage

vue2.0

Extra

JuniorTour commented 2 years ago

It is a bug. We just publish 1.0.4 to fix this issue.

You can try it by:

npm install vue-template-babel-compiler@1.0.4 -D
// or yarn
yarn add vue-template-babel-compiler@1.0.4 -D

83e1625d89cf2da9a41e8594942f4f7

Thank you for your feedback!