Summary: Pull Request resolved: https://github.com/facebook/yoga/pull/1516 Right now playground links are URL encoded base64 of the code content. This leads to some pretty long links. Running a service, or needing to auth to some other service, seems like a lot more headache than it is worth, so this change instead tries to make the URLs a bit more reasonable. One minor saving is that we're URL encoding base64, instead of just representing using the url-safe variant of base64. But we can get more savings, even in small examples, using compression. This adds a popular, small, library to do that. Reviewed By: yungsters Differential Revision: D52161884 fbshipit-source-id: 9f5d131f27e25a611501c2e3bf3907e83c2e3da1
44 lines
1.3 KiB
JSON
44 lines
1.3 KiB
JSON
{
|
|
"name": "website-next",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"docusaurus": "docusaurus",
|
|
"start": "yarn workspace yoga-layout build && docusaurus start",
|
|
"build": "yarn workspace yoga-layout build && docusaurus build",
|
|
"swizzle": "docusaurus swizzle",
|
|
"deploy": "docusaurus deploy",
|
|
"clear": "docusaurus clear",
|
|
"serve": "docusaurus serve",
|
|
"write-translations": "docusaurus write-translations",
|
|
"write-heading-ids": "docusaurus write-heading-ids",
|
|
"typecheck": "tsc",
|
|
"lint": "eslint .",
|
|
"lint:fix": "eslint . --fix"
|
|
},
|
|
"dependencies": {
|
|
"@docusaurus/core": "3.0.1",
|
|
"@docusaurus/preset-classic": "3.0.1",
|
|
"@mdx-js/react": "^3.0.0",
|
|
"clsx": "^2.0.0",
|
|
"lz-string": "^1.5.0",
|
|
"nullthrows": "^1.1.1",
|
|
"prism-react-renderer": "^2.3.0",
|
|
"react": "^18.0.0",
|
|
"react-dom": "^18.0.0",
|
|
"react-live": "^4.1.5",
|
|
"yoga-layout": "0.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@docusaurus/module-type-aliases": "3.0.0",
|
|
"@docusaurus/tsconfig": "3.0.0",
|
|
"@docusaurus/types": "3.0.0",
|
|
"eslint-plugin-react": "^7.33.2",
|
|
"eslint-plugin-react-hooks": "^4.6.0"
|
|
},
|
|
"browserslist": "> 0.5%, last 2 versions, Firefox ESR, not dead",
|
|
"engines": {
|
|
"node": ">=16.14"
|
|
}
|
|
}
|