diff --git a/packages/phoenix-event-display/configs/webpack.conf.js b/packages/phoenix-event-display/configs/webpack.conf.js index 141ab2cf..07b9bbe8 100644 --- a/packages/phoenix-event-display/configs/webpack.conf.js +++ b/packages/phoenix-event-display/configs/webpack.conf.js @@ -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`, diff --git a/packages/phoenix-event-display/src/browser.ts b/packages/phoenix-event-display/src/browser.ts index 0946ed21..f384d698 100644 --- a/packages/phoenix-event-display/src/browser.ts +++ b/packages/phoenix-event-display/src/browser.ts @@ -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