mirror of
https://github.com/markmanx/isoflow.git
synced 2025-02-08 20:32:07 +00:00
38 lines
683 B
JavaScript
38 lines
683 B
JavaScript
|
const path = require("path");
|
||
|
|
||
|
module.exports = {
|
||
|
mode: "production",
|
||
|
entry: "./src/App.tsx",
|
||
|
output: {
|
||
|
path: path.resolve(__dirname, "dist"),
|
||
|
filename: "index.js",
|
||
|
libraryTarget: "commonjs2",
|
||
|
},
|
||
|
externals: {
|
||
|
react: {
|
||
|
commonjs: "react",
|
||
|
commonjs2: "react",
|
||
|
amd: "React",
|
||
|
root: "React",
|
||
|
},
|
||
|
"react-dom": {
|
||
|
commonjs: "react-dom",
|
||
|
commonjs2: "react-dom",
|
||
|
amd: "ReactDOM",
|
||
|
root: "ReactDOM",
|
||
|
},
|
||
|
},
|
||
|
module: {
|
||
|
rules: [
|
||
|
{
|
||
|
test: /\.(ts|tsx)$/,
|
||
|
use: "ts-loader",
|
||
|
exclude: /node_modules/,
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
resolve: {
|
||
|
extensions: [".tsx", ".ts", ".js"],
|
||
|
},
|
||
|
};
|