rsnext/packages
JJ Kasper ccc8d271df
Revert "edge-ssr: bundle next/dist as ESM for better tree-shaking (#40251) (#40967)
This reverts commit 11deaaa82b.

Temporarily reverts the above commit due to breaking middleware/edge
functions once deployed.

Fixes:
https://github.com/vercel/next.js/actions/runs/3133433920/jobs/5087331787

cc @shuding @feedthejim 

```sh
[GET] /blog/first
13:56:56:61
2022-09-27T20:56:56.671Z	61d43a6a-34a1-40c0-b71f-4ae5d1918431	ERROR	/var/task/node_modules/next/dist/esm/client/router.js:1
/* global window */ import React from 'react';
                    ^^^^^^
SyntaxError: Cannot use import statement outside a module
    at Object.compileFunction (node:vm:352:18)
    at wrapSafe (node:internal/modules/cjs/loader:1033:15)
    at Module._compile (node:internal/modules/cjs/loader:1069:27)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/var/task/node_modules/next/router.js:3:7)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
```
2022-09-27 15:05:40 -07:00
..
create-next-app v12.3.2-canary.10 2022-09-26 23:31:23 -07:00
eslint-config-next v12.3.2-canary.10 2022-09-26 23:31:23 -07:00
eslint-plugin-next v12.3.2-canary.10 2022-09-26 23:31:23 -07:00
font Font loader support in app (#40898) 2022-09-27 18:10:05 +00:00
next Revert "edge-ssr: bundle next/dist as ESM for better tree-shaking (#40251) (#40967) 2022-09-27 15:05:40 -07:00
next-bundle-analyzer v12.3.2-canary.10 2022-09-26 23:31:23 -07:00
next-codemod v12.3.2-canary.10 2022-09-26 23:31:23 -07:00
next-env v12.3.2-canary.10 2022-09-26 23:31:23 -07:00
next-mdx v12.3.2-canary.10 2022-09-26 23:31:23 -07:00
next-plugin-storybook v12.3.2-canary.10 2022-09-26 23:31:23 -07:00
next-polyfill-module v12.3.2-canary.10 2022-09-26 23:31:23 -07:00
next-polyfill-nomodule v12.3.2-canary.10 2022-09-26 23:31:23 -07:00
next-swc Font loader support in app (#40898) 2022-09-27 18:10:05 +00:00
react-dev-overlay v12.3.2-canary.10 2022-09-26 23:31:23 -07:00
react-refresh-utils v12.3.2-canary.10 2022-09-26 23:31:23 -07:00