Search code examples
dartwebstormdart2js

How I can extend max time given to perform dart2js in WebStorm


I have a big Dart project with a compilation time longer than the 30s allowed by WebStorm. Is there any way to extend allowed calculation time?

enter image description here


Solution

  • This 30s timeout comes from the dart2js tool, not from the IDE. By the way AFAIK direct dart2js usage is not a recommended workflow. Dart2js option is removed from Dart Editor context menu and will be removed from WebStorm as well. Instead you should use pub build. In WebStorm 'pub build' option is available in context menu of the pubspec.yaml file and also in the editor with pubspec.yaml file open.