UNPKG

hbp-react-ui

Version:

A library of useful user-interface components built with React and MobX

38 lines (31 loc) 940 B
// Pull in dependencies var path = require('path'); var webpack = require('webpack'); module.exports = { context: __dirname, module: { loaders: [ // A regexp that tells webpack use the following loaders on all .js and .jsx files { test: /\.jsx?$/, // Ignore these folders exclude: [ path.resolve(__dirname, 'dist'), path.resolve(__dirname, 'node_modules') ], // Use the babel loader loader: 'babel-loader', query: { // Specify that we will be dealing with React code // presets: ['react'] // Now in .babelrc } } ] }, plugins: [ ], resolve: { // Extensions that should be used to resolve modules extensions: ['.js', '.jsx'] }, };