Use Typescript to transpile Next.js core files instead of Babel (#5747)
- Replaces taskr-babel with taskr-typescript for the `next` package - Makes sure Node 8+ is used, no unneeded transpilation - Compile Next.js client side files through babel the same way pages are - Compile Next.js client side files to esmodules, not commonjs, so that tree shaking works. - Move error-debug.js out of next-server as it's only used/require in development - Drop ansi-html as dependency from next-server - Make next/link esmodule (for tree-shaking) - Make next/router esmodule (for tree-shaking) - add typescript compilation to next-server - Remove last remains of Flow - Move hoist-non-react-statics to next, out of next-server - Move htmlescape to next, out of next-server - Remove runtime-corejs2 from next-server
Showing
| ... | @@ -52,8 +52,8 @@ | ... | @@ -52,8 +52,8 @@ |
| "fkill": "5.1.0", | "fkill": "5.1.0", | ||
| "flatten": "1.0.2", | "flatten": "1.0.2", | ||
| "get-port": "3.2.0", | "get-port": "3.2.0", | ||
| "jest-junit": "^5.0.0", | |||
| "jest-cli": "23.6.0", | "jest-cli": "23.6.0", | ||
| "jest-junit": "^5.0.0", | |||
| "lerna": "^3.4.0", | "lerna": "^3.4.0", | ||
| "lint-staged": "4.2.3", | "lint-staged": "4.2.3", | ||
| "mkdirp": "0.5.1", | "mkdirp": "0.5.1", | ||
| ... | @@ -67,7 +67,8 @@ | ... | @@ -67,7 +67,8 @@ |
| "standard": "11.0.1", | "standard": "11.0.1", | ||
| "taskr": "1.1.0", | "taskr": "1.1.0", | ||
| "wait-port": "0.2.2", | "wait-port": "0.2.2", | ||
| "wd": "1.10.3" | "wd": "1.10.3", | ||
| "webpack-bundle-analyzer": "3.0.3" | |||
| }, | }, | ||
| "engines": { | "engines": { | ||
| "node": ">= 8.0.0" | "node": ">= 8.0.0" | ||
| ... | ... |
File moved
File moved
File moved
packages/next/tsconfig.json
0 → 100644
Please
register
or
sign in
to comment