Breaking changes
Now defineConfig
reader is not including require
automatically. If you are still using require
to import modules, as workaround create your own require
before requir
ing other modules.
Example:
import { createRequire } from "module";
let require = createRequire(import.meta.url);
const someModule = require("some-sync-module");
export default defineConfig({...})
Or use import
when possible.
- chore: drop support for old node versions
defineConfig
bundling target is now using current node process's major version, which allows to no longer throw error ontop-level await
when your Node supports it.