Feat/refactor matchmaker promise format (#293)

This commit is contained in:
chip authored and GitHub committed 2021-08-01 00:26:10 +02:00
1 parent 7ed5f54709
commit 1253c76aef
28 files changed
+2144 -3159

No files matched your search

-25
View File
@@ -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');