Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
const path = require('path');
module.exports = {
entry: {
app: [
output: {
path: path.resolve(__dirname, 'build'),
filename: 'app.bundle.js'
module: {
loaders: [{
// Only run `.js` and `.jsx` files through Babel
test: /\.js?$/,
//skip the files in the node_modules directory
exclude: /node_modules/,
loader: 'babel-loader',
// Options to configure the babel. here we have set up the preset. this can be replaced with .babelrc file
query: {
presets: ['env']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.