3174c730b8
Cases like `next/link` and `next/router` imports are not alias since they're not matching the existing alias pattern setting for edge runtime, which causes router-context being bundled twice (both with cjs and esm) into edge worker bundle. so we resolve their paths and alias them to esm bundle for webpack bundling. Other minor changes: * update `require` calls to `import` expressions in edge ssr loaders * remove client layer for apps without `appDir` enabled * export `type` for ts typings in next/image to avoid alias to break resolving ## Bug - [ ] Related issues linked using `fixes #number` - [x] Integration tests added - [ ] Errors have a helpful link attached, see `contributing.md`
1 line
49 B
JavaScript
1 line
49 B
JavaScript
module.exports = require('./dist/client/script')
|