Luis Fernando Alvarez D
6bb83272a3
Exclude transform-typeof-symbol ( #6812 )
...
Related to [create-react-app#5278](https://github.com/facebook/create-react-app/pull/5278#issue-220142150 )
2019-03-30 01:54:05 +01:00
Luis Fernando Alvarez D
f81e5f4cad
Added babel-plugin-dynamic-import-node ( #6811 )
...
Replaces `import()` with `require` only for the testing environment.
2019-03-30 01:50:24 +01:00
Luis Fernando Alvarez D
da9472246c
Remove prop-types import in the build ( #6798 )
...
Tests don't catch this change because `isProduction &&` is always false so I tested it with a local build
2019-03-27 12:26:01 +01:00
Tim Neutkens
0088083f52
Check if esmodules is supported before enabling useESModules ( #6534 )
...
* Check if esmodules is supported before enabling useESModules
* Remove console.log
2019-03-05 16:57:07 +01:00
Joe Haddad
330bedacc7
Add Babel plugin that fixes className for Amp elements ( #6486 )
...
This is a simple Babel plugin that overwrites certain attributes for `amp-` elements.
2019-02-28 23:04:29 +01:00
JJ Kasper
256970ac75
Remove next-to-next-server babel plugin ( #6458 )
...
After discussion it was decided instead of rewriting `next/config` and `next/head` imports to `next-server/config` and `next-server/head` we should just allow importing them as `next/config` and `next/head`
Fixes : #6187
2019-02-27 11:00:02 +01:00
Akram
63c25a9c60
update preset.ts to use isProduction variable ( #6234 )
2019-02-10 18:45:51 +01:00
Tim Neutkens
b4ade0a3cd
Revert "Move phases back to next/constants ( #6104 )"
...
This reverts commit 9112f63eba
.
2019-01-26 02:01:49 +01:00
Tim Neutkens
9112f63eba
Move phases back to next/constants ( #6104 )
...
* Move phases back to next/constants
* Fix typescript error
2019-01-23 14:10:12 +01:00
Tim Neutkens
02ab732096
Remove next/asset ( #6046 )
...
* Remove next/asset
Reasoning described in #5970
* Remove next/asset tests
* Bring back asset-page
2019-01-14 01:32:20 +01:00
Tim Neutkens
dd556bf90b
Add tsc type checking ( #5826 )
...
* Add tsc type checking
* Add linting on circle
* Add node-fetch types
* Use strict mode
2018-12-05 21:45:50 +01:00
Tim Neutkens
1a5fc941ce
Remove console.log after verifying the correct files are ignored
2018-12-05 15:05:14 +01:00
Tim Neutkens
6542750e12
Fix edge case where file had module.export
in the content ( #5823 )
...
We ran into this eg on hyper-site, which has `module.exports` in the content.
2018-12-05 14:37:26 +01:00
Tim Neutkens
2d5b56a181
Disable usage of esmodules when commonjs is enabled on the preset
2018-12-04 20:10:22 +01:00
Tim Neutkens
58f5dd297a
Add Typescript types for builds functions ( #5791 )
2018-12-03 14:18:52 +01:00
Tim Neutkens
a9cf735f50
Convert babel plugins to typescript ( #5789 )
...
Slowly moving files over 💯
2018-12-02 18:30:00 +01:00
Tim Neutkens
55e89e759a
Fix polyfill for ie11 ( #5763 )
...
* Fix polyfill for ie11
* Use esmodules only when using webpack
2018-11-29 12:36:03 +01:00
Tim Neutkens
15bb1c5e79
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
2018-11-28 15:03:02 +01:00
Tim Neutkens
0f6cff88bc
Add next-to-next-server
2018-10-05 23:40:36 +02:00
Tim Neutkens
b1c4f3aec4
Monorepo ( #5341 )
...
- Implements Lerna
- Moves all source code into `packages/next`
- Keeps integration tests in the root directory
2018-10-01 01:02:10 +02:00