Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2803)

Issue 6195048: "output-wrapper" option for modules

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 12 months ago by aleksam241
Modified:
11 years, 11 months ago
Reviewers:
bolinfest, Ilia Mirkin, imirkin
Visibility:
Public.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -16 lines) Patch
M src/org/plovr/Compilation.java View 4 chunks +30 lines, -16 lines 0 comments Download

Messages

Total messages: 6
aleksam241
11 years, 12 months ago (2012-05-05 21:56:30 UTC) #1
Ilia Mirkin
IMO the move here is to repurpose my global scope name thing to use google's ...
11 years, 11 months ago (2012-05-09 20:32:43 UTC) #2
aleksam241
> So turning on global-scope-name should enable the right compilation option and > use the ...
11 years, 11 months ago (2012-05-09 20:44:19 UTC) #3
imirkin_alum.mit.edu
Oh, I see. So the "wrapper" wouldn't be like (function(){bla})(), but rather /** copyright */%output% ...
11 years, 11 months ago (2012-05-09 20:57:45 UTC) #4
aleksam241
> Oh, I see. So the "wrapper" wouldn't be like (function(){bla})(), but > rather /** ...
11 years, 11 months ago (2012-05-09 21:06:39 UTC) #5
bolinfest
11 years, 11 months ago (2012-05-09 22:14:11 UTC) #6
I apologize I haven't had a chance to follow up on this yet (I'm traveling,
so I'm not spending much time in front of my laptop).

Yes, the output-wrapper thing does not work on modules as you describe, but
I want to fix the thing that Ilia is talking about first. I am concerned
that ordinary people who try to do something like:

(function() {%output%})();

with modules will be confused why it breaks everything. Since this is the
type of wrapper most people are using, I don't think that output-wrapper
for modules adds a ton of value right now. The copyright thing at the top
of each module is nice, but doesn't add substantial functionality.

On Wed, May 9, 2012 at 5:06 PM, <aleksam241@gmail.com> wrote:

> Oh, I see. So the "wrapper" wouldn't be like (function(){bla})(), but
>> rather /** copyright */%output% sort of thing?
>>
>
> Yes.
> If global-scope-name do all the dirty work (setting
> renamePrefixNamespace, adding ns__=ns__||{} and outer function), the
> only thing I need now will be the copyrights.
> I just wanted a quick solution – output-wrapper is a general purpose
> solution that is able to do all that (+renamePrefixNamespace using
> experimental-compiler-options)**.
>
>
http://codereview.appspot.com/**6195048/<http://codereview.appspot.com/6195048/>
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b