Skip to content

Commit

Permalink
inlining the one function from mapgenerator we were using to reduce d…
Browse files Browse the repository at this point in the history
…ependencies
  • Loading branch information
geelen authored and mxstbr committed Oct 14, 2016
1 parent 6f802ae commit f624c4f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 272 deletions.
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,8 @@
"buffer": "^5.0.0",
"fbjs": "^0.8.4",
"glamor": "^2.15.5",
"js-base64": "^2.1.9",
"lodash": "^4.15.0",
"react": "^15.3.2",
"source-map": "^0.5.6",
"supports-color": "^3.1.2"
},
"devDependencies": {
Expand Down
10 changes: 5 additions & 5 deletions src/vendor/postcss/lazy-result.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import MapGenerator from './map-generator';
import stringify from './stringify';
import warnOnce from './warn-once';
import Result from './result';
Expand Down Expand Up @@ -347,10 +346,11 @@ class LazyResult {
if ( opts.stringifier ) str = opts.stringifier;
if ( str.stringify ) str = str.stringify;

let map = new MapGenerator(str, this.result.root, this.result.opts);
let data = map.generate();
this.result.css = data[0];
this.result.map = data[1];
let result = '';
str(this.root, i => {
result += i;
});
this.result.css = result;

return this.result;
}
Expand Down
265 changes: 0 additions & 265 deletions src/vendor/postcss/map-generator.js

This file was deleted.

0 comments on commit f624c4f

Please sign in to comment.