Skip to content

Commit

Permalink
🔥 Remove legacy option alias
Browse files Browse the repository at this point in the history
  • Loading branch information
amoutonbrady committed Jul 14, 2022
1 parent 17d5aef commit 4a432e8
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,14 +262,8 @@ export default function solidPlugin(options: Partial<Options> = {}): Plugin {
replaceDev = options.dev === true || (options.dev !== false && command === 'serve');
projectRoot = userConfig.root;

// TODO: remove when fully removed from vite
const legacyAlias = normalizeAliases(userConfig.alias);

if (!userConfig.resolve) userConfig.resolve = {};
userConfig.resolve.alias = [
...legacyAlias,
...normalizeAliases(userConfig.resolve && userConfig.resolve.alias),
];
userConfig.resolve.alias = normalizeAliases(userConfig.resolve && userConfig.resolve.alias);

// fix for bundling dev in production
const nestedDeps = replaceDev
Expand Down

0 comments on commit 4a432e8

Please sign in to comment.