Skip to content

Commit 1643633

Browse files
committed
fix: re-export Routing by default
1 parent d2c1e05 commit 1643633

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

Resources/js/router.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,3 +346,5 @@ export class Router {
346346
}
347347

348348
export const Routing = new Router();
349+
350+
export default Routing;

Resources/public/js/router.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
Object.defineProperty(exports, "__esModule", {
2323
value: true
2424
});
25-
exports.Routing = exports.Router = void 0;
25+
exports["default"] = exports.Routing = exports.Router = void 0;
2626

2727
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2828

@@ -357,6 +357,8 @@ var Router = /*#__PURE__*/function () {
357357
exports.Router = Router;
358358
var Routing = new Router();
359359
exports.Routing = Routing;
360+
var _default = Routing;
361+
exports["default"] = _default;
360362

361363
return { Router: Router, Routing: Routing };
362364
}));

Resources/public/js/router.min.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.

Resources/ts/router.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,4 @@ export declare class Router {
8585
static encodeQueryComponent(value: string): string;
8686
}
8787
export declare const Routing: Router;
88+
export default Routing;

0 commit comments

Comments
 (0)