diff --git a/bin/generate.js b/bin/generate.js index 201f2181..3fd372b2 100755 --- a/bin/generate.js +++ b/bin/generate.js @@ -34,7 +34,7 @@ if (args.h || args.help || args._.length > 1) { const mainModulePath = args.c || (args._[0] ? process.cwd() : path.resolve(__dirname, '..')); const configResourceUri = 'urn:comunica:default:Runner'; const exportVariableName = 'urn:comunica:default:init/actors#query'; - await compileConfig(mainModulePath, comunicaConfig, configResourceUri, exportVariableName, undefined, true) + await compileConfig(mainModulePath, comunicaConfig, configResourceUri, exportVariableName, true, true) .then(out => { // This instantiation is unneeded (MUST be done for excluding Components.js in browser environnments) out = out.replace('new (require(\'@comunica/runner\').Runner)', ''); diff --git a/src/ldf-client-worker.js b/src/ldf-client-worker.js index 3855af0c..86391b9e 100644 --- a/src/ldf-client-worker.js +++ b/src/ldf-client-worker.js @@ -21,7 +21,7 @@ const workerToWindowHandler = new WorkerToWindowHandler(self); function initEngine(config) { // Create an engine lazily if (!engine) - engine = new QueryEngineBase(require('my-comunica-engine')); + engine = new QueryEngineBase(require('my-comunica-engine')()); // Set up a proxy handler if (config.context.httpProxy)