How to install and use Babel.js and watchers in PhpStorm on Windows?
I use babel.js in my project:
<script src="<?php echo base_url() ?>assets/plugins/babel.js"></script>
but by adding type:text/babel, phpstorm shows error and highlights...
How can i solve this problem without using npm???
Please sign in to leave a comment.
Hello,
Unfortunately, there's no way to do this without npm: https://blog.jetbrains.com/webstorm/2015/05/ecmascript-6-in-webstorm-transpiling#setting-up-babel-file-watcher.