Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ac1e2a4df3 | |||
| 0636ce1ff2 | |||
| 47839a963c | |||
| 3683151cb2 | |||
| 033865105f | |||
| 556c31c56c | |||
| a008842899 | |||
| 84cf7b72a0 | |||
| 03eec8c836 |
Vendored
+8
-8
File diff suppressed because one or more lines are too long
+3
-3
@@ -1,15 +1,15 @@
|
|||||||
{
|
{
|
||||||
"name": "@ijl/fire.app",
|
"name": "@ijl/fire.app",
|
||||||
"version": "1.0.2",
|
"version": "1.1.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "dist/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "nodemon ./stubs/server.js",
|
"start": "nodemon ./stubs/server.js",
|
||||||
"build": "webpack --mode development",
|
"build": "webpack --mode development",
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
},
|
},
|
||||||
"author": "innoavvlasov@gmail.com",
|
"author": "innoavvlasov@gmail.com",
|
||||||
"license": "MIT",
|
"license": "ISC",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "13.7.0",
|
"@types/node": "13.7.0",
|
||||||
"@types/systemjs": "6.1.0",
|
"@types/systemjs": "6.1.0",
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
import "systemjs/dist/s";
|
import "systemjs/dist/system";
|
||||||
import "systemjs/dist/extras/amd";
|
import "systemjs/dist/extras/amd";
|
||||||
import "systemjs/dist/extras/named-register";
|
import "systemjs/dist/extras/named-register";
|
||||||
import "systemjs/dist/extras/named-exports";
|
import "systemjs/dist/extras/named-exports";
|
||||||
|
|||||||
@@ -1,12 +1,15 @@
|
|||||||
export const defineVirtualModule = (params) => {
|
|
||||||
const virtualModule = createVirtualModule(params)
|
|
||||||
// @ts-ignore
|
|
||||||
global.define('root.scope.env', [], virtualModule)
|
|
||||||
}
|
|
||||||
|
|
||||||
const createVirtualModule = ({ config, navigations }) => ({
|
const createVirtualModule = ({ config, navigations }) => ({
|
||||||
getConfig: () => config,
|
getConfig: () => config,
|
||||||
getConfigValue: (key) => config[key],
|
getConfigValue: (key) => config[key],
|
||||||
getNavigations: () => navigations,
|
getNavigations: () => navigations,
|
||||||
getNavigationsValue: (key) => navigations[key],
|
getNavigationsValue: (key) => navigations[key],
|
||||||
})
|
})
|
||||||
|
|
||||||
|
export const defineVirtualModule = (params) => {
|
||||||
|
const virtualModule = createVirtualModule(params)
|
||||||
|
// @ts-ignore
|
||||||
|
System.set('root.scope', {
|
||||||
|
...virtualModule
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user