@@ -1 +1,3 @@
-node_modules/
+node_modules/
+www/main.js
+www/main.js.map
@@ -4,8 +4,8 @@
"description": "",
"main": "main.js",
"scripts": {
- "build": "bun build src/main.ts --target browser --sourcemap=external",
- "serve": "python3 -m http.server 8000"
+ "build": "bun build src/main.ts --outdir www --target browser --sourcemap=external",
+ "serve": "python3 -m http.server -d www 8000"
},
"keywords": [],
"author": "",
@@ -66,4 +66,4 @@ export const graphs: Graph[] = [
new CompanyHistory(loadedData, urlParams),
new CompanyRank(loadedData, urlParams),
new CorporationBreakdown(loadedData, urlParams)
-];
+];
@@ -1,14 +0,0 @@
-const path = require('path');
-
-module.exports = {
- entry: './src/main.ts',
- module: {
- rules: [{ test: /\.ts$/, use: 'ts-loader', exclude: /node_modules|main\.js/ }]
- },
- resolve: { extensions: ['.ts', '.js'] },
- output: {
- filename: 'main.js',
- path: __dirname
- mode: 'development'
-};
@@ -6,7 +6,7 @@
<title>PrUn Financial Reports</title>
<link rel="stylesheet" href="styles.css">
<link rel="icon" type="image/x-icon" href="icon128.png">
- <script src="main.js"></script>
+ <script src="main.js" type="module"></script>
<script src="https://cdn.plot.ly/plotly-3.0.1.min.js" charset="utf-8"></script>
</head>
<body>