@web-widget/react 1.53.0 → 1.53.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/vite.js +4 -4
- package/package.json +5 -5
package/dist/vite.js
CHANGED
|
@@ -20,20 +20,20 @@ function reactWebWidgetPlugin(options) {
|
|
|
20
20
|
const widgetPattern = `[.@]widget`;
|
|
21
21
|
const modulesPattern = `[.@](?:route|widget)`;
|
|
22
22
|
const extensionPattern = `\\.(?:tsx|jsx)`;
|
|
23
|
-
const modifierPattern = `(?:\\?as=.+)`;
|
|
24
23
|
return webWidgetPlugin({
|
|
25
24
|
manifest,
|
|
26
25
|
provide,
|
|
27
26
|
export: {
|
|
28
27
|
include: new RegExp(
|
|
29
|
-
`^${workspacePattern}
|
|
28
|
+
`^${workspacePattern}[^?]*${modulesPattern}${extensionPattern}$`
|
|
30
29
|
),
|
|
31
30
|
...exportWidget
|
|
32
31
|
},
|
|
33
32
|
import: {
|
|
34
|
-
include: new RegExp(
|
|
33
|
+
include: new RegExp(`^[^?]*${widgetPattern}\\.[^?]*$`),
|
|
35
34
|
includeImporter: new RegExp(
|
|
36
|
-
|
|
35
|
+
// NOTE: Should not match this: app.vue?vue&type=script&lang.jsx
|
|
36
|
+
`^${workspacePattern}[^?]*${extensionPattern}$`
|
|
37
37
|
),
|
|
38
38
|
...importWidget
|
|
39
39
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@web-widget/react",
|
|
3
3
|
"description": "React adapter",
|
|
4
|
-
"version": "1.53.
|
|
4
|
+
"version": "1.53.1",
|
|
5
5
|
"homepage": "https://github.com/web-widget/web-widget#readme",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@rollup/pluginutils": "^5.1.4",
|
|
17
|
-
"@web-widget/helpers": "1.53.
|
|
18
|
-
"@web-widget/schema": "1.53.
|
|
19
|
-
"@web-widget/vite-plugin": "1.53.
|
|
20
|
-
"@web-widget/web-widget": "1.53.
|
|
17
|
+
"@web-widget/helpers": "1.53.1",
|
|
18
|
+
"@web-widget/schema": "1.53.1",
|
|
19
|
+
"@web-widget/vite-plugin": "1.53.1",
|
|
20
|
+
"@web-widget/web-widget": "1.53.1"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@types/react": "^19.0.10",
|