babel-preset-vue-app
Advanced tools
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') |
{ | ||
"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 @@ |
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
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
5
3585
34
39
- Removedbabel-preset-stage-2@^6.18.0
- Removedbabel-helper-bindify-decorators@6.24.1(transitive)
- Removedbabel-helper-explode-class@6.24.1(transitive)
- Removedbabel-plugin-syntax-async-generators@6.13.0(transitive)
- Removedbabel-plugin-syntax-class-properties@6.13.0(transitive)
- Removedbabel-plugin-syntax-decorators@6.13.0(transitive)
- Removedbabel-plugin-syntax-dynamic-import@6.18.0(transitive)
- Removedbabel-plugin-transform-async-generator-functions@6.24.1(transitive)
- Removedbabel-plugin-transform-class-properties@6.24.1(transitive)
- Removedbabel-plugin-transform-decorators@6.24.1(transitive)
- Removedbabel-preset-stage-2@6.24.1(transitive)
- Removedbabel-preset-stage-3@6.24.1(transitive)