Enable Optional Chaining(?.), Nullish Coalescing(??) and many new ES syntax for Vue.js SFC based on Babel
Update package.json engines
to only support for Node.js v14+.
The vue-template-compiler
use new Function(("return " + exp))
to detect if js expression is valid.
So if Node.js env not support optional chaining syntax, compile will fail.
We can support Node.js version below 12, but it need a lot of work.
Details explanation: https://github.com/JuniorTour/vue-template-babel-compiler/issues/29#issuecomment-1005424023
Full Changelog: https://github.com/JuniorTour/vue-template-babel-compiler/compare/v1.1.3...v1.2.0
Full Changelog: https://github.com/JuniorTour/vue-template-babel-compiler/compare/v1.1.2...v1.1.3
Full Changelog: https://github.com/JuniorTour/vue-template-babel-compiler/compare/v1.1.0...v1.1.1
Full Changelog: https://github.com/JuniorTour/vue-template-babel-compiler/compare/v1.0.8...v1.1.0
chore: add test case for #16 by @JuniorTour in https://github.com/JuniorTour/vue-template-babel-compiler/pull/19
chore: clean up name by @JuniorTour in https://github.com/JuniorTour/vue-template-babel-compiler/pull/20
chore: rm useVueTemplateBabelCompiler.sh by @JuniorTour in https://github.com/JuniorTour/vue-template-babel-compiler/pull/21
fix: Identifier in computed OptionalMemberExpression by @lsdsjy in https://github.com/JuniorTour/vue-template-babel-compiler/pull/26
test: add test case for computed OptionalMemberExpression by @lsdsjy in https://github.com/JuniorTour/vue-template-babel-compiler/pull/27
@lsdsjy made their first contribution in https://github.com/JuniorTour/vue-template-babel-compiler/pull/26
Full Changelog: https://github.com/JuniorTour/vue-template-babel-compiler/compare/v1.0.5...v1.0.7