164
rated 0 times
[
170]
[
6]
/ answers: 1 / hits: 17601
/ 10 Years ago, tue, november 18, 2014, 12:00:00
I haven't seen this syntax before and am wondering what it's all about.
var { Navigation } = require('react-router');
The brackets on the left are throwing a syntax error:
unexpected token {
I'm not sure what part of the webpack config is transforming or what the purpose of the syntax is. Is it a Harmony thing? Can someone enlighten me?
More From » webpack