mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-07-22 05:12:05 +08:00
161005a0c1
date: 2025-11-19T19:10:11 master commit: a29fdbd02407d41ecbcc69d151bb4837bfba3cbc
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",
|
|
}
|
|
]
|
|
}
|
|
}; |