babel-plugin-lazy-require
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -120,3 +120,4 @@ 'use strict'; | ||
) || ( | ||
(t.isObjectProperty(path.parent)) && path.parent.key === path.node | ||
(t.isObjectProperty(path.parent) || t.isObjectMethod(path.parent)) && | ||
path.parent.key === path.node | ||
) | ||
@@ -123,0 +124,0 @@ ) { |
{ | ||
"name": "babel-plugin-lazy-require", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Transform CommonJS require statements into lazily evaluated imports", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "babel test --plugins ../index.js --out-dir test-dist" | ||
"test": "nyc babel test --plugins ../index.js --out-dir test-dist", | ||
"coverage": "nyc report --reporter=lcov > coverage.lcov && codecov", | ||
"release": "standard-version" | ||
}, | ||
@@ -26,4 +28,21 @@ "repository": { | ||
"devDependencies": { | ||
"babel-cli": "^6.26.0" | ||
"babel-cli": "^6.26.0", | ||
"codecov": "^3.0.0", | ||
"nyc": "^11.3.0", | ||
"standard-version": "^4.2.0" | ||
}, | ||
"nyc": { | ||
"exclude": [ | ||
"test", | ||
"test-dist", | ||
"coverage" | ||
], | ||
"cache": false, | ||
"all": true, | ||
"reporter": [ | ||
"text", | ||
"html", | ||
"json" | ||
] | ||
} | ||
} |
@@ -0,1 +1,5 @@ | ||
[![Build Status](https://travis-ci.org/princjef/babel-plugin-lazy-require.svg?branch=master)](https://travis-ci.org/princjef/babel-plugin-lazy-require) | ||
[![NPM version](https://img.shields.io/npm/v/babel-plugin-lazy-require.svg)](https://www.npmjs.com/package/babel-plugin-lazy-require) | ||
[![Coverage Status](https://img.shields.io/codecov/c/github/princjef/babel-plugin-lazy-require/master.svg)](https://codecov.io/gh/princjef/babel-plugin-lazy-require) | ||
# babel-plugin-lazy-require | ||
@@ -2,0 +6,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
10258
4
139
63
4