Add Typescript to build (#207)
This commit is contained in:
+12
-1
@@ -99,7 +99,10 @@ const browserConfig = (/*env, argv*/) => {
|
||||
return {
|
||||
target: "web",
|
||||
mode: "production",
|
||||
resolve: {fallback: { "crypto": false }},
|
||||
resolve: {
|
||||
fallback: { "crypto": false },
|
||||
extensions: [".ts", ".js"],
|
||||
},
|
||||
entry,
|
||||
optimization,
|
||||
|
||||
@@ -150,6 +153,14 @@ const browserConfig = (/*env, argv*/) => {
|
||||
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.tsx?$/,
|
||||
loader: "ts-loader",
|
||||
include: path.resolve(__dirname, "src"),
|
||||
options: {
|
||||
onlyCompileBundledFiles: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
test: /\.svg$/,
|
||||
use: ["svg-inline-loader"],
|
||||
|
||||
Reference in New Issue
Block a user