1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00
next.js/server
Tim Neutkens 408633c1dc Remove traces of glamor (#1286)
* Remove traces of glamor

As talked about with @rauchg. Glamor takes up around 60KB of the bundle (pre-gzip). Since styled-jsx is the way to go now and we support adding glamor by the user we should remove it as dependency cause it is bundled even when not used.

Added rehydration to the example, since we did that in our code.

There is only one thing I'm not sure about and want to discuss:
what should we do with next/css. Right now I added a throw for when it is imported. I'm not sure if we should do that / some other way to notify the user it has been removed. The reasoning behind the throw is that when we would do a console.warn the user would see 'css.default.<X>' not found because we don't have the glamor dependency anymore.

* Update yarn.lock

* Remove test for styles
2017-02-26 17:58:00 +05:30
..
build Fix relative module aliases for Windows (#1249) 2017-02-24 04:49:34 +05:30
config.js Add X-Powered-By header. (#416) 2016-12-19 07:27:47 -08:00
document.js Remove traces of glamor (#1286) 2017-02-26 17:58:00 +05:30
hot-reloader.js build on tmp dir (#1150) 2017-02-15 10:03:33 -03:00
index.js Handle BUILD_ID mismatch error (#1224) 2017-02-20 15:48:17 -08:00
next.js Programmatic API (#310) 2016-12-16 12:33:08 -08:00
read-page.js Add Gzip support for JSON pages (#571) 2016-12-31 21:46:23 +09:00
render.js Remove pre-gzip support (#1155) 2017-02-15 15:49:45 +01:00
require.js write assets to disk 2016-10-16 04:49:42 +09:00
resolve.js New test setup (#640) 2017-01-12 13:14:49 +09:00
router.js Allow parsed url to be passed down (#950) 2017-02-02 12:21:08 +05:30