8
0

getrealimportpath.js 342 B

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