Newer
Older
const webpack = require("webpack");
module.exports = {
resolve: {
extensions: [".js", ".ts", ".tsx"],
},
module: {
rules: [
{
test: [/\.tsx?$/],
loader: "ts-loader",
},
],
},
plugins: [
new webpack.DefinePlugin({
"process.env": {}, // react-admin bundles node code
}),
],