Skip to content

Commit

Permalink
Revert "Fix package duplication issues by aliasing all storybook pack…
Browse files Browse the repository at this point in the history
…ages (#160)"

This reverts commit 5100593.
  • Loading branch information
IanVS committed Nov 24, 2021
1 parent dfb72df commit a8a48d9
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions packages/storybook-builder-vite/vite-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,6 @@ const { optimizeDeps } = require('./optimizeDeps');
const { createServer } = require('vite');
const { pluginConfig } = require('./vite-config');

const storybookPaths = [
'addons',
'api',
'channels',
'channel-postmessage',
'components',
'core-events',
'router',
'theming',
'semver',
'client-api',
'client-logger',
'preview-web',
'store',
].reduce(
(acc, sbPackage) => ({
...acc,
[`@storybook/${sbPackage}`]: path.dirname(
require.resolve(`@storybook/${sbPackage}/package.json`)
),
}),
{}
);

module.exports.createViteServer = async function createViteServer(
options,
devServer
Expand Down Expand Up @@ -55,7 +31,6 @@ module.exports.createViteServer = async function createViteServer(
resolve: {
alias: {
vue: 'vue/dist/vue.esm-bundler.js',
...storybookPaths
},
},
plugins: pluginConfig(options, 'development'),
Expand Down

0 comments on commit a8a48d9

Please sign in to comment.