Skip to content

Commit

Permalink
chore: enable annotations sourcemaps while linked (#1184)
Browse files Browse the repository at this point in the history
  • Loading branch information
Conrad Chan authored Mar 25, 2020
1 parent b9f11fa commit 45f92a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build/webpack.common.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ const { BannerPlugin, DefinePlugin, NormalModuleReplacementPlugin } = require('w
const license = require('./license');
const pkg = require('../package.json');

const isLinked = process.env.IS_LINKED === '1';

/* eslint-disable global-require */
/* eslint-disable import/no-dynamic-require */
module.exports = language => {
Expand Down Expand Up @@ -68,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
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@
"release:patch": "./build/release.sh -p",
"setup": "yarn install",
"start": "yarn setup && yarn build:dev --watch",
"start:linked": "yarn link box-annotations && IS_LINKED=1 yarn start",
"start:dev": "yarn build:i18n && LANGUAGE=en-US BABEL_ENV=dev NODE_ENV=dev yarn webpack-dev-server --config build/webpack.config.js",
"start:dev:linked": "yarn link box-annotations && IS_LINKED=1 yarn start:dev",
"test": "yarn setup && yarn clean && yarn build:i18n && NODE_ENV=test yarn karma start build/karma.conf.js",
"test:e2e": "npm-run-all -p -r start:dev cy:run",
"test:e2e:open": "npm-run-all -p -r start:dev cy:open",
Expand Down

0 comments on commit 45f92a5

Please sign in to comment.