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

Minify also imported files? #5484

Open
Leone25 opened this issue Jun 3, 2022 · 0 comments
Open

Minify also imported files? #5484

Leone25 opened this issue Jun 3, 2022 · 0 comments

Comments

@Leone25
Copy link

Leone25 commented Jun 3, 2022

Hello

would it be possible to automatically also minify and "link" all the files that are imported with the standard js syntax?

To give an idea
index.js:

import test from './test.js'

console.log(test.hello());

test.js:

export function hello() {
    return 'Hello, World!';
}

output (sort-of, this was hand made):

t.h = () => 'Hello, World!';console.log(t.h());

I'm using the js api.

Could this also be done with standard node modules?

I hope I managed to explain my self.

Ty in advance

Rico

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

No branches or pull requests

1 participant