webpack.config.base.js 452 B

123456789101112131415161718192021222324
  1. module.exports = {
  2. mode: "development",
  3. module: {
  4. rules: [
  5. {
  6. test: /(\.js|\.jsx)$/,
  7. use: { loader: "babel-loader" },
  8. exclude: /node_modules/
  9. },
  10. {
  11. test: /\.ts(x?)$/,
  12. use: ["babel-loader", "ts-loader"],
  13. exclude: /node_modules/
  14. }
  15. ]
  16. },
  17. output: {
  18. library: "ReactAce",
  19. libraryTarget: "umd"
  20. },
  21. resolve: {
  22. extensions: [".jsx", ".js", ".tsx", ".ts"]
  23. }
  24. };