Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-template-babel-compiler

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-template-babel-compiler - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6-0

4

lib/index.js

@@ -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)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc