You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version (from my composer.json file): "matthiasmullie/minify": "^1.3"
In my project, I have multiple JS files, that each do their own thing. I then use this library to minify them at runtime and in order to have proper type-checking I need to use import/export statements. However, the problem is that this library treats them just as if they were just normal pieces of the code.
I.e. omitting the import statement because it isn't necessary and moving + combining the export at the bottom of the bundle.
However, this library simply minifies the files and combines them.
Have I missed anything?
Edit:
Thinking about it, even just removing the import/export statements alltogether would probably solve the issue, because this way we don't have to worry about what path are we importing from ect. and browsers don't really care about this if you are smart about naming things.
The text was updated successfully, but these errors were encountered:
Version (from my composer.json file): "matthiasmullie/minify": "^1.3"
In my project, I have multiple JS files, that each do their own thing. I then use this library to minify them at runtime and in order to have proper type-checking I need to use import/export statements. However, the problem is that this library treats them just as if they were just normal pieces of the code.
Example:
file a.js
file b.js
The ideal output of this would be (not minified for readability):
I.e. omitting the import statement because it isn't necessary and moving + combining the export at the bottom of the bundle.
However, this library simply minifies the files and combines them.
Have I missed anything?
Edit:
Thinking about it, even just removing the import/export statements alltogether would probably solve the issue, because this way we don't have to worry about what path are we importing from ect. and browsers don't really care about this if you are smart about naming things.
The text was updated successfully, but these errors were encountered: