vite-plugin-blocklet 0.10.1 → 0.11.1
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/dist/index.cjs +3 -3
- package/index.js +1 -1
- package/libs/embed.js +2 -2
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -560,13 +560,13 @@ const defaultExternals = [
|
|
|
560
560
|
// default externals
|
|
561
561
|
'react',
|
|
562
562
|
'@arcblock/ux/lib/Locale/context',
|
|
563
|
-
'@arcblock/did-connect/lib/Session',
|
|
563
|
+
'@arcblock/did-connect-react/lib/Session',
|
|
564
564
|
];
|
|
565
565
|
|
|
566
566
|
/**
|
|
567
567
|
* @param {object} options - The options for the plugin.
|
|
568
568
|
* @param {object} [options.embeds={}] - The embeds to be built.
|
|
569
|
-
* @param {array} [options.embedExternals=['react', '@arcblock/ux/lib/Locale/context', '@arcblock/did-connect/lib/Session']] - The external modules to be used in the embeds.
|
|
569
|
+
* @param {array} [options.embedExternals=['react', '@arcblock/ux/lib/Locale/context', '@arcblock/did-connect-react/lib/Session']] - The external modules to be used in the embeds.
|
|
570
570
|
* @param {array} [options.embedPlugins=[]] - The plugins to be used in the embeds.
|
|
571
571
|
* @param {number} [options.embedBuildConcurrency=0] - The plugins to be used in the embeds.
|
|
572
572
|
* @return {array} The Vite config plugin.
|
|
@@ -813,7 +813,7 @@ async function setupClient(app, options = {}) {
|
|
|
813
813
|
* @property {number} [positionX]
|
|
814
814
|
* @property {number} [positionY]
|
|
815
815
|
* @param {object} [embeds={}] - The embeds to be built.
|
|
816
|
-
* @param {array} [embedExternals=['react', '@arcblock/ux/lib/Locale/context', '@arcblock/did-connect/lib/Session']] - The external modules to be used in the embeds.
|
|
816
|
+
* @param {array} [embedExternals=['react', '@arcblock/ux/lib/Locale/context', '@arcblock/did-connect-react/lib/Session']] - The external modules to be used in the embeds.
|
|
817
817
|
* @param {array} [embedPlugins=[]] - The plugins to be used in the embeds.
|
|
818
818
|
* @param {number} [embedBuildConcurrency=0] - The plugins to be used in the embeds.
|
|
819
819
|
* @property {'middleware'|'client'|'server'|'wsUpgrade'} [hmrMode='middleware'] - 当未传入任何 option 参数时,会自动变为 middleware 模式
|
package/index.js
CHANGED
|
@@ -29,7 +29,7 @@ import setupClient from './libs/client.js';
|
|
|
29
29
|
* @property {number} [positionX]
|
|
30
30
|
* @property {number} [positionY]
|
|
31
31
|
* @param {object} [embeds={}] - The embeds to be built.
|
|
32
|
-
* @param {array} [embedExternals=['react', '@arcblock/ux/lib/Locale/context', '@arcblock/did-connect/lib/Session']] - The external modules to be used in the embeds.
|
|
32
|
+
* @param {array} [embedExternals=['react', '@arcblock/ux/lib/Locale/context', '@arcblock/did-connect-react/lib/Session']] - The external modules to be used in the embeds.
|
|
33
33
|
* @param {array} [embedPlugins=[]] - The plugins to be used in the embeds.
|
|
34
34
|
* @param {number} [embedBuildConcurrency=0] - The plugins to be used in the embeds.
|
|
35
35
|
* @property {'middleware'|'client'|'server'|'wsUpgrade'} [hmrMode='middleware'] - 当未传入任何 option 参数时,会自动变为 middleware 模式
|
package/libs/embed.js
CHANGED
|
@@ -13,13 +13,13 @@ const defaultExternals = [
|
|
|
13
13
|
// default externals
|
|
14
14
|
'react',
|
|
15
15
|
'@arcblock/ux/lib/Locale/context',
|
|
16
|
-
'@arcblock/did-connect/lib/Session',
|
|
16
|
+
'@arcblock/did-connect-react/lib/Session',
|
|
17
17
|
];
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* @param {object} options - The options for the plugin.
|
|
21
21
|
* @param {object} [options.embeds={}] - The embeds to be built.
|
|
22
|
-
* @param {array} [options.embedExternals=['react', '@arcblock/ux/lib/Locale/context', '@arcblock/did-connect/lib/Session']] - The external modules to be used in the embeds.
|
|
22
|
+
* @param {array} [options.embedExternals=['react', '@arcblock/ux/lib/Locale/context', '@arcblock/did-connect-react/lib/Session']] - The external modules to be used in the embeds.
|
|
23
23
|
* @param {array} [options.embedPlugins=[]] - The plugins to be used in the embeds.
|
|
24
24
|
* @param {number} [options.embedBuildConcurrency=0] - The plugins to be used in the embeds.
|
|
25
25
|
* @return {array} The Vite config plugin.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite-plugin-blocklet",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.11.1",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"files": [
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"rollup": "^4.34.8"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@arcblock/did": "^1.
|
|
31
|
-
"@ocap/mcrypto": "^1.
|
|
32
|
-
"@ocap/util": "^1.
|
|
30
|
+
"@arcblock/did": "^1.25.1",
|
|
31
|
+
"@ocap/mcrypto": "^1.25.1",
|
|
32
|
+
"@ocap/util": "^1.25.1",
|
|
33
33
|
"get-port": "^5.1.1",
|
|
34
34
|
"http-proxy-middleware": "^3.0.3",
|
|
35
35
|
"ismobilejs": "^1.1.1",
|