- Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwebpack.config.ts
More file actions
Latest commit
31 lines (29 loc) · 690 Bytes
/
Copy pathwebpack.config.ts
File metadata and controls
31 lines (29 loc) · 690 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import{resolve}from"path";
import{fileURLToPath}from"url";
// eslint-disable-next-line import/no-extraneous-dependencies
import{Configuration}from"webpack";
constconfig: Configuration={
entry: "./src/index.ts",
module: {
rules: [
{
test: /\.tsx?$/,
use: {loader: "babel-loader"},
exclude: /node_modules|\.d\.ts$/,
},
],
},
resolve: {
extensions: [".tsx",".ts"],
extensionAlias: {
".js": ".ts",
},
},
output: {
filename: "bundle.js",
path: resolve(fileURLToPath(newURL(".",import.meta.url)),"dist"),
library: "bbcode_ast",
},
devtool: "source-map",
};
exportdefaultconfig;