rollup-plugin-node-resolve
Advanced tools
Comparing version 4.2.1 to 4.2.2
# rollup-plugin-node-resolve changelog | ||
## 4.2.2 (2019-04-10) | ||
* Fix TypeScript typings (rename and export Options interface) ([#206](https://github.com/rollup/rollup-plugin-node-resolve/pull/206) by @Kocal) | ||
* Fix mainfields typing ([#207](https://github.com/rollup/rollup-plugin-node-resolve/pull/207) by @nicolashenry) | ||
## 4.2.1 (2019-04-06) | ||
@@ -4,0 +9,0 @@ |
import {Plugin} from 'rollup'; | ||
import {AsyncOpts} from 'resolve'; | ||
interface RollupNodeResolveOptions { | ||
export interface Options { | ||
/** | ||
@@ -11,3 +11,4 @@ * the fields to scan in a package.json to determine the entry point | ||
*/ | ||
mainFields?: ['browser', 'esnext', 'module', 'main'], | ||
mainFields?: ReadonlyArray<string>; | ||
/** | ||
@@ -19,2 +20,3 @@ * @deprecated use "mainFields" instead | ||
module?: boolean; | ||
/** | ||
@@ -29,2 +31,3 @@ * @deprecated use "mainFields" instead | ||
jsnext?: boolean; | ||
/** | ||
@@ -38,2 +41,3 @@ * @deprecated use "mainFields" instead | ||
main?: boolean; | ||
/** | ||
@@ -47,2 +51,3 @@ * some package.json files have a "browser" field which specifies | ||
browser?: boolean; | ||
/** | ||
@@ -53,2 +58,3 @@ * not all files you want to resolve are .js files | ||
extensions?: ReadonlyArray<string>; | ||
/** | ||
@@ -60,2 +66,3 @@ * whether to prefer built-in modules (e.g. `fs`, `path`) or | ||
preferBuiltins?: boolean; | ||
/** | ||
@@ -67,2 +74,3 @@ * Lock the module search in this path (like a chroot). Module defined | ||
jail?: string; | ||
/** | ||
@@ -75,2 +83,3 @@ * Set to an array of strings and/or regexps to lock the module search | ||
only?: ReadonlyArray<string | RegExp> | null; | ||
/** | ||
@@ -82,2 +91,3 @@ * If true, inspect resolved files to check that they are | ||
modulesOnly?: boolean; | ||
/** | ||
@@ -89,2 +99,3 @@ * Force resolving for these modules to root's node_modules that helps | ||
dedupe?: string[]; | ||
/** | ||
@@ -100,2 +111,2 @@ * Any additional options that should be passed through | ||
*/ | ||
export default function nodeResolve(options?: RollupNodeResolveOptions): Plugin; | ||
export default function nodeResolve(options?: Options): Plugin; |
{ | ||
"name": "rollup-plugin-node-resolve", | ||
"description": "Bundle third-party dependencies in node_modules", | ||
"version": "4.2.1", | ||
"version": "4.2.2", | ||
"devDependencies": { | ||
@@ -6,0 +6,0 @@ "buble": "^0.19.7", |
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
38413