Skip to content

Commit 407264f

Browse files
authored
Create main.ts
- Changed how bootstrap.js is imported - Changed `vite/dynamic-import-polyfill` to `dynamic-import-polyfill`
1 parent ef2dd10 commit 407264f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

resources/scripts/main.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
*/
1111

1212
// Import modules...
13-
import * as JsBootstrap from "@/bootstrap.js"
14-
import 'vite/dynamic-import-polyfill';
13+
import 'dynamic-import-polyfill';
1514
import "~/css/app.css"
1615
import { createApp, h } from 'vue';
1716
import { createInertiaApp } from '@inertiajs/inertia-vue3';
@@ -25,6 +24,9 @@ import 'flatpickr/dist/flatpickr.css';
2524
import { emitter } from "@/JigComponents/eventHub.js";
2625
import { Link } from "@inertiajs/inertia-vue3"
2726

27+
const JsBootstrap = import("@/bootstrap");
28+
29+
2830
dayjs.extend(relativeTime);
2931
dayjs.extend(advancedFormat)
3032

0 commit comments

Comments
 (0)