build for version
This commit is contained in:
		
							parent
							
								
									f6f5eab087
								
							
						
					
					
						commit
						8ea30cb9a0
					
				
							
								
								
									
										4
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							@ -78,7 +78,7 @@ var fireapp =
 | 
			
		||||
/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
 | 
			
		||||
/******/
 | 
			
		||||
/******/ 	// __webpack_public_path__
 | 
			
		||||
/******/ 	__webpack_require__.p = "/fireapp/1.3.0/";
 | 
			
		||||
/******/ 	__webpack_require__.p = "/fireapp/1.4.0/";
 | 
			
		||||
/******/
 | 
			
		||||
/******/
 | 
			
		||||
/******/ 	// Load entry module and return exports
 | 
			
		||||
@ -245,7 +245,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nclass
 | 
			
		||||
/***/ (function(module, exports, __webpack_require__) {
 | 
			
		||||
 | 
			
		||||
"use strict";
 | 
			
		||||
eval("\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__webpack_require__(/*! systemjs/dist/system */ \"./node_modules/systemjs/dist/system.js\");\n__webpack_require__(/*! systemjs/dist/extras/amd */ \"./node_modules/systemjs/dist/extras/amd.js\");\n__webpack_require__(/*! systemjs/dist/extras/named-register */ \"./node_modules/systemjs/dist/extras/named-register.js\");\n__webpack_require__(/*! systemjs/dist/extras/named-exports */ \"./node_modules/systemjs/dist/extras/named-exports.js\");\n__webpack_require__(/*! systemjs/dist/extras/transform */ \"./node_modules/systemjs/dist/extras/transform.js\");\nconst history_1 = __webpack_require__(/*! history */ \"./node_modules/history/esm/history.js\");\nconst apps_1 = __webpack_require__(/*! ./apps */ \"./src/apps.ts\");\nconst virtual_module_1 = __webpack_require__(/*! ./virtual-module */ \"./src/virtual-module.ts\");\nconst systemJSImport = (requestUrl) => __awaiter(void 0, void 0, void 0, function* () {\n    const { default: component, mount, unmount } = yield System.import(requestUrl);\n    return { component, mount, unmount };\n});\nexports.default = ({ apps: rawApps, navigations, config }) => __awaiter(void 0, void 0, void 0, function* () {\n    virtual_module_1.defineVirtualModule({ navigations, config });\n    const apps = new apps_1.Apps(rawApps);\n    const history = history_1.createBrowserHistory();\n    let prevPathname = window.location.pathname;\n    function getApp() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const app = apps.findApp(history.location.pathname);\n            const publicPath = `/${app.name}/${app.version}`;\n            __webpack_require__.p = `${config.baseUrl}${publicPath}${__webpack_require__.p}`;\n            const appPath = `${config.baseUrl}${publicPath}/index.js`;\n            const { component, mount, unmount } = yield systemJSImport(appPath);\n            return { component, mount, unmount };\n        });\n    }\n    let { component, mount, unmount } = yield getApp();\n    mount(component.default);\n    history.listen((location) => __awaiter(void 0, void 0, void 0, function* () {\n        if (location.pathname !== prevPathname) {\n            prevPathname = location.pathname;\n            unmount();\n            const nextApp = yield getApp();\n            nextApp.mount(nextApp.component.default);\n            unmount = nextApp.unmount;\n        }\n    }));\n});\n\n\n//# sourceURL=webpack://fireapp/./src/main.ts?");
 | 
			
		||||
eval("\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n    return new (P || (P = Promise))(function (resolve, reject) {\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\n    });\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__webpack_require__(/*! systemjs/dist/system */ \"./node_modules/systemjs/dist/system.js\");\n__webpack_require__(/*! systemjs/dist/extras/amd */ \"./node_modules/systemjs/dist/extras/amd.js\");\n__webpack_require__(/*! systemjs/dist/extras/named-register */ \"./node_modules/systemjs/dist/extras/named-register.js\");\n__webpack_require__(/*! systemjs/dist/extras/named-exports */ \"./node_modules/systemjs/dist/extras/named-exports.js\");\n__webpack_require__(/*! systemjs/dist/extras/transform */ \"./node_modules/systemjs/dist/extras/transform.js\");\nconst history_1 = __webpack_require__(/*! history */ \"./node_modules/history/esm/history.js\");\nconst apps_1 = __webpack_require__(/*! ./apps */ \"./src/apps.ts\");\nconst virtual_module_1 = __webpack_require__(/*! ./virtual-module */ \"./src/virtual-module.ts\");\nconst systemJSImport = (requestUrl) => __awaiter(void 0, void 0, void 0, function* () {\n    const { default: component, mount, unmount } = yield System.import(requestUrl);\n    return { component, mount, unmount };\n});\nexports.default = ({ apps: rawApps, navigations, config, features }) => __awaiter(void 0, void 0, void 0, function* () {\n    virtual_module_1.defineVirtualModule({ navigations, config, features });\n    const apps = new apps_1.Apps(rawApps);\n    const history = history_1.createBrowserHistory();\n    let prevPathname = window.location.pathname;\n    function getApp() {\n        return __awaiter(this, void 0, void 0, function* () {\n            const app = apps.findApp(history.location.pathname);\n            const publicPath = `/${app.name}/${app.version}`;\n            __webpack_require__.p = `${config.baseUrl}${publicPath}${__webpack_require__.p}`;\n            const appPath = `${config.baseUrl}${publicPath}/index.js`;\n            const { component, mount, unmount } = yield systemJSImport(appPath);\n            return { component, mount, unmount };\n        });\n    }\n    let { component, mount, unmount } = yield getApp();\n    mount(component.default);\n    history.listen((location) => __awaiter(void 0, void 0, void 0, function* () {\n        if (location.pathname !== prevPathname) {\n            prevPathname = location.pathname;\n            unmount();\n            const nextApp = yield getApp();\n            nextApp.mount(nextApp.component.default);\n            unmount = nextApp.unmount;\n        }\n    }));\n});\n\n\n//# sourceURL=webpack://fireapp/./src/main.ts?");
 | 
			
		||||
 | 
			
		||||
/***/ }),
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user