webpack.config.mjs 408 B

123456789101112131415
  1. import * as path from 'path'
  2. import * as url from 'url'
  3. const __dirname = url.fileURLToPath(new URL('.', import.meta.url))
  4. import config from '../webpack.plugin.config.mjs'
  5. export default () => config({
  6. name: 'ssh',
  7. dirname: __dirname,
  8. alias: {
  9. 'cpu-features': false,
  10. './crypto/build/Release/sshcrypto.node': false,
  11. '../build/Release/cpufeatures.node': false,
  12. },
  13. })