mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
028b8d040d
Should be able to resolve `exports.import` condition for esm packages only when import them in server components Fixes: #42534 ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added - [ ] Errors have a helpful link attached, see `contributing.md`
8 lines
145 B
JavaScript
8 lines
145 B
JavaScript
'use client'
|
|
|
|
import { name } from 'pure-esm-module'
|
|
|
|
export default function () {
|
|
return `node_modules instance from client module ${name}`
|
|
}
|