2019-04-05 11:45:56 -04:00
|
|
|
const { dirname } = require('path');
|
2019-05-17 12:29:52 +02:00
|
|
|
const resolveFrom = require('resolve-from');
|
|
|
|
|
|
|
|
const resolve = resolveFrom.bind(null, __dirname);
|
2019-04-05 11:45:56 -04:00
|
|
|
|
|
|
|
// 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 = {
|
2019-05-17 12:29:52 +02:00
|
|
|
'@emotion/core': dirname(resolve('@emotion/core/package.json')),
|
|
|
|
'@emotion/styled': dirname(resolve('@emotion/styled/package.json')),
|
|
|
|
'emotion-theming': dirname(resolve('emotion-theming/package.json')),
|
2019-04-05 11:45:56 -04:00
|
|
|
};
|