Skip to content

Commit 40ada1c

Browse files
committed
fix: dont use Nullish Coalescing Operator for old version nodejs
1 parent 5c774c0 commit 40ada1c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

config/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ try {
2929
console.error(chalk.redBright(e))
3030
}
3131
} else {
32-
console.error(chalk.redBright(e.stack ?? e))
32+
console.error(chalk.redBright(e.stack ? e.stack : e))
3333
}
3434
}
3535
if (process.env.VITE_DEBUG) {

examples/my-spa-js-app/vue.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module.exports = () => {
55
overlay: false,
66
},
77
configureWebpack: {
8-
plugins: [require('unplugin-icons/webpack')({ compiler: 'vue2' })],
8+
// plugins: [require('unplugin-icons/webpack')({ compiler: 'vue2' })],
99
},
1010
pluginOptions: {
1111
vite: {

0 commit comments

Comments
 (0)