mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(@vant/cli): fix ssr.js require path (#9999)
This commit is contained in:
parent
e0877f971a
commit
7bc6d2c48d
@ -14,9 +14,9 @@ async function genEntryForSSR() {
|
|||||||
const cjsContent = `'use strict';
|
const cjsContent = `'use strict';
|
||||||
|
|
||||||
if (process.env.NODE_ENV === 'production') {
|
if (process.env.NODE_ENV === 'production') {
|
||||||
module.exports = require('./dist/${name}.cjs.min.js');
|
module.exports = require('./${name}.cjs.min.js');
|
||||||
} else {
|
} else {
|
||||||
module.exports = require('./dist/${name}.cjs.js');
|
module.exports = require('./${name}.cjs.js');
|
||||||
};
|
};
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user