A
A
Alexander2017-11-14 17:06:59
webstorm
Alexander, 2017-11-14 17:06:59

How to make React 16 friends with WebStorm/PyCharm?

5a0af7c896f9b989222059.pngReact 16 - /node_modules/react/index.js :

'use strict';

if (process.env.NODE_ENV === 'production') {
  module.exports = require('./cjs/react.production.min.js');
} else {
  module.exports = require('./cjs/react.development.js');
}

Is there any way to tell WebStorm/PyCharm to include react.development.js
WebStorm penultimate version, PyCharm latest version.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail Osher, 2017-11-14
@kentuck1213

In PyCharm, I would not expect such support.
I have latest PhpStorm, NodeJS plugin installed, node itself is 8.6.
And there is another setting.
Settings > Languages ​​& Frameworks > Javascript
JavaScript language version = Flow
Works like clockwork.
The latest WebStorm should be able to do this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question