getrealimportpath.js 292 B

12345678910
  1. /**
  2. * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. /* eslint-env node */
  6. module.exports = function getRealImportPath( modulePath ) {
  7. return modulePath.replace( /^([^/]+)\//, '@ckeditor/ckeditor5-$1/src/' );
  8. };