Skip to content

Commit

Permalink
Fix dev and dev-prod scripts not working correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Nov 7, 2024
1 parent d8af230 commit 3521311
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)', '');
Expand Down
2 changes: 1 addition & 1 deletion src/ldf-client-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3521311

Please sign in to comment.