rsnext/packages/next/lib/chalk.ts

10 lines
198 B
TypeScript
Raw Normal View History

let chalk: typeof import('next/dist/compiled/chalk')
if (!process.browser) {
chalk = require('next/dist/compiled/chalk')
} else {
chalk = require('./web/chalk').default
}
export default chalk