Skip to content

Commit 15e200c

Browse files
committed
updated to esm
1 parent beaf4b2 commit 15e200c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

js/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ import 'bootstrap-icons/font/bootstrap-icons.css';
2626
import '../css/style.css';
2727

2828
// Exports
29-
export default {
29+
export {
3030
Model, View, Controller, Provider, Error, Emitter, List, Nav, Toast, Button, Form,
3131
};

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "@djthorpe/js-framework",
3-
"version": "0.0.32",
3+
"version": "0.0.33",
44
"description": "Javascript Framework",
5-
"main": "dist/js/index.js",
5+
"main": "dist/index.js",
66
"scripts": {
77
"all": "npm-run-all lint esbuild docs",
88
"build": "webpack --config config/webpack.config.js",
9-
"esbuild": "rm -fr dist && esbuild js/index.js --bundle --sourcemap --outdir=dist --loader:.woff=file --loader:.woff2=file",
9+
"esbuild": "rm -fr dist && esbuild js/index.js --format=esm --minify --bundle --sourcemap --outdir=dist --loader:.woff=file --loader:.woff2=file",
1010
"lint": "eslint js",
1111
"docs": "jsdoc -c config/jsdoc.config.json"
1212
},

0 commit comments

Comments
 (0)