codesandbox / codesandbox/codesandbox-client
Parcelrc doesn't seem to be in effect?
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 13.6k
- Forks
- 2.4k
- Avg merge
- 6d 19h
- Merged PRs (30d)
- 2
Description
🐛 bug report
Preflight Checklist
- I have read the [Contributing Guidelines][contributing] for this project.
- I agree to follow the [Code of Conduct][code_of_conduct] that this project
adheres to. - I have searched the issue tracker for an issue that matches the one I want
to file, without success.
Description of the problem
I had a parcel project with a .parcelrc config file, which works perfectly in my local environment. However it doesn't work in codesandbox and it looks like that .parcelrc does not kick in.
From previous closed issues I know that Parcel 2.x is supported now.
Question: is .parcelrc supported? If not, is there any way to work around?
How has this issue affected you? What are you trying to accomplish?
I have a parcel project which has a template element with a non-standard src attribute (src="{{ some_value }}" in index.html. With default Parcel behavior, this would go wrong due to the fact that Parcel tries to resolve every src as a dependency and failed to do so. This can be worked around with a Parcel plugin parcel-resolver-ignore to skip resolution for some patterns. However we still get the same error in codesandbox, as if .parcelrc is not in effect (plugin not loaded) or somehow the plugin cannot read the settings from package.json.
To Reproduce
See the following sandbox. If we run the project in local environment it should work.
Link to sandbox: link (optional)
Your Environment
| Software | Name/Version |
|---|---|
| Сodesandbox | Latest |
| Browser | Chrome, Firefox |
| Operating System | MacOS |
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the linked CodeSandbox with the Parcel project, then inspect how .parcelrc and the Parcel plugin settings in package.json are loaded. Compare the sandbox behavior with the local environment, focusing on the non-standard src attribute and the parcel-resolver-ignore plugin. Done means establishing whether .parcelrc is supported and documenting or implementing the resulting behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100