base引用src改lib

This commit is contained in:
Wang Kejun 2022-09-12 21:06:52 +08:00
parent dbb5ef20a4
commit ca72121bd7
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ function replaceT(str) {
function getWxsCode() {
const BASE_PATH = path.dirname(
require.resolve(
`${process.cwd()}/node_modules/oak-frontend-base/src/platforms/wechatMp/i18n/wxs/wxs.js`
`${process.cwd()}/node_modules/oak-frontend-base/lib/platforms/wechatMp/i18n/wxs/wxs.js`
)
);
const code = fs.readFileSync(path.join(BASE_PATH, '/wxs.js'), 'utf-8');