UNPKG

@talend/module-to-cdn

Version:

Get cdn config from npm module name

20 lines (12 loc) 763 B
# @talend/module-to-cdn ## 9.7.0 ### Minor Changes - 5d12d77: Add cldr-dates-full ### Patch Changes - 5c0cd63: fix: move local path compute from moduleToCdn to webpack plugin and cdn config. Context: When multiple versions of a package are installed. When the two versions do not resolve the same path from module-to-cdn. Ex: `react-dnd` in 2.6.0 and 14.0.0. Only the path from the installed in root node_modules will be found which lead to bad resolution (404). Why: We use require.resolve without context or with wrong options `paths` so we find only the root one. Solution: Remove resolution from module-to-cdn which has no way to have a context path and update cdn config and webpack plugin to use require.resolve with correct paths.