setPublicPath.js 428 B

123456789101112131415
  1. // This file is imported into lib/wc client bundles.
  2. if (typeof window !== 'undefined') {
  3. if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {
  4. require('current-script-polyfill')
  5. }
  6. var i
  7. if ((i = window.document.currentScript) && (i = i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))) {
  8. __webpack_public_path__ = i[1] // eslint-disable-line
  9. }
  10. }
  11. // Indicate to webpack that this file can be concatenated
  12. export default null