8
0

load__cjs.js 329 B

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