From cca06e91891d03676c006204ad287bd026c610a4 Mon Sep 17 00:00:00 2001 From: Shibi Date: Mon, 27 May 2024 00:23:52 +0530 Subject: [PATCH] removed webpack.config --- packages/react/package.json | 4 --- packages/react/webpack.config.js | 44 -------------------------------- 2 files changed, 48 deletions(-) delete mode 100644 packages/react/webpack.config.js diff --git a/packages/react/package.json b/packages/react/package.json index f594518..778f3b3 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -44,10 +44,6 @@ "React", "JavaScript" ], - "exports": { - ".": "./dist/main.js", - "./examples": "./src/examples/index.js" - }, "dependencies": { "@declarative-gridstack/core": "workspace:^", "lodash": "^4.17.21" diff --git a/packages/react/webpack.config.js b/packages/react/webpack.config.js deleted file mode 100644 index 88973b6..0000000 --- a/packages/react/webpack.config.js +++ /dev/null @@ -1,44 +0,0 @@ -const path = require("path"); - -module.exports = { - mode: "production", - output: { - path: path.resolve(__dirname, "./dist"), - filename: "main.js", - library: "@declarative-gridstack/react", - libraryTarget: "umd", - }, - devServer: { - devMiddleware: { - writeToDisk: true, - }, - }, - entry: "./src/index.js", - externals: { - react: "react", - "react-dom": "react-dom", - "@declarative-gridstack/react": "@declarative-gridstack/react", - }, - module: { - rules: [ - { - test: /\.?js|jsx$/, - exclude: /node_modules/, - use: { - loader: "babel-loader", - options: { - presets: ["@babel/preset-env", "@babel/preset-react"], - }, - }, - }, - { - test: /\.css$/i, - use: ["style-loader", "css-loader"], // Gridstack core needs to load css :) - }, - ], - }, - resolve: { - extensions: [".jsx", ".js"], - }, - devtool: false, -};