Skip to content

Commit

Permalink
fix(brace): use acequire instead of require
Browse files Browse the repository at this point in the history
Brace uses ace.acequire instead of ace.require
  • Loading branch information
JackuB committed Jan 17, 2018
1 parent 8a1ede8 commit 4159e72
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import DiffMatchPatch from 'diff-match-patch';

import getCurve from './visuals/getCurve';

const { Range } = ace.require('ace/range');
const requireFunc = (ace.acequire || ace.require);

const { Range } = requireFunc('ace/range');

const C = {
DIFF_EQUAL: 0,
Expand Down

0 comments on commit 4159e72

Please sign in to comment.