Browse Source

Merge pull request #98 from trevorwhealy/error_create_not_found

fix(webpack/error): create not found error when compiled with webpack
pull/246/head
jeromewu 6 years ago committed by GitHub
parent
commit
281b59fe26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/index.js

2
src/index.js

@ -3,7 +3,7 @@ const circularize = require('./common/circularize.js')
const TesseractJob = require('./common/job'); const TesseractJob = require('./common/job');
const version = require('../package.json').version; const version = require('../package.json').version;
function create(workerOptions = {}){ const create = function(workerOptions = {}){
var worker = new TesseractWorker(Object.assign({}, adapter.defaultOptions, workerOptions)); var worker = new TesseractWorker(Object.assign({}, adapter.defaultOptions, workerOptions));
worker.create = create; worker.create = create;
worker.version = version; worker.version = version;

Loading…
Cancel
Save