mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-05 06:28:51 +00:00
Feat/refactor matchmaker promise format (#293)
This commit is contained in:
28 files changed
+2144
-3159
No files matched your search
@@ -1,4 +1,3 @@
|
||||
require('dotenv').config();
|
||||
const path = require('path');
|
||||
|
||||
const {
|
||||
@@ -9,8 +8,6 @@ const {
|
||||
throwUnexpectedConfigError,
|
||||
} = require('@craco/craco');
|
||||
|
||||
const SentryCliPlugin = require('@sentry/webpack-plugin');
|
||||
|
||||
const throwError = (message) =>
|
||||
throwUnexpectedConfigError({
|
||||
packageName: 'craco',
|
||||
@@ -22,28 +19,6 @@ const throwError = (message) =>
|
||||
module.exports = {
|
||||
webpack: {
|
||||
configure: (webpackConfig, { paths }) => {
|
||||
const releaseVersion = process.env.npm_package_version;
|
||||
|
||||
process.env.REACT_APP_SENTRY_RELEASE = releaseVersion;
|
||||
|
||||
if (process.env.SENTRY_RELEASE) {
|
||||
webpackConfig.plugins.push(
|
||||
new SentryCliPlugin({
|
||||
url: 'https://sentry.projecterror.dev',
|
||||
authToken: process.env.SENTRY_AUTH_TOKEN,
|
||||
org: 'project-error',
|
||||
project: 'npwd',
|
||||
|
||||
release: releaseVersion,
|
||||
validate: true,
|
||||
urlPrefix: '~/resources/html',
|
||||
// webpack-specific configuration
|
||||
include: ['../resources/html'],
|
||||
ignore: ['node_modules'],
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
||||
const { hasFoundAny, matches } = getLoaders(webpackConfig, loaderByName('babel-loader'));
|
||||
if (!hasFoundAny) throwError('failed to find babel-loader');
|
||||
|
||||
|
||||
Reference in new issue
Block a user