Skip to content

Commit

Permalink
issue reworkcss#139 catch error if fs module not found - as when ru…
Browse files Browse the repository at this point in the history
…nning in a browser
  • Loading branch information
IanGrainger committed Oct 25, 2020
1 parent 838d071 commit 6e40800
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/stringify/source-map-support.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
var SourceMap = require('source-map').SourceMapGenerator;
var SourceMapConsumer = require('source-map').SourceMapConsumer;
var sourceMapResolve = require('source-map-resolve');
var fs = require('fs');
try {
var fs = require("fs");
} catch (e) {
var fs = null;
}
var path = require('path');

/**
Expand Down

0 comments on commit 6e40800

Please sign in to comment.