Skip to content

Commit

Permalink
Fix release building
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwardMoyse committed Nov 11, 2024
1 parent d9e2526 commit 1ef6e57
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 25 deletions.
7 changes: 3 additions & 4 deletions packages/phoenix-event-display/configs/webpack.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,17 @@ module.exports = {
module: {
rules: [
{
test: /\.tsx?$/,
test: /\.[jt]sx?$/,
loader: 'esbuild-loader',
exclude: /node_modules/,
options: {
loader: 'ts',
target: 'es2018',
target: 'es2020',
},
},
],
},
resolve: {
extensions: ['.ts', '.js'],
extensions: ['.ts', '...'],
},
output: {
filename: `phoenix.min.js`,
Expand Down
42 changes: 21 additions & 21 deletions packages/phoenix-event-display/src/browser.ts
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
import { LoadingManager } from 'three';
import { EventDisplay } from './event-display.js';
import { Cut } from './lib/models/cut.model.js';
import { PresetView } from './lib/models/preset-view.model.js';
import { PrettySymbols } from './helpers/pretty-symbols.js';
import { RKHelper } from './helpers/rk-helper.js';
import { RungeKutta } from './helpers/runge-kutta.js';
import { InfoLogger } from './helpers/info-logger.js';
import { CMSLoader } from './loaders/cms-loader.js';
import { JiveXMLLoader } from './loaders/jivexml-loader.js';
import { JSRootEventLoader } from './loaders/jsroot-event-loader.js';
import { CMSObjects } from './loaders/objects/cms-objects.js';
import { PhoenixObjects } from './loaders/objects/phoenix-objects.js';
import { PhoenixLoader } from './loaders/phoenix-loader.js';
import { Edm4hepJsonLoader } from './loaders/edm4hep-json-loader.js';
import { ScriptLoader } from './loaders/script-loader.js';
import { TrackmlLoader } from './loaders/trackml-loader.js';
import { StateManager } from './managers/state-manager.js';
import { URLOptionsManager } from './managers/url-options-manager.js';
import { ThreeManager } from './managers/three-manager/index.js';
import { UIManager } from './managers/ui-manager/index.js';
import { PhoenixMenuNode } from './managers/ui-manager/phoenix-menu/phoenix-menu-node.js';
import { EventDisplay } from '../dist/event-display.js';
import { Cut } from '../dist/lib/models/cut.model.js';
import { PresetView } from '../dist/lib/models/preset-view.model.js';
import { PrettySymbols } from '../dist/helpers/pretty-symbols.js';
import { RKHelper } from '../dist/helpers/rk-helper.js';
import { RungeKutta } from '../dist/helpers/runge-kutta.js';
import { InfoLogger } from '../dist/helpers/info-logger.js';
import { CMSLoader } from '../dist/loaders/cms-loader.js';
import { JiveXMLLoader } from '../dist/loaders/jivexml-loader.js';
import { JSRootEventLoader } from '../dist/loaders/jsroot-event-loader.js';
import { CMSObjects } from '../dist/loaders/objects/cms-objects.js';
import { PhoenixObjects } from '../dist/loaders/objects/phoenix-objects.js';
import { PhoenixLoader } from '../dist/loaders/phoenix-loader.js';
import { Edm4hepJsonLoader } from '../dist/loaders/edm4hep-json-loader.js';
import { ScriptLoader } from '../dist/loaders/script-loader.js';
import { TrackmlLoader } from '../dist/loaders/trackml-loader.js';
import { StateManager } from '../dist/managers/state-manager.js';
import { URLOptionsManager } from '../dist/managers/url-options-manager.js';
import { ThreeManager } from '../dist/managers/three-manager/index.js';
import { UIManager } from '../dist/managers/ui-manager/index.js';
import { PhoenixMenuNode } from '../dist/managers/ui-manager/phoenix-menu/phoenix-menu-node.js';

if (typeof globalThis !== 'undefined') {
// `globalThis` makes Phoenix modules available in the browser
Expand Down

0 comments on commit 1ef6e57

Please sign in to comment.