You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
419 B
25 lines
419 B
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",
|
|
}
|
|
]
|
|
}
|
|
}; |