dev_compiler 0.1.24

  • Installing
  • Versions
  • --


Build Status Coverage Status

The Dart Dev Compiler (DDC) is an experimental development tool and transpiler. It is at a very early stage today. Its aims include the following:

  • A static checker based on stricter-than-standard-Dart type rules.
  • A modular Dart-to-ES6 transpiler for Dart programs that statically check.

DDC attempts to map to idiomatic EcmaScript 6 (ES6) as cleanly as possible. To do this while cohering to Dart semantics, DDC relies heavily on static type information, static checking, and runtime assertions.

DDC is intended to support a very large subset of Dart. If a program does not statically check, DDC will not result in valid generated code. Our goal is that a program execution (of a valid program) that runs without triggering runtime assertions should run the same on other Dart platforms under checked mode or production mode.

DDC does support untyped Dart code, but it will typically result in less readable and less efficient ES6 output.

DDC has the following project goals:

  • Effective static checking and error detection.
  • A debugging solution for all modern browsers.
  • Readable output.
  • Fast, modular compilation of Dart code.
  • Easy use of generated code from JavaScript.

DDC is still in a very early stage as highlighted by our choice of ES6. ES6 itself is in active development across all modern browsers, but at various stages of support:

We are targeting the subset of ES6 supported in Chrome.

To try out DDC and/or give feedback, please read our usage page.

dev_compiler changelog


  • workaround breaking change on requestAnimationFrame


  • updates for the latest analyzer
  • removal of deprecated functionality (server mode) in prep for refactoring


  • fixes to support the latest analyzer
  • improvements in compile speed
  • bug fixes on function / closure handling


  • bug fix for dart:js constructor invocation


  • support new StackTrace.current method


  • support for dom libraries (dart:html, etc)


  • dart:typed_data support
  • preliminary TS / Closure output support
  • various runtime typing fixes


  • preliminary node module support
  • support for compiling / serving multiple html files


  • rolled analyzer to 0.27.2-alpha.1
  • fixes for static fields


  • codegen fixes for dart:convert (json decode) and dart:math (max, min)


  • updates to unpin analyzer and move forward to ^0.27.1+2


  • various fixes in js codegen
  • pinned to analyzer 0.26.2+1 to avoid breaking upstream changes


  • fixes for babel
  • fixes toward new js interop


  • moved js runtime files to lib/runtime/dart (dart_runtime.js -> dart/_runtime.js)
  • bug fix to source maps
  • initial support for f-bound quantification patterns


  • added an --html-report option to create a file summarizing compilation issues
  • added a -f alias to the --force-compile command line option
  • removed many info level messages that were informational to the DDC team



  • added a --version command-line option
  • added a new entry-point - dev_compiler - that aliases to dartdevc

Use this package as an executable

1. Install it

You can install the package from the command line:

$ pub global activate dev_compiler

2. Use it

The package has the following executables:

$ dartdevc
$ dartdevrun
$ dev_compiler

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  dev_compiler: ^0.1.24

2. Install it

You can install packages from the command line:

with pub:

$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:dev_compiler/devc.dart';
Version Uploaded Documentation Archive
0.1.24 Apr 1, 2016 Go to the documentation of dev_compiler 0.1.24 Download dev_compiler 0.1.24 archive
0.1.23 Mar 31, 2016 Go to the documentation of dev_compiler 0.1.23 Download dev_compiler 0.1.23 archive
0.1.22 Mar 15, 2016 Go to the documentation of dev_compiler 0.1.22 Download dev_compiler 0.1.22 archive
0.1.21 Feb 22, 2016 Go to the documentation of dev_compiler 0.1.21 Download dev_compiler 0.1.21 archive
0.1.20 Feb 19, 2016 Go to the documentation of dev_compiler 0.1.20 Download dev_compiler 0.1.20 archive
0.1.19 Feb 19, 2016 Go to the documentation of dev_compiler 0.1.19 Download dev_compiler 0.1.19 archive
0.1.18 Feb 12, 2016 Go to the documentation of dev_compiler 0.1.18 Download dev_compiler 0.1.18 archive
0.1.17 Jan 29, 2016 Go to the documentation of dev_compiler 0.1.17 Download dev_compiler 0.1.17 archive
0.1.16 Jan 28, 2016 Go to the documentation of dev_compiler 0.1.16 Download dev_compiler 0.1.16 archive
0.1.15 Jan 13, 2016 Go to the documentation of dev_compiler 0.1.15 Download dev_compiler 0.1.15 archive

All 26 versions...

Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

This package is not analyzed, because it is discontinued.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.12.0 <2.0.0