Skip to content

Instantly share code, notes, and snippets.

@carlosmarte
Last active May 27, 2018 08:26
Show Gist options
  • Save carlosmarte/e6c0e644226b1319fb236e5b645be4f1 to your computer and use it in GitHub Desktop.
Save carlosmarte/e6c0e644226b1319fb236e5b645be4f1 to your computer and use it in GitHub Desktop.
post-webpack-standard-jsx-loader.js
var path = require('path');
var webpack = require('webpack');
module.exports = {
entry: './main.js',
output: { path: __dirname, filename: 'bundle.js' },
module: {
rules: [
{
test: /\.js$/,
exclude: /(node_modules|bower_components)/,
use: {
loader: 'babel-loader',
options: {
presets: ['@babel/preset-env']
}
}
}
]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment