Jens sorry - one more round if you please

> The library exists as GWT library (*.jar file with *.gwt.xml)...

This GWT library is source right? That means it is compiled by the
compilation session of MyApplication right?

Unless.... (light bulb goes on)

In some cases you want the library to act as JS library for one Page but
for another page you only plan to link it with the GWT MyApplication (and
not export is as a JS library) where normal optimization techniques apply.

Is that it? If so tricky...


    Vassilis






On Thu, Sep 15, 2016 at 1:54 AM, Jens <jens.nehlme...@gmail.com> wrote:

>
> Is this GWT library exported as JS only? ...
>>
> So I don't get it. What am I missing?
>>
>
> The library exists as GWT library (*.jar file with *.gwt.xml) so you can
> use it right away in your GWT app, but the library is also exported by the
> library maintainer to JavaScript so that JavaScript people can also use it
> right away by including a *.js file.
>
> In that case your app does not want to use -generateJsInteropExports
> because it directly uses the GWT library which has @JsType(isNative =
> false) all over the place in its Java files. If you would use
> -generateJsInteropExport in your app, it would have a negative impact on
> your code size because these @JsType classes would not be optimized/pruned
> then. Now imagine you have several of such libraries in your app.
>
> -- J.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Vassilis Virvilis

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to