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

babel-preset-vue-app

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-preset-vue-app - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

20

index.js

@@ -18,4 +18,3 @@ 'use strict'

uglify: true
},
useBuiltIns: true
}
}],

@@ -27,23 +26,8 @@ // vue jsx

const plugins = [
// For vue-class-component
// class App extends Vue { msg = 123 }
require('babel-plugin-transform-class-properties'),
// Polyfills the runtime needed for async/await and generators
[require.resolve('babel-plugin-transform-runtime'), {
helpers: false,
polyfill: false,
regenerator: true,
// Resolve the Babel runtime relative to the config.
moduleName: path.dirname(require.resolve('babel-runtime/package'))
}],
[require('babel-plugin-transform-object-rest-spread'), {
// Disable babel helper function
// {...a} => Object.assign({}, a)
// You need to ship your own Object.assign polyfill
useBuiltIns: true
}],
[require('babel-plugin-transform-regenerator'), {
// babel-preset-env already transforms async function to generator
async: false
}],
require('babel-plugin-transform-object-rest-spread'),
// For dynamic import that you will use a lot in code-split

@@ -50,0 +34,0 @@ require.resolve('babel-plugin-syntax-dynamic-import')

5

package.json
{
"name": "babel-preset-vue-app",
"version": "1.0.0",
"version": "1.1.0",
"description": "Complete babel presets for a Vue app.",

@@ -28,8 +28,5 @@ "repository": {

"dependencies": {
"babel-plugin-transform-class-properties": "^6.23.0",
"babel-plugin-transform-object-rest-spread": "^6.23.0",
"babel-plugin-transform-regenerator": "^6.22.0",
"babel-plugin-transform-runtime": "^6.15.0",
"babel-preset-env": "^1.2.1",
"babel-preset-stage-2": "^6.18.0",
"babel-preset-vue": "^0.1.0",

@@ -36,0 +33,0 @@ "babel-runtime": "^6.20.0"

@@ -27,18 +27,2 @@ # babel-preset-vue-app

## Polyfill
Object rest spread and Vue JSX needs the native `Object.assign` method, you should ship one yourself like this:
```js
Object.assign = require('object.assign')
```
Or using `babel-polyfill`:
```js
import 'babel-polyfill'
```
Note that `babel-polyfill` will polyfill everything we need in `IE9`.
## Contributing

@@ -45,0 +29,0 @@

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