├── .editorconfig ├── .gitignore ├── .travis.yml ├── LICENSE ├── README.md ├── lib ├── CodeNode.js ├── MappingsContext.js ├── SingleLineNode.js ├── SourceListMap.js ├── SourceNode.js ├── base64-vlq.js ├── fromStringWithSourceMap.js ├── helpers.js └── index.js ├── package.json ├── test ├── MappingGeneration.js ├── fixtures │ └── from-to-tests │ │ ├── babel-source.js │ │ ├── babel.expected.map │ │ ├── babel.generated.js │ │ ├── babel.input.map │ │ ├── babel2-source.js │ │ ├── babel2.expected.map │ │ ├── babel2.generated.js │ │ ├── babel2.input.map │ │ ├── empty-lines.expected.map │ │ ├── empty-lines.generated.txt │ │ ├── empty-lines.input.map │ │ ├── file-offset.expected.map │ │ ├── file-offset.generated.txt │ │ ├── file-offset.input.map │ │ ├── hello-world1.expected.map │ │ ├── hello-world1.generated.txt │ │ ├── hello-world1.input.map │ │ ├── hello-world2.expected.map │ │ ├── hello-world2.generated.txt │ │ ├── hello-world2.input.map │ │ ├── hello-world3.expected.map │ │ ├── hello-world3.generated.txt │ │ ├── hello-world3.input.map │ │ ├── mismatched-mappings.expected.map │ │ ├── mismatched-mappings.generated.txt │ │ ├── mismatched-mappings.input.map │ │ ├── multiple-file.expected.map │ │ ├── multiple-file.generated.txt │ │ ├── multiple-file.input.map │ │ ├── multiple-mappings-per-line.expected.map │ │ ├── multiple-mappings-per-line.generated.txt │ │ ├── multiple-mappings-per-line.input.map │ │ ├── no-source-contents.expected.map │ │ ├── no-source-contents.generated.txt │ │ ├── no-source-contents.input.map │ │ ├── null-source.expected.map │ │ ├── null-source.generated.txt │ │ └── null-source.input.map ├── fromStringWithSourceMapTest.js └── mapGeneratedCode.js └── yarn.lock /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*.js] 4 | indent_style=tab 5 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | /coverage 3 | .DS_Store 4 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/source-list-map/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/source-list-map/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/source-list-map/HEAD/README.md -------------------------------------------------------------------------------- /lib/CodeNode.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/source-list-map/HEAD/lib/CodeNode.js -------------------------------------------------------------------------------- /lib/MappingsContext.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/source-list-map/HEAD/lib/MappingsContext.js -------------------------------------------------------------------------------- /lib/SingleLineNode.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/source-list-map/HEAD/lib/SingleLineNode.js -------------------------------------------------------------------------------- /lib/SourceListMap.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/source-list-map/HEAD/lib/SourceListMap.js -------------------------------------------------------------------------------- /lib/SourceNode.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/source-list-map/HEAD/lib/SourceNode.js -------------------------------------------------------------------------------- /lib/base64-vlq.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/source-list-map/HEAD/lib/base64-vlq.js -------------------------------------------------------------------------------- /lib/fromStringWithSourceMap.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/source-list-map/HEAD/lib/fromStringWithSourceMap.js -------------------------------------------------------------------------------- /lib/helpers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/source-list-map/HEAD/lib/helpers.js -------------------------------------------------------------------------------- /lib/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/source-list-map/HEAD/lib/index.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/source-list-map/HEAD/package.json -------------------------------------------------------------------------------- /test/MappingGeneration.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/source-list-map/HEAD/test/MappingGeneration.js -------------------------------------------------------------------------------- /test/fixtures/from-to-tests/babel-source.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/source-list-map/HEAD/test/fixtures/from-to-tests/babel-source.js -------------------------------------------------------------------------------- /test/fixtures/from-to-tests/babel.expected.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/source-list-map/HEAD/test/fixtures/from-to-tests/babel.expected.map -------------------------------------------------------------------------------- /test/fixtures/from-to-tests/babel.generated.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/source-list-map/HEAD/test/fixtures/from-to-tests/babel.generated.js -------------------------------------------------------------------------------- /test/fixtures/from-to-tests/babel.input.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/source-list-map/HEAD/test/fixtures/from-to-tests/babel.input.map -------------------------------------------------------------------------------- /test/fixtures/from-to-tests/babel2-source.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/source-list-map/HEAD/test/fixtures/from-to-tests/babel2-source.js -------------------------------------------------------------------------------- /test/fixtures/from-to-tests/babel2.expected.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/source-list-map/HEAD/test/fixtures/from-to-tests/babel2.expected.map -------------------------------------------------------------------------------- /test/fixtures/from-to-tests/babel2.generated.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/source-list-map/HEAD/test/fixtures/from-to-tests/babel2.generated.js -------------------------------------------------------------------------------- /test/fixtures/from-to-tests/babel2.input.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/source-list-map/HEAD/test/fixtures/from-to-tests/babel2.input.map -------------------------------------------------------------------------------- /test/fixtures/from-to-tests/empty-lines.expected.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/source-list-map/HEAD/test/fixtures/from-to-tests/empty-lines.expected.map -------------------------------------------------------------------------------- /test/fixtures/from-to-tests/empty-lines.generated.txt: -------------------------------------------------------------------------------- 1 | Hello 2 | 3 | World 4 | 5 | -------------------------------------------------------------------------------- /test/fixtures/from-to-tests/empty-lines.input.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/source-list-map/HEAD/test/fixtures/from-to-tests/empty-lines.input.map -------------------------------------------------------------------------------- /test/fixtures/from-to-tests/file-offset.expected.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/source-list-map/HEAD/test/fixtures/from-to-tests/file-offset.expected.map -------------------------------------------------------------------------------- /test/fixtures/from-to-tests/file-offset.generated.txt: -------------------------------------------------------------------------------- 1 | Hello 2 | World 3 | Offset -------------------------------------------------------------------------------- /test/fixtures/from-to-tests/file-offset.input.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/source-list-map/HEAD/test/fixtures/from-to-tests/file-offset.input.map -------------------------------------------------------------------------------- /test/fixtures/from-to-tests/hello-world1.expected.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/source-list-map/HEAD/test/fixtures/from-to-tests/hello-world1.expected.map -------------------------------------------------------------------------------- /test/fixtures/from-to-tests/hello-world1.generated.txt: -------------------------------------------------------------------------------- 1 | Hello 2 | World 3 | -------------------------------------------------------------------------------- /test/fixtures/from-to-tests/hello-world1.input.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/source-list-map/HEAD/test/fixtures/from-to-tests/hello-world1.input.map -------------------------------------------------------------------------------- /test/fixtures/from-to-tests/hello-world2.expected.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/source-list-map/HEAD/test/fixtures/from-to-tests/hello-world2.expected.map -------------------------------------------------------------------------------- /test/fixtures/from-to-tests/hello-world2.generated.txt: -------------------------------------------------------------------------------- 1 | Hello 2 | World -------------------------------------------------------------------------------- /test/fixtures/from-to-tests/hello-world2.input.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/source-list-map/HEAD/test/fixtures/from-to-tests/hello-world2.input.map -------------------------------------------------------------------------------- /test/fixtures/from-to-tests/hello-world3.expected.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/source-list-map/HEAD/test/fixtures/from-to-tests/hello-world3.expected.map -------------------------------------------------------------------------------- /test/fixtures/from-to-tests/hello-world3.generated.txt: -------------------------------------------------------------------------------- 1 | Hello 2 | World 3 | -------------------------------------------------------------------------------- /test/fixtures/from-to-tests/hello-world3.input.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/source-list-map/HEAD/test/fixtures/from-to-tests/hello-world3.input.map -------------------------------------------------------------------------------- /test/fixtures/from-to-tests/mismatched-mappings.expected.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/source-list-map/HEAD/test/fixtures/from-to-tests/mismatched-mappings.expected.map -------------------------------------------------------------------------------- /test/fixtures/from-to-tests/mismatched-mappings.generated.txt: -------------------------------------------------------------------------------- 1 | function foobar() { 2 | return; // foo 3 | } -------------------------------------------------------------------------------- /test/fixtures/from-to-tests/mismatched-mappings.input.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/source-list-map/HEAD/test/fixtures/from-to-tests/mismatched-mappings.input.map -------------------------------------------------------------------------------- /test/fixtures/from-to-tests/multiple-file.expected.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/source-list-map/HEAD/test/fixtures/from-to-tests/multiple-file.expected.map -------------------------------------------------------------------------------- /test/fixtures/from-to-tests/multiple-file.generated.txt: -------------------------------------------------------------------------------- 1 | Hello 2 | World 3 | -------------------------------------------------------------------------------- /test/fixtures/from-to-tests/multiple-file.input.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/source-list-map/HEAD/test/fixtures/from-to-tests/multiple-file.input.map -------------------------------------------------------------------------------- /test/fixtures/from-to-tests/multiple-mappings-per-line.expected.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/source-list-map/HEAD/test/fixtures/from-to-tests/multiple-mappings-per-line.expected.map -------------------------------------------------------------------------------- /test/fixtures/from-to-tests/multiple-mappings-per-line.generated.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/source-list-map/HEAD/test/fixtures/from-to-tests/multiple-mappings-per-line.generated.txt -------------------------------------------------------------------------------- /test/fixtures/from-to-tests/multiple-mappings-per-line.input.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/source-list-map/HEAD/test/fixtures/from-to-tests/multiple-mappings-per-line.input.map -------------------------------------------------------------------------------- /test/fixtures/from-to-tests/no-source-contents.expected.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/source-list-map/HEAD/test/fixtures/from-to-tests/no-source-contents.expected.map -------------------------------------------------------------------------------- /test/fixtures/from-to-tests/no-source-contents.generated.txt: -------------------------------------------------------------------------------- 1 | Hello 2 | World 3 | -------------------------------------------------------------------------------- /test/fixtures/from-to-tests/no-source-contents.input.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/source-list-map/HEAD/test/fixtures/from-to-tests/no-source-contents.input.map -------------------------------------------------------------------------------- /test/fixtures/from-to-tests/null-source.expected.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/source-list-map/HEAD/test/fixtures/from-to-tests/null-source.expected.map -------------------------------------------------------------------------------- /test/fixtures/from-to-tests/null-source.generated.txt: -------------------------------------------------------------------------------- 1 | Hello 2 | World 3 | -------------------------------------------------------------------------------- /test/fixtures/from-to-tests/null-source.input.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/source-list-map/HEAD/test/fixtures/from-to-tests/null-source.input.map -------------------------------------------------------------------------------- /test/fromStringWithSourceMapTest.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/source-list-map/HEAD/test/fromStringWithSourceMapTest.js -------------------------------------------------------------------------------- /test/mapGeneratedCode.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/source-list-map/HEAD/test/mapGeneratedCode.js -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/webpack/source-list-map/HEAD/yarn.lock --------------------------------------------------------------------------------