Skip to content

Instantly share code, notes, and snippets.

@drewdaemon
Created September 18, 2019 02:15
Show Gist options
  • Save drewdaemon/6bf8392c448cd9e9196f7416bbfec0c8 to your computer and use it in GitHub Desktop.
Save drewdaemon/6bf8392c448cd9e9196f7416bbfec0c8 to your computer and use it in GitHub Desktop.
module.exports = {
mode: 'production',
entry: {
popup: './src/popup.jsx',
},
output: {
filename: '[name].js',
path: __dirname + '/dist'
},
module: {
rules: [
{
test: /\.jsx?$/,
exclude: /(node_modules)/,
use: {
loader: 'babel-loader',
options: {
presets: ['@babel/preset-env'],
plugins: [
["@babel/plugin-transform-react-jsx", { "pragma":"h" }]
]
}
}
}
]
},
resolve: {
extensions: ['.js', '.jsx']
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment