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.
 
 
 
 

45 lines
1.1 KiB

  1. module.exports = {
  2. output: {
  3. library: 'Scrollbar',
  4. libraryTarget: 'umd'
  5. },
  6. externals: {
  7. react: {
  8. root: 'React',
  9. commonjs: 'react',
  10. commonjs2: 'react',
  11. amd: 'react'
  12. },
  13. 'prop-types': {
  14. root: 'PropTypes',
  15. commonjs: 'prop-types',
  16. commonjs2: 'prop-types',
  17. amd: 'prop-types'
  18. },
  19. 'smooth-scrollbar': {
  20. root: 'Scrollbar',
  21. commonjs: 'smooth-scrollbar',
  22. commonjs2: 'smooth-scrollbar',
  23. amd: 'smooth-scrollbar'
  24. }
  25. },
  26. module: {
  27. preLoaders: [{
  28. test: /\.jsx?$/,
  29. exclude: /(node_modules|bower_components)/,
  30. loader: 'eslint-loader'
  31. }],
  32. loaders: [{
  33. test: /\.jsx?$/,
  34. exclude: /(node_modules|bower_components)/,
  35. loader: 'babel-loader',
  36. query: {
  37. presets: ['es2015', 'stage-0', 'react'],
  38. plugins: [
  39. 'add-module-exports',
  40. ]
  41. }
  42. }]
  43. }
  44. };