mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
## What?
Allows e.g. ```import(`${url}`)``` when in node_modules. This makes
monaco-editor work automatically when it's correctly imported in e.g. a
`useEffect`.
- [x] Apply change
- [x] Verify against local reproduction
- [x] Add test case
Fixes #72613
Fixes PACK-4602
10 lines
162 B
TypeScript
10 lines
162 B
TypeScript
import { Editor } from '../components/editor/editor'
|
|
export default function Home() {
|
|
return (
|
|
<>
|
|
<h1>Editor Page</h1>
|
|
<Editor />
|
|
</>
|
|
)
|
|
}
|