Skip to content

Commit

Permalink
fix unnecessary filtering of absolute aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrimmer committed Jan 21, 2021
1 parent ad6162f commit 6770966
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions esinstall/src/index.ts
Expand Up @@ -32,7 +32,6 @@ import {
getWebDependencyName,
getWebDependencyType,
isJavaScript,
isPackageAliasEntry,
MISSING_PLUGIN_SUGGESTIONS,
sanitizePackageName,
writeLockfile,
Expand Down Expand Up @@ -309,12 +308,10 @@ ${colors.dim(
treeshake: {moduleSideEffects: 'no-external'},
plugins: [
rollupPluginAlias({
entries: Object.entries(installAlias)
.filter(([, val]) => isPackageAliasEntry(val))
.map(([key, val]) => ({
find: key,
replacement: val,
})),
entries: Object.entries(installAlias).map(([key, val]) => ({
find: key,
replacement: val,
})),
}),
rollupPluginCatchFetch(),
rollupPluginNodeResolve({
Expand Down

0 comments on commit 6770966

Please sign in to comment.