tsconfig-paths-webpack-plugin
Advanced tools
Comparing version 3.1.4 to 3.2.0
@@ -10,2 +10,8 @@ # Change Log | ||
## [3.2.0] - 2018-06-12 | ||
### Added | ||
- Add `mainFields` option [#21](https://github.com/dividab/tsconfig-paths-webpack-plugin/pull/21), fixes [#20](https://github.com/dividab/tsconfig-paths-webpack-plugin/issues/20). Thanks to [@christoffer](https://github.com/christoffer) for this addition! | ||
## [3.1.4] - 2018-06-04 | ||
@@ -153,4 +159,5 @@ | ||
[unreleased]: https://github.com/dividab/tsconfig-paths-webpack-plugin/compare/3.1.4...master | ||
[3.1.3]: https://github.com/dividab/tsconfig-paths-webpack-plugin/compare/3.1.3...3.1.4 | ||
[unreleased]: https://github.com/dividab/tsconfig-paths-webpack-plugin/compare/3.2.0...master | ||
[3.2.0]: https://github.com/dividab/tsconfig-paths-webpack-plugin/compare/3.1.4...3.2.0 | ||
[3.1.4]: https://github.com/dividab/tsconfig-paths-webpack-plugin/compare/3.1.3...3.1.4 | ||
[3.1.3]: https://github.com/dividab/tsconfig-paths-webpack-plugin/compare/3.1.2...3.1.3 | ||
@@ -157,0 +164,0 @@ [3.1.2]: https://github.com/dividab/tsconfig-paths-webpack-plugin/compare/3.1.1...3.1.2 |
@@ -11,2 +11,3 @@ export declare type LogLevel = "INFO" | "WARN" | "ERROR"; | ||
readonly colors: boolean; | ||
readonly mainFields: string[]; | ||
} | ||
@@ -13,0 +14,0 @@ /** |
@@ -10,3 +10,4 @@ "use strict"; | ||
"logInfoToStdOut", | ||
"context" | ||
"context", | ||
"mainFields" | ||
]; | ||
@@ -50,3 +51,4 @@ /** | ||
context: undefined, | ||
colors: true | ||
colors: true, | ||
mainFields: ["main"] | ||
}, rawOptions); | ||
@@ -53,0 +55,0 @@ const options2 = Object.assign({}, options, { logLevel: options.logLevel.toUpperCase() }); |
@@ -29,3 +29,3 @@ "use strict"; | ||
: loadResult.absoluteBaseUrl; | ||
this.matchPath = TsconfigPaths.createMatchPathAsync(this.absoluteBaseUrl, loadResult.paths); | ||
this.matchPath = TsconfigPaths.createMatchPathAsync(this.absoluteBaseUrl, loadResult.paths, options.mainFields); | ||
} | ||
@@ -32,0 +32,0 @@ } |
{ | ||
"name": "tsconfig-paths-webpack-plugin", | ||
"version": "3.1.4", | ||
"version": "3.2.0", | ||
"description": "Load modules according to tsconfig paths in webpack.", | ||
@@ -13,3 +13,3 @@ "main": "lib/index.js", | ||
"enhanced-resolve": "^4.0.0", | ||
"tsconfig-paths": "^3.2.0" | ||
"tsconfig-paths": "^3.4.0" | ||
}, | ||
@@ -16,0 +16,0 @@ "devDependencies": { |
@@ -77,3 +77,3 @@ # tsconfig-paths-webpack-plugin | ||
An array of the extensions that will be tried during resolve. Ideally this would be the same as the extensions form the webpack config but it seems resolver plug-ins does not have access to this infomration so you need to specify it again for the plugin. | ||
An array of the extensions that will be tried during resolve. Ideally this would be the same as the extensions from the webpack config but it seems resolver plug-ins does not have access to this infomration so you need to specify it again for the plugin. | ||
@@ -84,2 +84,6 @@ #### baseUrl _(string) (default=undefined)_ | ||
#### mainFields _(string[]) (default=["main"])_ | ||
An array of the field names that should be considered when resolving packages. Ideally this would be the same as the mainFields from the webpack config but it seems resolver plug-ins does not have access to this infomration so you need to specify it again for the plugin. | ||
#### silent _(boolean) (default=false)_ | ||
@@ -86,0 +90,0 @@ |
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
207022
477
131
Updatedtsconfig-paths@^3.4.0