Setup require hook in next-server for styled-jsx resolving (#39305)
* Use require hook and alias to resolve styled-jsx
* re-export styled-jsx types from compiled
* fix lint
* add test for styled-jsx css
* setup require hook in server
* compile import path to styled-jsx/style
* revert require hook
* add test for server styled-jsx resolving
* update test
* pre copy styled-jsx assets
* fix styled-jsx dts
* add npmrc for styled-jsx e2e test
* load require hook directly
* rm legacy test
* fix lint
* fix pnpm install error
* split require hook
* only alias styled-jsx
* make styled-jsx resolving statically analyzable
* update test
Co-authored-by:
JJ Kasper <jj@jjsweb.site>
Showing
| ... | @@ -192,7 +192,6 @@ | ... | @@ -192,7 +192,6 @@ |
| "semver": "7.3.7", | "semver": "7.3.7", | ||
| "shell-quote": "1.7.3", | "shell-quote": "1.7.3", | ||
| "styled-components": "5.3.3", | "styled-components": "5.3.3", | ||
| "styled-jsx": "link:packages/next/node_modules/styled-jsx", | |||
| "styled-jsx-plugin-postcss": "3.0.2", | "styled-jsx-plugin-postcss": "3.0.2", | ||
| "tailwindcss": "1.1.3", | "tailwindcss": "1.1.3", | ||
| "taskr": "1.1.0", | "taskr": "1.1.0", | ||
| ... | ... |
Please
register
or
sign in
to comment