Add latest typescript to CodeSandbox devDependencies #14589
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
While adding an empty
.babelrc
in #14419 prevented unwanted transpiling by CodeSandbox after #14279 it appears that the default parcel template in CodeSandbox uses an old version of Babel for parsing the application JavaScript and as noted in #14445 (comment) modern syntax such as optional chaining (which would have been useful in the example in #14582 (comment)) is rejected. If the unneeded'@babel/core': 'latest',
removed from live example by #14279 is injected into thepackage.json
supplied to CodeSandbox it fixes the problem. This is an external use so it does not need to be an OpenLayers dependency.