strip-import-path-params.js 240 B

12345678910
  1. /**
  2. * @author Toru Nagashima
  3. * See LICENSE file in root directory for full license.
  4. */
  5. "use strict"
  6. module.exports = function stripImportPathParams(path) {
  7. const i = path.indexOf("!")
  8. return i === -1 ? path : path.slice(0, i)
  9. }