Describe the change
Looking at the first preset (node), the sample code is the following:
import { env, nodeless } from "unenv";
const envConfig = env(node, {});
when it should be:
import { env, node } from "unenv";
const envConfig = env(node, {});
The npm README is not equivalent to the repo's README, so I couldn't make a PR. Anyways, this is a simple fix.
URLs
https://www.npmjs.com/package/unenv?activeTab=readme
Additional information
Describe the change
Looking at the first preset (
node), the sample code is the following:when it should be:
The npm README is not equivalent to the repo's README, so I couldn't make a PR. Anyways, this is a simple fix.
URLs
https://www.npmjs.com/package/unenv?activeTab=readme
Additional information