Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(chore): fixes webpack-stream error with missing catch var declara…
…tion (facebookarchive#2291) Summary: **Summary** Fixes an error thrown by `webpack-stream` with the missing catch var declaration ``` [16:12:34] '<anonymous>' errored after 8.42 s [16:12:34] Error in plugin "webpack-stream" Message: ./lib/setDraftEditorSelection.js Module parse failed: Unexpected token (278:12) You may need an appropriate loader to handle this file type. | try { | selection.addRange(range); | } catch {// ignore | } | } else { @ ./lib/DraftEditorLeaf.react.js 29:30-66 @ ./lib/DraftEditorBlock.react.js @ ./lib/Draft.js Details: domain: [object Object] domainThrown: true ``` **Test Plan** ``` yarn ``` Build completes without errors Pull Request resolved: facebookarchive#2291 Reviewed By: mrkev Differential Revision: D19230824 Pulled By: claudiopro fbshipit-source-id: 9fdc2ebbee654404458851f6fd14a367c33a23e4
- Loading branch information