Skip to content

Commit cbf1183

Browse files
committed
fix: 修复范围问题
1 parent 24b9e7c commit cbf1183

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/ffi-js/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cn-font-split",
3-
"version": "7.2.5",
3+
"version": "7.2.6",
44
"description": "划时代的字体切割工具,CJK与任何字符!支持 otf、ttf、woff2 字体多线程切割,完美地细颗粒度地进行包大小控制。A revolutionary font subetter that supports CJK and any characters! It enables multi-threaded subset of otf, ttf, and woff2 fonts, allowing for precise control over package size.",
55
"main": "./dist/node/index.js",
66
"module": "./dist/node/index.mjs",

packages/ffi-js/vite.config.wasm.mts

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ export default defineConfig(({ mode }) => {
2727
if (mode === 'production' && id.includes('memfs')) {
2828
return 'import { Buffer } from "buffer";\n' + code;
2929
}
30-
if (code.includes('fs.')) {
30+
if (id.includes('createAPI')) {
31+
console.log(id);
3132
return code
3233
.replace(/.*fs-extra.*/g, '')
3334
.replace(/fs\./g, 'globalThis.fs.');

0 commit comments

Comments
 (0)