Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: enable annotations sourcemaps while linked #1184

Merged
merged 5 commits into from
Mar 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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