@nuxt/docs-nightly 5.0.0-29761336.7e617f3e → 5.0.0-29761424.1b0316cf
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -197,7 +197,7 @@ import { default as pkg } from 'cjs-pkg'
|
|
|
197
197
|
import('cjs-pkg').then(m => m.default || m).then(console.log)
|
|
198
198
|
```
|
|
199
199
|
|
|
200
|
-
For handling more complex situations and more safety, we recommend
|
|
200
|
+
For handling more complex situations and more safety, we recommend [mlly](https://github.com/unjs/mlly), which can preserve named exports.
|
|
201
201
|
|
|
202
202
|
```js
|
|
203
203
|
import { interopDefault } from 'mlly'
|
|
@@ -280,9 +280,9 @@ const someFile = require.resolve('./lib/foo.js')
|
|
|
280
280
|
```
|
|
281
281
|
|
|
282
282
|
```js [After]
|
|
283
|
-
import {
|
|
283
|
+
import { resolveModulePath } from 'exsolve'
|
|
284
284
|
|
|
285
|
-
const someFile =
|
|
285
|
+
const someFile = resolveModulePath('my-lib', { from: import.meta.url })
|
|
286
286
|
```
|
|
287
287
|
|
|
288
288
|
::
|