Andrey Sitnik
46c486f406
Speed up source map annotation cleaning by moving from RegExp
2026-03-02 22:06:42 +00:00
Andrey Sitnik
19afb318d6
Sort source code and fix ESLint
2024-08-31 23:26:27 +02:00
Eng Zer Jun
f16150a5f2
Replace indexOf === 0 with startsWith
...
It is more readable to call `startsWith` than to call `indexOf` and
compare the result with zero to determine whether a string starts with a
given prefix.
`startsWith` is also more efficient as it only compares at the beginning
of the string, while `indexOf` searches the entire string.
Signed-off-by: Eng Zer Jun <[email protected] >
2024-08-06 21:41:58 +08:00
bluwy
b326269557
Refactor regex usage
2024-07-26 12:20:20 +08:00
Andrey Sitnik
517d2d80a6
Fix another broken prev source map issue
2024-03-19 17:22:22 +01:00
Andrey Sitnik
50263abc36
Use new feature to prevent errors on broken map
2024-03-17 21:07:04 +01:00
dmitry
ba1913d3a5
replaced the redundant map function and removed the unused variable
2024-01-31 19:47:28 +04:00
Romain Menke
862beaccec
fix
2023-12-30 19:32:52 +01:00
Romain Menke
45296994cd
apply suggestions from code review
2023-09-16 22:42:46 +02:00
5d7096c2c7
Update lib/map-generator.js
...
Co-authored-by: Andrey Sitnik <[email protected] >
2023-09-16 22:41:08 +02:00
Romain Menke
c6028c1db2
improve sourcemap performance
2023-09-16 22:31:31 +02:00
Andrey Sitnik
89b7f7ac78
Update dependencies and code style
2023-07-06 13:38:48 +02:00
Andrey Sitnik
c34476d4a0
Fix childless at-rule map generation
2022-12-11 17:33:17 +01:00
Rene Haas
493ce4af31
add toFileUrl function
2022-10-12 09:29:25 +02:00
Rene Haas
b3ec241b89
improvement
2022-10-12 09:24:34 +02:00
Rene Haas
6b2709bd03
absolute sourcemaps have source content
2022-10-12 08:59:50 +02:00
Andrey Sitnik
e9f1f2805c
Fix absolute paths support in map with plugins
2021-11-27 15:47:40 +01:00
Andrey Sitnik
914df14b13
Make NoWorkResult safer
2021-11-26 20:18:41 +01:00
Andrey Sitnik
e5d05b678d
Disable map coverage because of c8 control comment instability
2021-11-26 19:37:45 +01:00
Andrey Sitnik
809130770e
Fix NoWorkResult and prev map
2021-11-26 19:31:44 +01:00
Andrey Sitnik
0635c711af
Clean up code
2021-11-26 18:52:25 +01:00
Andrey Sitnik
7d880ef35a
Hack to fix source map in NoWorkResult
2021-11-26 16:42:24 +01:00
Andrey Kim
14695da9d4
fix unit script and coverage
2021-11-21 00:50:11 +03:00
Andrey Kim
afe45db6e8
Merge branch 'main' of https://github.com/postcss/postcss into main
2021-11-17 23:55:23 +03:00
Bogdan Dolin
86836e128c
Rework GenerateSimpleMap clean annotation regex
2021-11-17 07:10:11 +03:00
Bogdan Dolin
6c409cb738
add single mapping instead of mapping for every line
2021-11-16 16:22:55 +03:00
Andrey Kim
c5059e1501
Convert istanbul ignores to c8
2021-11-15 23:10:13 +03:00
bogdan0083
8c20635b0f
Change clear annotation regex
2021-11-05 11:26:47 +07:00
bogdan0083
12b239c60f
Add generateSimpleMap method to map-generator
2021-11-05 11:07:49 +07:00
Andrey Sitnik
7014f712cf
Fix merge
2021-05-17 08:52:32 -04:00
Valentin Semirulnik and Andrey Sitnik
6b07218c74
move from source-map to source-map-js
2021-05-17 08:50:13 -04:00
Barak Igal
2840ce2d8d
remove source-map from browser build
2021-05-05 12:47:14 +03:00
Barak Igal
9da797eb41
Add covrage ignore on error paths
2021-04-11 12:02:45 +03:00
87502e8429
Apply suggestions from code review
...
Co-authored-by: Andrey Sitnik <[email protected] >
2021-04-11 12:00:26 +03:00
Barak Igal
bb1fd0cf0a
add error for sourcePath
2021-04-10 20:56:24 +03:00
Barak Igal
8a9965aa17
disable url based features
2021-04-10 13:37:54 +03:00
Andrey Sitnik
843ab11b6e
Add Prettier
2021-03-11 19:11:37 -05:00
Matt Jones
01e0bc1e80
Fix formatting
2021-03-09 13:32:41 +11:00
Matt Jones
c87ed2c8f9
Handle empty path object in browser builds
2021-03-09 13:21:20 +11:00
Andrey Sitnik
dd9c5f7951
Reduce GC calls on source map generation
2021-01-12 06:07:27 -05:00
Andrey Sitnik
0048657b13
Add "use strict" because it may effect on tokenizer performance
2020-09-08 01:46:46 -04:00
Andrey Sitnik
c3b3015661
Improve test coverage
2020-08-04 17:37:21 -07:00
Andrey Sitnik
96156e43c5
Fix Windows support
2020-07-28 13:56:08 -07:00
Andrey Sitnik
82663d7856
Work with sources as URL
2020-07-22 20:13:50 -07:00
Andrey Sitnik
baf31e49b9
Use URLs in map sources
2020-07-22 19:27:09 -07:00
Andrey Sitnik
6de8e0d706
Add opts.map.absolute
2020-07-20 12:36:30 -07:00
Andrey Sitnik
dbc8ee3420
Allow to set function to map.annotation
2020-07-12 22:19:13 -07:00
Andrey Sitnik
fa6b5f9981
Add PrettierX
2020-07-06 17:24:57 -07:00
Andrey Sitnik
288d2ffdb6
Clean up code
2020-06-21 19:13:53 -04:00
Andrey Sitnik
04b816cbde
Remove Babel
2020-06-21 19:13:52 -04:00