webpack-sources

Source code handling classes for webpack

MIT License

Downloads
128.1M
Stars
258
Committers
26

Bot releases are visible (Hide)

webpack-sources - Latest Release

Published by sokra almost 3 years ago

Bugfixes

  • Source Code is splitted into lines via custom code instead of using a RegExp
    • In weird edge cases the RegExp caused a Stack Overflow
webpack-sources -

Published by sokra about 3 years ago

Bugfixes

  • RawSources with Buffers can now be concatenated with ConcatSource
  • Source Code is splitted into lines via custom code instead of using a RegExp
    • In weird edge cases the RegExp caused a Stack Overflow
webpack-sources -

Published by sokra about 3 years ago

Bugfix

  • improve handling of null sources and sourceContents

Performance

  • faster streaming when only lines are mapped
webpack-sources -

Published by sokra about 3 years ago

equal to 3.1.0

webpack-sources -

Published by sokra about 3 years ago

Bugfix

  • improve handling of invalid mappings (like zero sized or negative)
webpack-sources -

Published by sokra about 3 years ago

Performance

  • add SourceMapSource.buffer for better performance
  • more efficient serialization of source mappings

Bugfix

  • avoid crashing when trying to compare the name with the original source, but there is no sourcesContent in SourceMap
webpack-sources -

Published by sokra about 3 years ago

Bugfix

  • fix invalid mappings when multiple lines with multiple chunks are replaced
webpack-sources -

Published by sokra about 3 years ago

Bugfix

  • restore backward-compat format for storing end position of replacements
webpack-sources -

Published by sokra about 3 years ago

Bugfix

  • fix incorrect offset sign when doing replacements
webpack-sources -

Published by sokra about 3 years ago

Bugfixes

  • fix ConcatSource off-by-1 bug
webpack-sources -

Published by sokra about 3 years ago

Performance

  • remove all dependencies
  • refactoring for performance
    • remove node() and listMap()
    • add streamChunks()
webpack-sources -

Published by sokra over 3 years ago

Performance

  • fix type bug in CachedSource which lead to bad hashing performance
webpack-sources -

Published by sokra over 3 years ago

Performance

  • add caching to node and listMap
webpack-sources -

Published by sokra almost 4 years ago

Performance

  • add caching to updateHash
webpack-sources -

Published by sokra almost 4 years ago

Performance

  • fix a performance bug when processing minimized files with SourceMaps
webpack-sources -

Published by sokra almost 4 years ago

Bugfixes

  • Some Sources use to return an empty SourceMap instead of null as map
    • They correctly return null instead now
webpack-sources -

Published by sokra about 4 years ago

Bugfixes

  • fix crash with source "." is not in SourceMap
webpack-sources -

Published by sokra about 4 years ago

API

Additions

  • add buffer method to Source
  • add SizeOnlySource
  • expose everything needed for serialization as public methods
  • add CompatSource
  • add support for a lazy function as original Source for CachedSource

Removals

  • remove node and listNode methods from public API
  • remove LineToLineMappedSource

Bugfixes

  • ConcatSource falls back to sourceAndMap when node() or listMap() is not available
  • PrefixSource do no longer insert prefix in the middle of the line in some cases
  • fix updateHash for SourceMapSource
  • fix crash when Source in CachedSource returns null map

Performance:

  • avoid unnecessary sorting in ReplaceSource
  • make exports lazy
  • cache utf-8 conversion
  • allow keeping Buffer instead of string and only convert it lazily
  • add optimization step to ConcatSource which converts strings to RawSources (which cache)
  • cache Buffers instead of string in CachedSource cache for map()

Changes

  • increase minimum node.js version to 10.13

Other

  • add Source types to hash
webpack-sources -

Published by sokra about 4 years ago

Features

  • add support for a lazy function as original Source for CachedSource
webpack-sources -

Published by sokra about 4 years ago

Bugfixes

  • fix crash when Source in CachedSource returns null map
Package Rankings
Top 1.19% on Npmjs.org
Top 17.98% on Repo1.maven.org