@polylith/builder 0.0.5 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -1
- package/plugin-loadables.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@polylith/builder",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"description": "The polylith builder",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@rollup/plugin-commonjs": "^21.0.0",
|
|
14
14
|
"@rollup/plugin-node-resolve": "^13.0.5",
|
|
15
|
+
"escape-string-regexp": "^5.0.0",
|
|
16
|
+
"fs-extra": "^10.0.0",
|
|
15
17
|
"rollup": "^2.58.0"
|
|
16
18
|
}
|
|
17
19
|
}
|
package/plugin-loadables.js
CHANGED
|
@@ -7,7 +7,7 @@ function makeSource(loadables) {
|
|
|
7
7
|
|
|
8
8
|
if (loadable.prefix) {
|
|
9
9
|
prefixStr = `
|
|
10
|
-
.then(function(result) {
|
|
10
|
+
.then(async function(result) {
|
|
11
11
|
await registry.start('${loadable.prefix}');
|
|
12
12
|
return result;
|
|
13
13
|
});
|
|
@@ -26,7 +26,7 @@ function makeSource(loadables) {
|
|
|
26
26
|
`
|
|
27
27
|
import {registry} from '@polylith/core';
|
|
28
28
|
|
|
29
|
-
export function load(name) {
|
|
29
|
+
export async function load(name) {
|
|
30
30
|
var promise;
|
|
31
31
|
|
|
32
32
|
switch (name) {
|