UNPKG

vike

Version:

The Framework *You* Control - Next.js & Nuxt alternative for unprecedented flexibility and dependability.

16 lines (15 loc) 700 B
import '../assertEnvServer.js'; // TO-DO/eventually: point package.json#exports['./server'] to this file. // - Write migration guide, see comment below. export * from './index.js'; import { assertWarning } from '../../utils/assert.js'; import pc from '@brillout/picocolors'; assertWarning(false, [ 'You have outdated imports:', pc.bold(pc.red(" import { something } from 'vike/server'")), 'Replace them with:', pc.bold(pc.green(" import { something } from 'vike'")), /* Add migration guide, with migration scripts such as `$ rename vike/server vike` `See ${pc.underline('https://vike.dev/migration/0.4.xxx')}` */ ].join('\n'), { showStackTrace: true, onlyOnce: true });