webpack-sources

Source code handling classes for webpack

MIT License

Downloads
128.1M
Stars
258
Committers
26

Bot releases are hidden (Show)

webpack-sources -

Published by sokra about 4 years ago

Performance

  • cache Buffers instead of string in CachedSource cache for map()
webpack-sources -

Published by sokra about 4 years ago

Features

  • add CompatSource
webpack-sources -

Published by sokra almost 5 years ago

Features

  • expose everything needed for serialization as public methods

Performance

  • 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)
webpack-sources -

Published by sokra almost 5 years ago

Bugfixes

  • fix updateHash for SourceMapSource

Changes

  • increase minimum node.js version to 10
webpack-sources -

Published by sokra about 5 years ago

Based on 1.4.3

webpack-sources -

Published by sokra about 5 years ago

Based on 1.3.0

webpack-sources -

Published by sokra about 5 years ago

Based on 1.4.2

webpack-sources -

Published by sokra about 5 years ago

Bugfixes

  • validate name before using it in SourceMapSource
webpack-sources -

Published by sokra about 5 years ago

Bugfixes

  • fix crash introduced by last version
  • reduce code style for node.js 4 support
webpack-sources -

Published by sokra about 5 years ago

Features

  • Support "identity" mappings for SourceMapSource
  • add option to SourceMapSource to show/hide intermediate source code

Bugfixes

  • fix size() method for binary sources
webpack-sources -

Published by sokra over 5 years ago

API

  • add buffer method to Source
  • remove node and listNode methods from public API
  • remove LineToLineMappedSource
  • add SizeOnlySource

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

Performance:

  • avoid unnecessary sorting in ReplaceSource
  • make exports lazy

Other

add Source types to hash

webpack-sources -

Published by sokra about 6 years ago

Features

  • add name argument to replace and insert in ReplaceSource

Bugfixes

  • fix incorrect offset when lines start with whitespace

Other

  • performance improvements
webpack-sources -

Published by sokra about 6 years ago

  • Performance improvements
  • Improve quality of generated Source Maps when doing replacements
webpack-sources -

Published by sokra almost 7 years ago

  • Performance improvements
webpack-sources -

Published by TheLarkInn almost 7 years ago

Bugfixes

  • Update source-map dep to apply upstream bugfix ( #27 )
webpack-sources -

Published by sokra about 7 years ago

Features:

  • added original() method to ReplaceSource to get the original source
  • Refactoring to es6
  • Upgrade to source-list-map@2
webpack-sources -

Published by sokra about 7 years ago

Bugfixes:

  • fixed bug introduced by refactoring in LineToLineMappedSource
webpack-sources -

Published by sokra over 7 years ago

  • consistent empty line handling in PrefixSource
  • fix replacements when replacements includes or removes lines
Package Rankings
Top 1.19% on Npmjs.org
Top 17.98% on Repo1.maven.org