mirror of
https://github.com/youzan/vant.git
synced 2025-10-17 08:37:23 +00:00
fix(@vant/cli): fix ssr.js require path (#9999)
This commit is contained in:
@@ -14,9 +14,9 @@ async function genEntryForSSR() {
|
||||
const cjsContent = `'use strict';
|
||||
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
module.exports = require('./dist/${name}.cjs.min.js');
|
||||
module.exports = require('./${name}.cjs.min.js');
|
||||
} else {
|
||||
module.exports = require('./dist/${name}.cjs.js');
|
||||
module.exports = require('./${name}.cjs.js');
|
||||
};
|
||||
`;
|
||||
|
||||
|
Reference in New Issue
Block a user