Use Rspack for faster builds
This commit is contained in:
parent
36b21e0260
commit
537dc46dc7
14 changed files with 1626 additions and 56 deletions
29
rspack.config.ts
Normal file
29
rspack.config.ts
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
import { defineConfig } from "@rspack/cli";
|
||||
|
||||
export default defineConfig({
|
||||
entry: {
|
||||
screeps: __dirname + "/src/index.ts",
|
||||
},
|
||||
output: {
|
||||
path: __dirname + "/dist",
|
||||
},
|
||||
target: "node10.13",
|
||||
module: {
|
||||
rules: [{
|
||||
test: /\.ts$/,
|
||||
exclude: [/node_modules/],
|
||||
loader: "builtin:swc-loader",
|
||||
options: {
|
||||
jsc: {
|
||||
parser: {
|
||||
syntax: "typescript",
|
||||
},
|
||||
},
|
||||
},
|
||||
type: "javascript/auto",
|
||||
resolve: {
|
||||
extensions: [".ts", ".js"],
|
||||
},
|
||||
}],
|
||||
},
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue