Skip to content

Commit

Permalink
chore: add resolve.symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
Conrad Chan committed Mar 25, 2020
1 parent 088d741 commit 23c0575
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions build/webpack.common.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ const license = require('./license');
const pkg = require('../package.json');

const isLinked = process.env.IS_LINKED === '1';
const getAnnotationsPath = () =>
isLinked ? /.*box-annotations\/dist\/.*/ : path.resolve('node_modules/box-annotations');

/* eslint-disable global-require */
/* eslint-disable import/no-dynamic-require */
Expand All @@ -29,7 +27,7 @@ module.exports = language => {
use: [MiniCssExtractPlugin.loader, 'css-loader', 'postcss-loader', 'sass-loader'],
include: [
path.resolve('src/lib'),
getAnnotationsPath(),
path.resolve('node_modules/box-annotations'),
path.resolve('node_modules/box-ui-elements'),
],
},
Expand Down Expand Up @@ -72,6 +70,7 @@ module.exports = language => {
'react-intl-locale-data': path.resolve(`node_modules/react-intl/locale-data/${locale}`),
},
extensions: ['.tsx', '.ts', '.js'],
symlinks: !isLinked,
},
stats: {
assets: true,
Expand Down

0 comments on commit 23c0575

Please sign in to comment.