web 3d图形渲染器
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
557 B

  1. // @ts-check
  2. /**
  3. * To use the available webpack core api
  4. * we have to use different child compilers
  5. * depending on the used webpack version
  6. */
  7. const webpackMajorVersion = Number(require('webpack/package.json').version.split('.')[0]);
  8. // Typescript hack to test only the webpack 4 code
  9. /** @type {import('./webpack4/file-watcher-api')} */
  10. module.exports = webpackMajorVersion === 4
  11. ? require('./webpack4/file-watcher-api.js')
  12. // Hack to ignore './webpack5/file-watcher-api.js' from typescript:
  13. : require('./webpack' + 5 + '/file-watcher-api.js');