mountly-vite-plugin 1.2.2 → 1.3.0
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.d.ts +7 -0
- package/dist/index.js +1 -4
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,13 @@ export { mountlyHostPlugin, type MountlyHostPluginOptions } from "./host.js";
|
|
|
3
3
|
export { mountlyManifestFragmentPlugin, type ManifestFragmentPluginOptions } from "./fragment.js";
|
|
4
4
|
export type MountlyWidgetFramework = "react" | "vue" | "svelte";
|
|
5
5
|
export declare function getFrameworkPeerExternals(framework: MountlyWidgetFramework): Array<string | RegExp>;
|
|
6
|
+
/**
|
|
7
|
+
* The self-contained build's whole promise is "drop this file in a page and it
|
|
8
|
+
* works", so mountly's own runtime helpers are bundled in rather than
|
|
9
|
+
* externalised: the host then needs no import map at all. The peer build still
|
|
10
|
+
* externalises them, because sharing through the host's import map is the point
|
|
11
|
+
* of that build.
|
|
12
|
+
*/
|
|
6
13
|
export declare function getSelfContainedExternals(framework: MountlyWidgetFramework): Array<string | RegExp>;
|
|
7
14
|
export interface MountlyCssAsTextOptions {
|
|
8
15
|
include?: string | RegExp | (string | RegExp)[];
|
package/dist/index.js
CHANGED
|
@@ -608,10 +608,7 @@ function getFrameworkPeerExternals(framework) {
|
|
|
608
608
|
return [...PLATFORM_EXTERNALS, ...FRAMEWORK_EXTERNALS[framework]];
|
|
609
609
|
}
|
|
610
610
|
function getSelfContainedExternals(framework) {
|
|
611
|
-
return [
|
|
612
|
-
...PLATFORM_EXTERNALS,
|
|
613
|
-
...FRAMEWORK_EXTERNALS[framework].filter((id) => !FRAMEWORK_BUNDLE[framework].includes(id))
|
|
614
|
-
];
|
|
611
|
+
return FRAMEWORK_EXTERNALS[framework].filter((id) => !FRAMEWORK_BUNDLE[framework].includes(id));
|
|
615
612
|
}
|
|
616
613
|
function matchesFilter(id, include) {
|
|
617
614
|
return include.some(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mountly-vite-plugin",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Vite lib build plugin for mountly vertical widgets (dual ESM output)",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"tsup": "^8.5.1",
|
|
28
28
|
"typescript": "^7.0.2",
|
|
29
29
|
"vite": "^8.1.5",
|
|
30
|
-
"mountly-manifest": "1.
|
|
30
|
+
"mountly-manifest": "1.1.1"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"typescript": ">=7.0.0",
|
|
34
34
|
"vite": "^8.2.1",
|
|
35
|
-
"mountly-manifest": "1.
|
|
35
|
+
"mountly-manifest": "1.1.1"
|
|
36
36
|
},
|
|
37
37
|
"peerDependenciesMeta": {
|
|
38
38
|
"typescript": {
|