mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-25 16:02:14 +08:00
db5cbadcf2
date: 2025-06-05T19:54:08 master commit: 8aadf02b2fd91f4e1285e18c2c7feb32d93b66f5
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",
|
|
}
|
|
]
|
|
}
|
|
}; |