Skip to content

Commit

Permalink
Sort out webpack issues
Browse files Browse the repository at this point in the history
  • Loading branch information
bjester committed Apr 4, 2024
1 parent 24c1748 commit dd223ff
Show file tree
Hide file tree
Showing 7 changed files with 12,986 additions and 20 deletions.
6 changes: 3 additions & 3 deletions contentcuration/contentcuration/frontend/shared/app.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'regenerator-runtime/runtime';
import { liveQuery } from 'dexie';
import * as Sentry from '@sentry/vue';
import { init as SentryInit, globalHandlersIntegration } from '@sentry/vue';
import Vue from 'vue';
import VueRouter from 'vue-router';
import Vuetify, {
Expand Down Expand Up @@ -128,7 +128,7 @@ import { Session, injectVuexStore } from 'shared/data/resources';
if (process.env.NODE_ENV !== 'production') {
Vue.config.devtools = true;
} else if (window.sentryActive) {
Sentry.init({
SentryInit({
Vue,
dsn: window.sentryDSN,
environment: window.sentryEnvironment,
Expand All @@ -140,7 +140,7 @@ if (process.env.NODE_ENV !== 'production') {
// get another error report with more useful data anyway, so ignore these for now.
// They are most commonly triggered by a 500 response from an API endpoint call.
integrations: [
new Sentry.Integrations.GlobalHandlers({
globalHandlersIntegration({
onerror: true,
onunhandledrejection: false,
}),
Expand Down
4 changes: 2 additions & 2 deletions contentcuration/contentcuration/frontend/shared/data/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Sentry from '@sentry/vue';
import { captureException } from '@sentry/vue';
import mapValues from 'lodash/mapValues';
import { CHANGES_TABLE, TABLE_NAMES } from './constants';
import db from './db';
Expand Down Expand Up @@ -53,6 +53,6 @@ export async function initializeDB() {
}
syncOnChanges();
} catch (e) {
Sentry.captureException(e);
captureException(e);
}
}
8 changes: 8 additions & 0 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"compilerOptions": {
"baseUrl": "contentcuration/contentcuration/frontend",
"paths": {
"shared/*": ["./shared/*"]
}
}
}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@
"vuex": "^3.0.1",
"workbox-core": "^7.0.0",
"workbox-precaching": "^7.0.0",
"workbox-routing": "^7.0.0",
"workbox-strategies": "^7.0.0",
"workbox-window": "^7.0.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion performance/prep.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@
c.save()

# start the server in prod mode
subprocess.call(["yarn", "run", "devserver"])
subprocess.call(["pnpm", "run", "devserver"])
Loading

0 comments on commit dd223ff

Please sign in to comment.