Comparing version 0.20.6 to 0.20.7
@@ -0,1 +1,10 @@ | ||
## [0.20.7](https://github.com/vuejs/vite/compare/v0.20.6...v0.20.7) (2020-06-08) | ||
### Bug Fixes | ||
* only redirect aliased entry on optimized ([429416d](https://github.com/vuejs/vite/commit/429416d5f74e1da25906568b3a0037b6cebb81eb)), closes [#369](https://github.com/vuejs/vite/issues/369) | ||
## [0.20.6](https://github.com/vuejs/vite/compare/v0.20.5...v0.20.6) (2020-06-08) | ||
@@ -2,0 +11,0 @@ |
@@ -280,7 +280,8 @@ "use strict"; | ||
const depId = deepMatch[1] || deepMatch[2]; | ||
if (resolver.alias(depId) === id) { | ||
// this is a deep import but aliased from a bare module id. | ||
return resolveBareModuleRequest(root, depId, importer, resolver); | ||
} | ||
if (resolveOptimizedModule(root, depId)) { | ||
if (resolver.alias(depId) === id) { | ||
// this is a deep import but aliased from a bare module id. | ||
// redirect it the optimized copy. | ||
return resolveBareModuleRequest(root, depId, importer, resolver); | ||
} | ||
console.error(chalk_1.default.yellow(`\n[vite] Avoid deep import "${id}" (imported by ${importer})\n` + | ||
@@ -287,0 +288,0 @@ `because "${depId}" has been pre-optimized by vite into a single file.\n` + |
{ | ||
"name": "vite", | ||
"version": "0.20.6", | ||
"version": "0.20.7", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "author": "Evan You", |
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
305381
5478