load__cjs.js 314 B

1234567891011121314
  1. /**
  2. * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. /* global require */
  6. export default function load( modulePath ) {
  7. modulePath = '../' + modulePath;
  8. return new Promise( ( resolve ) => {
  9. resolve( require( modulePath ) );
  10. } );
  11. }