vue-template-babel-compiler
Advanced tools
Comparing version 1.0.5 to 1.0.6-0
@@ -31,3 +31,3 @@ 'use strict'; | ||
function shouldPrependVmNew(path) { | ||
function shouldPrependVm(path) { | ||
var _scope$path, _scope$block$params; | ||
@@ -63,3 +63,3 @@ | ||
Identifier(path) { | ||
if (shouldPrependVmNew(path)) { | ||
if (shouldPrependVm(path)) { | ||
path.replaceWith(t.memberExpression(t.identifier(vueModelName), path.node)); | ||
@@ -66,0 +66,0 @@ } |
{ | ||
"name": "vue-template-babel-compiler", | ||
"version": "1.0.5", | ||
"version": "1.0.6-0", | ||
"description": "Post compiler for Vue template render functions to support ES features with Babel", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -1,2 +0,3 @@ | ||
# vue-template-babel-compiler | ||
# vue-template-babel-compiler · [![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/JuniorTour/vue-template-babel-compiler) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/JuniorTour/vue-template-babel-compiler/blob/main/CONTRIBUTING.md) | ||
Enable `Optional Chaining(?.)`, `Nullish Coalescing(??)` and many new ES syntax for [Vue.js SFC](https://vuejs.org/v2/guide/single-file-components.html) based on [Babel](https://babeljs.io/). | ||
@@ -12,2 +13,7 @@ | ||
<img | ||
src="https://img.shields.io/github/size/JuniorTour/vue-template-babel-compiler/lib/index.js" | ||
alt="Size"> | ||
</a> | ||
<a href="https://www.npmjs.com/package/vue-template-babel-compiler"> | ||
<img | ||
src="https://img.shields.io/npm/v/vue-template-babel-compiler.svg?sanitize=true" | ||
@@ -73,5 +79,5 @@ alt="Version"> | ||
## [Usage Detail Doc](https://github.com/JuniorTour/vue-template-babel-compiler/blob/main/doc/Usage.md) | ||
- [vue-jest Usage](https://github.com/JuniorTour/vue-template-babel-compiler/blob/main/doc/Usage.md#vue-jest) | ||
- [Webpack Usage](https://github.com/JuniorTour/vue-template-babel-compiler/blob/main/doc/Usage.md#Webpack) | ||
- [Functional Component Usage](https://github.com/JuniorTour/vue-template-babel-compiler/blob/main/doc/Usage.md#Functional-Component-Usage) | ||
- [vue-jest Usage](https://github.com/JuniorTour/vue-template-babel-compiler/blob/main/doc/Usage.md#1-vue-jest) | ||
- [Webpack Usage](https://github.com/JuniorTour/vue-template-babel-compiler/blob/main/doc/Usage.md#2-webpack) | ||
- [Functional Component Usage](https://github.com/JuniorTour/vue-template-babel-compiler/blob/main/doc/Usage.md#1-functional-component-usage) | ||
@@ -78,0 +84,0 @@ ## [API Doc](https://github.com/JuniorTour/vue-template-babel-compiler/blob/main/doc/API.md) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12433
86
2