You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-26 22:41:17 +02:00
Chore: CI: Fix accessibility scanner sometimes fails due to name conflict (#12415)
This commit is contained in:
@@ -5,9 +5,12 @@ import Setting from '@joplin/lib/models/Setting';
|
|||||||
import restart from '../services/restart';
|
import restart from '../services/restart';
|
||||||
import BannerContent from './NoteEditor/WarningBanner/BannerContent';
|
import BannerContent from './NoteEditor/WarningBanner/BannerContent';
|
||||||
import { _ } from '@joplin/lib/locale';
|
import { _ } from '@joplin/lib/locale';
|
||||||
|
import Logger from '@joplin/utils/Logger';
|
||||||
const packageInfo: PackageInfo = require('../packageInfo.js');
|
const packageInfo: PackageInfo = require('../packageInfo.js');
|
||||||
const ipcRenderer = require('electron').ipcRenderer;
|
const ipcRenderer = require('electron').ipcRenderer;
|
||||||
|
|
||||||
|
const logger = Logger.create('ErrorBoundary');
|
||||||
|
|
||||||
interface ErrorInfo {
|
interface ErrorInfo {
|
||||||
componentStack: string;
|
componentStack: string;
|
||||||
}
|
}
|
||||||
@@ -83,6 +86,9 @@ export default class ErrorBoundary extends React.Component<Props, State> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.setState({ error, errorInfo, pluginInfos, plugins });
|
this.setState({ error, errorInfo, pluginInfos, plugins });
|
||||||
|
|
||||||
|
logger.error('The application encountered an error:', error);
|
||||||
|
logger.error('Component stack', errorInfo?.componentStack);
|
||||||
}
|
}
|
||||||
|
|
||||||
public componentDidMount() {
|
public componentDidMount() {
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ const makeBuildContext = (entryPoint: string, renderer: boolean, computeFileSize
|
|||||||
outfile: `${filename(entryPoint)}.bundle.js`,
|
outfile: `${filename(entryPoint)}.bundle.js`,
|
||||||
bundle: true,
|
bundle: true,
|
||||||
minify: true,
|
minify: true,
|
||||||
|
keepNames: true,
|
||||||
|
format: 'iife', // Immediately invoked function expression
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
metafile: computeFileSizeStats,
|
metafile: computeFileSizeStats,
|
||||||
platform: 'node',
|
platform: 'node',
|
||||||
|
|||||||
Reference in New Issue
Block a user