mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-07-23 14:22:06 +08:00
13aee3754b
date: 2026-07-20T11:52:50
master commit: bae7e49626
25 lines
419 B
JavaScript
25 lines
419 B
JavaScript
const path = require("path");
|
|
|
|
module.exports = {
|
|
mode: "production",
|
|
entry: "./tiktoken-export.js",
|
|
output: {
|
|
filename: "tiktoken.js",
|
|
path: path.resolve(__dirname, "dist"),
|
|
library: {
|
|
type: "module"
|
|
}
|
|
},
|
|
experiments: {
|
|
outputModule: true,
|
|
asyncWebAssembly: true
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.wasm$/,
|
|
type: "asset/resource",
|
|
}
|
|
]
|
|
}
|
|
}; |