You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change the pubspec from dev_dependencies to dependencies et voila.
For a library package that has test/ and example/ but no application, it should be recommended to have browser in dev_dependencies to avoid unnecessary constraints on the consumer of the package, so I believe this needs to be fixed in order for pub build test and pub build example to be useful.
thanks
The text was updated successfully, but these errors were encountered:
This issue was originally filed by dev...@futureperfect.info
1.2.0.edge_032404
Windows7x64
pubspec.yaml
name: bug
dev_dependencies:
browser: '>=0.9.0'
example/test.dart
library bug.example;
import 'dart:html';
main() {
document.body.append(new SpanElement()..text = 'Hello');
}
example/test.html
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
</head>
<body>
<script type="application/dart" src="test.dart"></script>
<script src="packages/browser/dart.js"></script>
</body>
</html>
cmd> pub build example
Notice there is no packages/dart.js or interop.js
Change the pubspec from
dev_dependencies
todependencies
et voila.For a library package that has
test/
andexample/
but no application, it should be recommended to havebrowser
indev_dependencies
to avoid unnecessary constraints on the consumer of the package, so I believe this needs to be fixed in order forpub build test
andpub build example
to be useful.thanks
The text was updated successfully, but these errors were encountered: