mirror of
https://codeberg.org/demostf/tf-demos-viewer.git
synced 2026-06-03 18:14:11 +02:00
fix export
This commit is contained in:
parent
b0e7164738
commit
9b0901cdf4
3 changed files with 6 additions and 4 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import {FlatState, XY} from '../pkg/index.d.ts';
|
||||
import {FlatState, XY} from '../pkg/tf_demos_viewer.d.ts';
|
||||
|
||||
export async function parseDemo(bytes: Uint8Array): Promise<ParsedDemo> {
|
||||
let m = await import("../pkg/index.js");
|
||||
let m = await import("../pkg/tf_demos_viewer.js");
|
||||
const state = m.parse_demo(bytes);
|
||||
|
||||
let playerCount = state.player_count;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"compilerOptions": {
|
||||
"noImplicitAny": true,
|
||||
"module": "esnext",
|
||||
"target": "es6",
|
||||
"target": "es5",
|
||||
"allowJs": true
|
||||
}
|
||||
}
|
||||
|
|
@ -12,7 +12,9 @@ module.exports = {
|
|||
},
|
||||
output: {
|
||||
path: dist,
|
||||
filename: "[name].js"
|
||||
filename: "[name].js",
|
||||
globalObject: "this",
|
||||
libraryTarget: 'commonjs'
|
||||
},
|
||||
devServer: {
|
||||
contentBase: dist,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue