Skip to content

Commit 2accbad

Browse files
authored
Use process shim (#43)
This removes the need for a polyfill during webpacking.
1 parent 8487e00 commit 2accbad

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

lib/RdfDereferencer.ts

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import {IActorDereferenceRdfOutput} from "@comunica/bus-dereference-rdf";
22
import {join} from "path";
33
import * as RDF from "@rdfjs/types";
44
import {IDereferenceOptions, RdfDereferencerBase} from "./RdfDereferencerBase";
5+
const process = require("process/");
56

67
/**
78
* An RdfDerefencer can dereference URLs to RDF streams, using any RDF serialization.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@
122122
"@comunica/mediator-number": "^2.0.1",
123123
"@comunica/mediator-race": "^2.0.1",
124124
"@rdfjs/types": "*",
125+
"process": "^0.11.10",
125126
"rdf-string": "^1.6.0",
126127
"stream-to-string": "^1.2.0"
127128
},

tslint.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"member-ordering": [true, {
2323
"order": "fields-first"
2424
}],
25-
"forin": false
25+
"forin": false,
26+
"no-var-requires": false
2627
},
2728
"rulesDirectory": []
2829
}

0 commit comments

Comments
 (0)