Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
module.exports = {
mode: process.env.NODE_ENV || "development",
entry: {
main: "./src/js/main.js"
},
output: {
filename: "[name].js"
},
module: {
rules: [
{
test: /\.(js|jsx)$/,
loader: "babel-loader",
options: {
presets: ["@babel/preset-env", "@babel/preset-react"]
}
}
]
},
resolve: {
extensions: [".js", ".jsx"]
}
};
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.