Skip to content
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

autoGlobalExportsFiles options does not work #879

Closed
armaan-kumar opened this issue Jan 26, 2024 · 2 comments · Fixed by #909
Closed

autoGlobalExportsFiles options does not work #879

armaan-kumar opened this issue Jan 26, 2024 · 2 comments · Fixed by #909

Comments

@armaan-kumar
Copy link

I am trying to use this template: https://github.com/iansan5653/gas-ts-template
But exports in build/index.js after typescript compilation do not expose to global object even after adding path in autoGlobalExportsFiles array.

@iansan5653
Copy link

I am able to reproduce this as well and it appears to be the source of iansan5653/gas-ts-template#2

Simple declaration exports do not work:

// ❌ Does NOT work
export function one() { /* ... */ }

export const two = () => { /* ... */ }

But object exports and re-exports from other files do:

// ✅ Does work:
function three() { /* ... */ }

export {three}

export {four} from "./four.ts"

@fossamagna
Copy link
Owner

@armaan-kumar @iansan5653
I published gas-webpack-plulgin@2.6.0. I added to support to generate from function declaration exports with autoGlobalExportsFiles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants