create-plasmic-app 0.0.139 → 0.0.141

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.
@@ -23,6 +23,16 @@ export const PLASMIC = initPlasmicLoader({
23
23
  // only use this for development, as this is significantly slower.
24
24
  preview: false,
25
25
  });
26
+
27
+ // Register custom functions here so they are available during SSR.
28
+ // See https://docs.plasmic.app/learn/registering-custom-functions/
29
+ //
30
+ // IMPORTANT for app-router projects: any custom function used by a server
31
+ // query must be registered here, which runs on the server. Registrations in
32
+ // plasmic-init-client.tsx are only available in the browser and will cause
33
+ // a runtime error if referenced by a server query during SSR.
34
+ //
35
+ // PLASMIC.registerFunction(...);
26
36
  `;
27
37
  }
28
38
  exports.makePlasmicInit_app_loader = makePlasmicInit_app_loader;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-plasmic-app",
3
- "version": "0.0.139",
3
+ "version": "0.0.141",
4
4
  "description": "Create Plasmic-powered React apps",
5
5
  "main": "./dist/lib.js",
6
6
  "types": "./dist/lib.d.ts",
@@ -33,7 +33,7 @@
33
33
  "tsx": "^4.20.6"
34
34
  },
35
35
  "dependencies": {
36
- "@plasmicapp/cli": "0.1.359",
36
+ "@plasmicapp/cli": "0.1.360",
37
37
  "@sentry/node": "^6.2.2",
38
38
  "chalk": "^4.1.0",
39
39
  "execa": "^5.0.0",
@@ -47,5 +47,5 @@
47
47
  "validate-npm-package-name": "^3.0.0",
48
48
  "yargs": "^16.2.0"
49
49
  },
50
- "gitHead": "addf9e93ce8076ad8080722bbcab32d93cd2a44a"
50
+ "gitHead": "be549e5886ff23b4bb17b986a4a176cdde139dbc"
51
51
  }
@@ -23,5 +23,15 @@ export const PLASMIC = initPlasmicLoader({
23
23
  // only use this for development, as this is significantly slower.
24
24
  preview: false,
25
25
  });
26
+
27
+ // Register custom functions here so they are available during SSR.
28
+ // See https://docs.plasmic.app/learn/registering-custom-functions/
29
+ //
30
+ // IMPORTANT for app-router projects: any custom function used by a server
31
+ // query must be registered here, which runs on the server. Registrations in
32
+ // plasmic-init-client.tsx are only available in the browser and will cause
33
+ // a runtime error if referenced by a server query during SSR.
34
+ //
35
+ // PLASMIC.registerFunction(...);
26
36
  `;
27
37
  }