Skip to content

Commit e94ba23

Browse files
authored
Attempt to fix reported webpack issues (#6)
* Attempt to fix reported webpack issues * Update package-lock.json * Update README.md
1 parent acb2126 commit e94ba23

File tree

8 files changed

+22
-12
lines changed

8 files changed

+22
-12
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Bs5Utils - A JavaScript utility package for Bootstrap 5 components
22

3-
---
4-
53
A simple package to make the usage of various components within Bootstrap 5 easier to use.
64

75
If this package has helped you, and you're feeling particularly generous:

dist/js/Bs5Utils.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bs5-utils",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "A JavaScript utility package for Bootstrap 5 components.",
55
"main": "src/js/Bs5Utils.js",
66
"repository": {
@@ -17,9 +17,7 @@
1717
"url": "https://github.com/Script47/bs5-utils/issues"
1818
},
1919
"homepage": "https://github.com/Script47/bs5-utils",
20-
"scripts": {
21-
"build": "webpack --config webpack.config.js"
22-
},
20+
"scripts": {},
2321
"dependencies": {
2422
"bootstrap": ">=5.0"
2523
},

src/js/Bs5Utils.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
import Toast from "./components/Toast";
2+
import Snack from "./components/Snack";
3+
import Modal from "./components/Modal";
4+
15
class Bs5Utils {
26
/**
37
* Default config options
@@ -105,4 +109,8 @@ class Bs5Utils {
105109

106110
Bs5Utils.defaults.styles[key] = styles;
107111
}
108-
}
112+
}
113+
114+
export {
115+
Bs5Utils as default
116+
};

src/js/components/Modal.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
class Modal {
1+
import Bs5Utils from "../Bs5Utils";
2+
3+
export default class Modal {
24
/**
35
* A counter for the Modals
46
* @type {number}

src/js/components/Snack.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
class Snack {
1+
import Bs5Utils from "../Bs5Utils";
2+
3+
export default class Snack {
24
/**
35
* A counter for the Snacks
46
* @type {number}

src/js/components/Toast.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
class Toast {
1+
import Bs5Utils from "../Bs5Utils";
2+
3+
export default class Toast {
24
/**
35
* A counter for the Toasts
46
* @type {number}

0 commit comments

Comments
 (0)