localvoid / liquid

[UNMAINTAINED] Library to build User Interfaces in Dart [Virtual DOM]
http://localvoid.github.io/liquid/
BSD 2-Clause "Simplified" License
29 stars 3 forks source link

Mirror #7

Closed Zeug-9 closed 9 years ago

Zeug-9 commented 9 years ago

During the build () for deployement , I get errors for the mirror so I get a large file.

Warning from Dart2JS: packages\liquid\src\dynamic.dart:9:1: web\main.dart: This import is not annotated with @MirrorsUsed, which may lead to unnecessarily large generated code. 7516 methods retained for use by dart:mirrors out of 9610 total methods (78%). Try adding '@MirrorsUsed(...)' as described at https://goo.gl/Akrrog. import 'dart:mirrors';

Zeug-9 commented 9 years ago

Mistake I found in the example read- dom when I build ()

localvoid commented 9 years ago

You will need to add transformer to pubspec.yaml

transformers:
- liquid

Right now if you enable it, it will work in development and production mode. It works on examples, but I am still working on it.

Zeug-9 commented 9 years ago

Thank you for your response seems to work now