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