Skip to content

Commit

Permalink
Merge pull request #532 from oraichain/feat/add-source-map
Browse files Browse the repository at this point in the history
add source map
  • Loading branch information
toandq2009 authored Jan 9, 2024
2 parents 2e203b1 + 607a298 commit 88cfad9
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions config-overrides.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ const fixBabelRules = (config) => {
module.exports = {
fallback,
webpack: function (config, env) {
const isDevelopment = env === 'development';
fixBabelRules(config);

config.resolve.fallback = fallback;
Expand Down Expand Up @@ -84,26 +85,26 @@ module.exports = {
fs.copyFileSync(vendorFileSrc, vendorFileDest);
}

// if (!isDevelopment && process.env.SENTRY_AUTH_TOKEN) {
// const SentryWebpackPlugin = require('@sentry/webpack-plugin');
// config.devtool = 'source-map';
// config.plugins.push(
// new SentryWebpackPlugin({
// org: 'oraichain',
// project: 'oraidex',
if (!isDevelopment && process.env.SENTRY_AUTH_TOKEN) {
const SentryWebpackPlugin = require('@sentry/webpack-plugin');
config.devtool = 'source-map';
config.plugins.push(
new SentryWebpackPlugin({
org: 'oraichain',
project: 'oraidex',

// // Specify the directory containing build artifacts
// include: './build',
// Specify the directory containing build artifacts
include: './build',

// // Auth tokens can be obtained from https://sentry.io/settings/account/api/auth-tokens/
// // and needs the `project:releases` and `org:read` scopes
// authToken: process.env.SENTRY_AUTH_TOKEN,
// Auth tokens can be obtained from https://sentry.io/settings/account/api/auth-tokens/
// and needs the `project:releases` and `org:read` scopes
authToken: process.env.SENTRY_AUTH_TOKEN

// // Optionally uncomment the line below to override automatic release name detection
// release: process.env.RELEASE
// })
// );
// }
// Optionally uncomment the line below to override automatic release name detection
// release: process.env.RELEASE
})
);
}

config.plugins.push(
new webpack.DllReferencePlugin({
Expand Down

0 comments on commit 88cfad9

Please sign in to comment.