Commit 6213d2e
Fix sandboxes without dependencies (codesandbox#1190)
<!--
Please make sure you are familiar with and follow the instructions in the
contributing guidelines (found in the CONTRIBUTING.md file).
Please fill out the information below to expedite the review and (hopefully)
merge of your pull request!
-->
<!-- Is it a Bug fix, feature, docs update, ... -->
**What kind of change does this PR introduce?**
Fixes codesandbox#1189.
<!-- You can also link to an open issue here -->
**What is the current behavior?**
See codesandbox#1189.
From my understanding, the faulty commit is 8713bb1. I defaulted both dependencies and dev dependencies to an empty object so that this doesn't throw:
codesandbox@8713bb1#diff-2782e23a6ee94211823963997b4cf469R88
<!-- if this is a feature change -->
**What is the new behavior?**
This kind of sandboxes works again: [see result for InstantSearch.js template](http://pr1190.cs.lbogdan.tk/s/github/algolia/create-instantsearch-app/tree/templates/instantsearch.js).
<!-- Have you done all of these things? -->
**Checklist**:
<!-- add "N/A" to the end of each line that's irrelevant to your changes -->
<!-- to check an item, place an "x" in the box like so: "- [x] Documentation" -->
- [ ] Documentation
- [ ] Tests
- [x] Ready to be merged <!-- In your opinion, is this ready to be merged as soon as it's reviewed? -->
- [x] Added myself to contributors table <!-- this is optional, see the contributing guidelines for instructions -->
<!-- feel free to add additional comments -->
<!-- Thank you for contributing! -->1 parent 4e9f2c2 commit 6213d2e
File tree
3 files changed
+14
-4
lines changed- packages/app/src/sandbox/eval/transpilers/babel
3 files changed
+14
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
633 | 633 | | |
634 | 634 | | |
635 | 635 | | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
636 | 646 | | |
637 | 647 | | |
638 | 648 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
0 commit comments