Skip to content

Commit

Permalink
fix path issue with workerInjector
Browse files Browse the repository at this point in the history
  • Loading branch information
ujjwalguptaofficial committed May 25, 2021
1 parent ef4bcf5 commit 8e0c30e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/worker_injector/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ module.exports = {
setup(connection, param) {
connection['$worker'] = (() => {
if (process.env.NODE_ENV === 'production') {
return require('./jsstore.worker.commonjs2.min.js');
return require('../jsstore.worker.commonjs2.min.js');
}
else {
module.exports = require('./jsstore.worker.commonjs2.js');
return require('../jsstore.worker.commonjs2.js');
}
})();
connection.initQueryManager_();
Expand Down

0 comments on commit 8e0c30e

Please sign in to comment.