From 4a432e80e66f527404db4bd224b689fb59866bf2 Mon Sep 17 00:00:00 2001 From: Alexandre Mouton-Brady Date: Thu, 14 Jul 2022 10:40:45 +0200 Subject: [PATCH] :fire: Remove legacy option `alias` --- src/index.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/index.ts b/src/index.ts index bbbf7a6..a1b8620 100644 --- a/src/index.ts +++ b/src/index.ts @@ -262,14 +262,8 @@ export default function solidPlugin(options: Partial = {}): 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