react-js-banner 0.7.0 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,11 @@
1
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
2
+
3
+ /**
4
+ * @license React
5
+ * react-jsx-runtime.production.min.js
6
+ *
7
+ * Copyright (c) Facebook, Inc. and its affiliates.
8
+ *
9
+ * This source code is licensed under the MIT license found in the
10
+ * LICENSE file in the root directory of this source tree.
11
+ */
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "react-js-banner",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "React JS Banner component customizable with auto hide option",
5
5
  "main": "build/index.js",
6
6
  "peerDependencies": {},
7
7
  "dependencies": {
8
-
8
+ "source-map-explorer": "^2.5.3"
9
9
  },
10
10
  "scripts": {
11
11
  "start": "webpack --watch",
@@ -25,12 +25,12 @@
25
25
  "eslint": "^6.8.0",
26
26
  "html-loader": "^2.1.2",
27
27
  "html-webpack-plugin": "^5.3.1",
28
+ "prop-types": "^15.8.1",
28
29
  "react": "^18.2.0",
29
30
  "react-dom": "^18.2.0",
30
31
  "style-loader": "^3.3.4",
31
32
  "webpack": "^5.91.0",
32
- "webpack-cli": "^5.1.4",
33
- "prop-types": "^15.8.1"
33
+ "webpack-cli": "^5.1.4"
34
34
  },
35
35
  "repository": {
36
36
  "type": "git",
package/webpack.config.js CHANGED
@@ -1,41 +1,27 @@
1
- const path = require('path');
1
+ var path = require("path");
2
2
 
3
3
  module.exports = {
4
- entry: './src/index.js',
5
- mode: 'development',
4
+ mode: "production",
5
+ entry: "./src/index.js",
6
6
  output: {
7
- path: path.resolve(__dirname, 'build'),
8
- filename: 'index.js',
9
- libraryTarget: 'commonjs2',
7
+ path: path.resolve("build"),
8
+ filename: "index.js",
9
+ libraryTarget: "commonjs2"
10
10
  },
11
11
  module: {
12
12
  rules: [
13
+ { test: /\.js$/, exclude: /node_modules/, loader: "babel-loader" },
13
14
  {
14
- test: /\.js$/,
15
- include: path.resolve(__dirname, 'src'),
16
- exclude: /(node_modules|bower_components|build)/,
17
- use: {
18
- loader: 'babel-loader'
19
- }
20
- },
21
- {
22
- test:/\.html$/i,
23
- use: [
24
- {
25
- loader: 'html-loader'
26
- }
27
- ]
15
+ test: /\.css$/,
16
+ loader: "style-loader"
28
17
  },
29
18
  {
30
19
  test: /\.css$/,
31
- include: path.resolve(__dirname, 'src'),
32
- exclude: /(node_modules|bower_components|build)/,
33
- use:['style-loader','css-loader']
20
+ loader: "css-loader"
34
21
  }
35
22
  ]
36
23
  },
37
- resolve: {
38
- extensions: [".js",".jsx", '.json']
39
- },
40
- devtool: 'inline-source-map'
24
+ externals: {
25
+ react: "react"
26
+ }
41
27
  };
package/build/index.jsx DELETED
@@ -1,25 +0,0 @@
1
- /******/ (() => { // webpackBootstrap
2
- /******/ var __webpack_modules__ = ({
3
-
4
- /***/ "./src/index.jsx":
5
- /*!***********************!*\
6
- !*** ./src/index.jsx ***!
7
- \***********************/
8
- /***/ (() => {
9
-
10
- throw new Error("Module parse failed: Unexpected token (42:8)\nYou may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders\n| if (this.props.image && this.props.imageClass){\n| return(\n> <img \n| src={this.props.image} \n| className={this.props.imageClass}");
11
-
12
- /***/ })
13
-
14
- /******/ });
15
- /************************************************************************/
16
- /******/
17
- /******/ // startup
18
- /******/ // Load entry module and return exports
19
- /******/ // This entry module doesn't tell about it's top-level declarations so it can't be inlined
20
- /******/ var __webpack_exports__ = {};
21
- /******/ __webpack_modules__["./src/index.jsx"]();
22
- /******/ module.exports = __webpack_exports__;
23
- /******/
24
- /******/ })()
25
- ;