-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comment out export *
statements
#2
Comments
@grant , can you please explain why v--TS--v
export * from 'file'
–––
var exports = exports || {};
var module = module || { exports: exports };
// export * from 'file'
^--GS--^ |
@pozhidaevak I'm really not sure what the case would be. Can you provide example expected INPUT and OUTPUT code? |
@grant It is kind of follow up of this issue |
So ts2gas work like:
I think we may need to additionally test that
|
@grant , I thought you were ok with me just commenting out v--TS--v
export * from 'file'
–––
var exports = exports || {};
var module = module || { exports: exports };
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
__export(require("file"));
^--GS--^ the result is not valid due to so I want to make it look like v--TS--v
export * from 'file'
–––
var exports = exports || {};
var module = module || { exports: exports };
// export * from 'file'
^--GS--^ |
@pozhidaevak, Yes, commenting |
Published with ca542f2. |
Export statements like
export * from "file"
should be commented out as they are translated to code withrequire()
that is not supported by google scriptHowever
export val
andexport function
seem to work fine.@grant also suggested to comment out
__export()
Will try to create a PR for this issue...
The text was updated successfully, but these errors were encountered: