@wix/origami-site 1.3.2 → 1.3.4
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 +5 -5
- package/src/build/browserEnv.js +6 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/origami-site",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.4",
|
|
4
4
|
"description": "Runs an exported Wix origami site: file-based routing, Wix dynamic pages, popups and build checks. Use with @wix/origami-site-astro or @wix/origami-site-express.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -48,11 +48,11 @@
|
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@wix/origami-types": "^2.0.0",
|
|
50
50
|
"@wix/builder-error-pages": "^1.1.6",
|
|
51
|
-
"@wix/origami-transforms": "^0.1.
|
|
51
|
+
"@wix/origami-transforms": "^0.1.74",
|
|
52
52
|
"@babel/parser": "^7.25.0",
|
|
53
|
-
"@wix/origami-services": "^1.5.
|
|
53
|
+
"@wix/origami-services": "^1.5.5",
|
|
54
54
|
"@wix/services-manager-react": "^1.0.8",
|
|
55
|
-
"@wix/origami-bi": "^0.24.
|
|
55
|
+
"@wix/origami-bi": "^0.24.7"
|
|
56
56
|
},
|
|
57
57
|
"exports": {
|
|
58
58
|
"./server": {
|
|
@@ -93,5 +93,5 @@
|
|
|
93
93
|
"optional": true
|
|
94
94
|
}
|
|
95
95
|
},
|
|
96
|
-
"falconPackageHash": "
|
|
96
|
+
"falconPackageHash": "ac021aa07c6b4fc6952e643841ec280abd923abce3abb9180f39b673"
|
|
97
97
|
}
|
package/src/build/browserEnv.js
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
/** The interactions service (v2) reads `process.env.browser` to tell the browser build from the SSR one
|
|
1
|
+
/** The interactions service (v2) reads `process.env.browser` to tell the browser build from the SSR one, and
|
|
2
|
+
* `process.env.PACKAGE_NAME` to render its CSS with the page and run the Interact it bundles, since Origami renders pages
|
|
3
|
+
* only in the browser.
|
|
2
4
|
* @returns {import('vite').Plugin} */
|
|
3
5
|
export function browserEnv() {
|
|
4
6
|
return {
|
|
5
7
|
name: 'origami:browser-env',
|
|
6
|
-
configEnvironment: name => name === 'client'
|
|
8
|
+
configEnvironment: name => name === 'client'
|
|
9
|
+
? { define: { 'process.env.browser': 'true', 'process.env.PACKAGE_NAME': JSON.stringify('origami') } }
|
|
10
|
+
: undefined,
|
|
7
11
|
}
|
|
8
12
|
}
|