-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: patch postcss 7 and bundle it in the published npm package (#111)
- Loading branch information
1 parent
8b0da74
commit cab504f
Showing
5 changed files
with
954 additions
and
694 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ node_modules | |
dist | ||
coverage | ||
.idea | ||
third_party |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
diff --git a/node_modules/postcss/lib/previous-map.js b/node_modules/postcss/lib/previous-map.js | ||
index 49f99ad..ef0066d 100644 | ||
--- a/node_modules/postcss/lib/previous-map.js | ||
+++ b/node_modules/postcss/lib/previous-map.js | ||
@@ -86,11 +86,11 @@ var PreviousMap = /*#__PURE__*/function () { | ||
}; | ||
|
||
_proto.getAnnotationURL = function getAnnotationURL(sourceMapString) { | ||
- return sourceMapString.match(/\/\*\s*# sourceMappingURL=(.*)\s*\*\//)[1].trim(); | ||
+ return sourceMapString.match(/\/\*\s*# sourceMappingURL=(.*)\*\//)[1].trim() | ||
}; | ||
|
||
_proto.loadAnnotation = function loadAnnotation(css) { | ||
- var annotations = css.match(/\/\*\s*# sourceMappingURL=(.*)\s*\*\//mg); | ||
+ var annotations = css.match(/\/\*\s*# sourceMappingURL=.*\*\//gm); | ||
|
||
if (annotations && annotations.length > 0) { | ||
// Locate the last sourceMappingURL to avoid picking up |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.