1 //import path from "path";
2 const path = require("path");
4 const src = path.resolve(__dirname, "score/src");
5 const dist = path.resolve(__dirname, "score/js");
9 "popularity_ranking": src + "/popurality_ranking.tsx"
14 filename: "[name].bundle.js"
17 devtool: "source-map",
20 // Add '.ts' and '.tsx' as resolvable extensions.
21 extensions: [".ts", ".tsx", ".js", ".jsx", ".json"]
26 // All files with a '.ts' or '.tsx' extension will be handled by 'awesome-typescript-loader'.
29 loader: "awesome-typescript-loader"
32 // All output '.js' files will have any sourcemaps re-processed by 'source-map-loader'.
36 loader: "source-map-loader"
42 // When importing a module whose path matches one of the following, just
43 // assume a corresponding global variable exists and use that instead.
44 // This is important because it allows us to avoid bundling all of our
45 // dependencies, which allows browsers to cache those libraries between builds.
48 "react-dom": "ReactDOM",