Clone this repo:
  1. 212495f Deprecate pkg:browser, prepare for v0.10.0+3 (#2) by Kevin Moore · 3 years, 7 months ago master 0.10.0+3
  2. 6109739 [browser] restore previous version with tighter SDK lower bound by · 8 years ago 0.10.0+2
  3. 4d6446c [browser] revert 0.10.0, it had the wrong SDK lower bound by · 8 years ago
  4. 734b8ad [smoke] add homepage field to pubspec by · 8 years ago
  5. e75929e [polymer] update pubspecs to prepare for -pre.0 release by · 8 years ago

This package is no longer maintained.

Supports using Dartium during development for projects using Dart v1.

For projects using Dart v2, this package is no longer needed. See the Dart 2 migration guide for details.


The dart.js file is used in Dart browser apps to check for native Dart support and either (a) bootstrap Dartium or (b) load compiled JS instead.

  1. Add the following to your pubspec.yaml:

      browser: ^0.10.0
  2. Run pub install.

  3. Use a relative script tag in your html to the installed version:

    <script src="packages/browser/dart.js"></script>

If you do not wish to use pub, you may host a copy of this file locally instead. In this case, you will need to update it yourself as necessary. We reserve the right to move the old file in the repository, so we no longer recommend linking to it directly.


This script was required for dart:js interop to work, but it is no longer needed. The functionality is now supported by dart:js directly.

If you previously had a script such as this, please remove it:

<script src="packages/browser/interop.js"></script>