Replies: 6 comments 4 replies
-
In In the case of a module, An alternative would be to use |
Beta Was this translation helpful? Give feedback.
-
Some packaging systems (e.g. google closure) use static files to import dependencies. Therefore I think we should also produce a bundle file |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
After an offline discussion, we found out that the technical solution is using webpack externals. Adding Regarding users that import itowns with its bundle, I think we cannot do much more than saying that this is a breaking change and explain the changes needed in their code (those detailed above, which are quite limited). In addition, I don't think many people import itowns from the bundle, except for small applications / examples. Regarding the two other impacts, I see two possible solutions:
Copy these two files on the server hosting itowns-project during the deployment.
Personally, I like the second option more. In addition, I think externalizing itowns peer dependencies from the bundle would be beneficial because it splits it in multiple parts (better loading performances); it is more flexible to use; projects using it explicitly import What's your opinion on this ? |
Beta Was this translation helpful? Give feedback.
-
Any news on this ? |
Beta Was this translation helpful? Give feedback.
-
Up :) @gchoqueux what do you think ? |
Beta Was this translation helpful? Give feedback.
-
Why does itowns export its own copies of threejs and proj4js ?
Beta Was this translation helpful? Give feedback.
All reactions