No description
36c3d2d80f
moves the logic of creating SourceMap assets into the asset reference. This avoids depending on the chunk items in the references() method directly. It also avoids calling CodeVc::source_map() until the source map is read avoid circular dependency in call graph It also avoids checking `has_source_map()` and just inserts potential Source Maps assets for every chunk item. Checking `has_source_map()` seems unnecessary work to do for all chunk items, when we can just send an empty source map. only expose SourceMaps for chunk items when HMR is enabled |
||
---|---|---|
packages/next-swc/crates |