mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-16 05:03:11 +08:00
13 lines
526 B
JavaScript
13 lines
526 B
JavaScript
const { dirname } = require('path');
|
|
const resolveFrom = require('resolve-from');
|
|
|
|
const resolve = resolveFrom.bind(null, __dirname);
|
|
|
|
// These paths need to be aliased in the manager webpack config to ensure that all
|
|
// code running inside the manager uses the *same* versions of each package.
|
|
module.exports = {
|
|
'@emotion/core': dirname(resolve('@emotion/core/package.json')),
|
|
'@emotion/styled': dirname(resolve('@emotion/styled/package.json')),
|
|
'emotion-theming': dirname(resolve('emotion-theming/package.json')),
|
|
};
|