Closed demetriusfeijoo closed 11 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
plugin-sandbox | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Sep 22, 2023 10:15am |
Side note: just randomly found this library that is even used by prettier https://github.com/cosmiconfig/cosmiconfig that helps loading configurations. Maybe we can check it out
Side note: just randomly found this library that is even used by prettier https://github.com/cosmiconfig/cosmiconfig that helps loading configurations. Maybe we can check it out
Interesting. It's similar to https://github.com/unjs/c12
I guess those packages are specifically useful when we want to support different types of configs (e.g. an object within package.json, something.json, something.js, something.ts, ...)
Side note: just randomly found this library that is even used by prettier https://github.com/cosmiconfig/cosmiconfig that helps loading configurations. Maybe we can check it out
Thanks for sharing @BibiSebi. I'm going to read about it and make some tests here. 🙌
ping me here when you're ready for another review :)
It's ready for another review round @eunjae-lee. 🙌
Thanks for the effort in reviewing it @eunjae-lee.
I've created a task for adding the tests, thanks for pointing it out. 🙌
What?
It allows the Sandbox/Container to bootstrap options from a manifest file located within a field-plugin root folder.
Why?
JIRA: EXT-1877
see the RFC
When our Vite
printDev
plugin finds the manifest file:When our Vite
printDev
plugin doesn't find the manifest file:When our Vite
printDev
plugin finds the manifest file but it's not valid:How to test? (optional)
From the root folder of this repository, run:
yarn dev:container
yarn dev:react
It should load the options automatically (from the manifest file) like below:
If you want to change the manifest options locally, edit this file here React Manifest