babel-preset-travi
Advanced tools
Comparing version 1.3.1 to 1.4.0
@@ -20,3 +20,8 @@ 'use strict'; | ||
].filter(Boolean), | ||
plugins: [[restSpread, {useBuiltIns: true}]] | ||
plugins: [ | ||
[restSpread, {useBuiltIns: true}], | ||
...react | ||
? [require('babel-plugin-transform-class-properties'), require('babel-plugin-inline-react-svg').default] | ||
: [] | ||
] | ||
}; | ||
@@ -23,0 +28,0 @@ } |
@@ -16,3 +16,8 @@ import env from 'babel-preset-env'; | ||
].filter(Boolean), | ||
plugins: [[restSpread, {useBuiltIns: true}]] | ||
plugins: [ | ||
[restSpread, {useBuiltIns: true}], | ||
...react | ||
? [require('babel-plugin-transform-class-properties'), require('babel-plugin-inline-react-svg').default] | ||
: [] | ||
] | ||
}; | ||
@@ -19,0 +24,0 @@ } |
{ | ||
"name": "babel-preset-travi", | ||
"description": "My shareable babel preset", | ||
"version": "1.3.1", | ||
"version": "1.4.0", | ||
"main": "lib/index.cjs.js", | ||
@@ -35,12 +35,14 @@ "module": "lib/index.es.js", | ||
"@travi/eslint-config-travi": "1.6.13", | ||
"commitlint-config-travi": "1.2.29", | ||
"commitlint-config-travi": "1.2.30", | ||
"cz-conventional-changelog": "2.1.0", | ||
"doctoc": "1.3.1", | ||
"greenkeeper-lockfile": "1.15.0", | ||
"greenkeeper-lockfile": "1.15.1", | ||
"husky": "0.15.0-rc.13", | ||
"npm-run-all": "4.1.3", | ||
"rimraf": "2.6.2", | ||
"rollup": "0.59.1" | ||
"rollup": "0.63.5" | ||
}, | ||
"dependencies": { | ||
"babel-plugin-inline-react-svg": "^0.5.4", | ||
"babel-plugin-transform-class-properties": "^6.24.1", | ||
"babel-plugin-transform-object-rest-spread": "6.26.0", | ||
@@ -47,0 +49,0 @@ "babel-preset-env": "1.7.0", |
@@ -17,4 +17,4 @@ # babel-preset-travi | ||
* [Via Rollup](#via-rollup) | ||
* [In projects that target both node and browsers](#in-projects-that-target-both-node-and-browsers) | ||
* [In React projects](#in-react-projects-1) | ||
* [In projects that target both node and browsers](#in-projects-that-target-both-node-and-browsers) | ||
* [In React projects](#in-react-projects-1) | ||
* [Contribution](#contribution) | ||
@@ -83,3 +83,3 @@ * [Dependencies](#dependencies) | ||
### In projects that target both node and browsers | ||
#### In projects that target both node and browsers | ||
@@ -102,3 +102,3 @@ ```js | ||
### In React projects | ||
#### In React projects | ||
@@ -113,4 +113,4 @@ ```js | ||
presets: [['travi', { | ||
targets: {node: 8, browser: true}, | ||
react: true, | ||
targets: {node: 8, browser: true}, | ||
react: true, | ||
modules: false | ||
@@ -117,0 +117,0 @@ }]], |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
10850
50
5
+ Addedargparse@1.0.10(transitive)
+ Addedbabel-plugin-inline-react-svg@0.5.4(transitive)
+ Addedbabel-plugin-syntax-class-properties@6.13.0(transitive)
+ Addedbabel-plugin-transform-class-properties@6.24.1(transitive)
+ Addedclap@1.2.3(transitive)
+ Addedcoa@1.0.4(transitive)
+ Addedcolors@1.1.2(transitive)
+ Addedcsso@2.3.2(transitive)
+ Addedesprima@2.7.3(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedis-core-module@2.16.1(transitive)
+ Addedjs-yaml@3.7.0(transitive)
+ Addedlodash.isplainobject@4.0.6(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedmkdirp@0.5.6(transitive)
+ Addedpath-parse@1.0.7(transitive)
+ Addedq@1.5.1(transitive)
+ Addedresolve@1.22.10(transitive)
+ Addedsax@1.2.4(transitive)
+ Addedsource-map@0.5.7(transitive)
+ Addedsprintf-js@1.0.3(transitive)
+ Addedsupports-preserve-symlinks-flag@1.0.0(transitive)
+ Addedsvgo@0.7.2(transitive)
+ Addedwhet.extend@0.9.9(transitive)