@cedarjs/prerender 6.0.0-canary.2796 → 6.0.0-canary.2799

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.
@@ -1 +1 @@
1
- {"version":3,"file":"babel-plugin-redwood-prerender-media-imports.d.ts","sourceRoot":"","sources":["../../src/babelPlugins/babel-plugin-redwood-prerender-media-imports.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,EAAY,MAAM,aAAa,CAAA;AAyC7D,wBAAgB,uCAAuC,CAAC,EACtD,KAAK,EAAE,CAAC,GACT,EAAE;IACD,KAAK,EAAE,OAAO,KAAK,CAAA;CACpB,GAAG,SAAS,CAqDZ"}
1
+ {"version":3,"file":"babel-plugin-redwood-prerender-media-imports.d.ts","sourceRoot":"","sources":["../../src/babelPlugins/babel-plugin-redwood-prerender-media-imports.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,EAAY,MAAM,aAAa,CAAA;AAuC7D,wBAAgB,uCAAuC,CAAC,EACtD,KAAK,EAAE,CAAC,GACT,EAAE;IACD,KAAK,EAAE,OAAO,KAAK,CAAA;CACpB,GAAG,SAAS,CAqDZ"}
@@ -2,7 +2,8 @@ import { extname, join, relative, dirname } from "path";
2
2
  import { ensurePosixPath, getPaths } from "@cedarjs/project-config";
3
3
  import { convertToDataUrl } from "./utils.js";
4
4
  const defaultOptions = {
5
- // This list of extensions matches config for file-loader in
5
+ // Media file extensions that Vite emits as assets, and that we therefore
6
+ // have to resolve to their built asset path (or a data URL) when prerendering
6
7
  extensions: [
7
8
  ".ico",
8
9
  ".jpg",
@@ -1,8 +1,9 @@
1
1
  import type { Plugin as RollupPlugin } from 'rollup';
2
2
  /**
3
- * A Rollup plugin that ignores imports of HTML and CSS files by replacing them with empty modules.
4
- * This is useful when bundling code that imports these files for webpack or other bundlers,
5
- * but you want Rollup to ignore them during the build process.
3
+ * A Rollup plugin that ignores imports of HTML and CSS files by replacing them
4
+ * with empty modules. This is useful when bundling code that imports these
5
+ * files for the browser build (where Vite handles them), but you want Rollup to
6
+ * ignore them during the build process.
6
7
  *
7
8
  * @param options Configuration options
8
9
  * @returns Rollup plugin
@@ -1 +1 @@
1
- {"version":3,"file":"rollup-plugin-cedarjs-ignore-html-and-css-imports.d.ts","sourceRoot":"","sources":["../../../src/build-and-import/rollupPlugins/rollup-plugin-cedarjs-ignore-html-and-css-imports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,QAAQ,CAAA;AAEpD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,6BAA6B,QAAO,YAyBhD,CAAA"}
1
+ {"version":3,"file":"rollup-plugin-cedarjs-ignore-html-and-css-imports.d.ts","sourceRoot":"","sources":["../../../src/build-and-import/rollupPlugins/rollup-plugin-cedarjs-ignore-html-and-css-imports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,QAAQ,CAAA;AAEpD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,6BAA6B,QAAO,YAyBhD,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"rollup-plugin-cedarjs-prerender-media-imports.d.ts","sourceRoot":"","sources":["../../../src/build-and-import/rollupPlugins/rollup-plugin-cedarjs-prerender-media-imports.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AA6BpC,MAAM,WAAW,4BAA4B;IAC3C,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;CACtB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,kCAAkC,CAChD,OAAO,GAAE,4BAAiC,GACzC,MAAM,CA0ER"}
1
+ {"version":3,"file":"rollup-plugin-cedarjs-prerender-media-imports.d.ts","sourceRoot":"","sources":["../../../src/build-and-import/rollupPlugins/rollup-plugin-cedarjs-prerender-media-imports.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AA8BpC,MAAM,WAAW,4BAA4B;IAC3C,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;CACtB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,kCAAkC,CAChD,OAAO,GAAE,4BAAiC,GACzC,MAAM,CA0ER"}
@@ -1 +1 @@
1
- {"version":3,"file":"babel-plugin-redwood-prerender-media-imports.d.ts","sourceRoot":"","sources":["../../../src/babelPlugins/babel-plugin-redwood-prerender-media-imports.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,EAAY,MAAM,aAAa,CAAA;AAyC7D,wBAAgB,uCAAuC,CAAC,EACtD,KAAK,EAAE,CAAC,GACT,EAAE;IACD,KAAK,EAAE,OAAO,KAAK,CAAA;CACpB,GAAG,SAAS,CAqDZ"}
1
+ {"version":3,"file":"babel-plugin-redwood-prerender-media-imports.d.ts","sourceRoot":"","sources":["../../../src/babelPlugins/babel-plugin-redwood-prerender-media-imports.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,EAAY,MAAM,aAAa,CAAA;AAuC7D,wBAAgB,uCAAuC,CAAC,EACtD,KAAK,EAAE,CAAC,GACT,EAAE;IACD,KAAK,EAAE,OAAO,KAAK,CAAA;CACpB,GAAG,SAAS,CAqDZ"}
@@ -25,7 +25,8 @@ var import_path = require("path");
25
25
  var import_project_config = require("@cedarjs/project-config");
26
26
  var import_utils = require("./utils.js");
27
27
  const defaultOptions = {
28
- // This list of extensions matches config for file-loader in
28
+ // Media file extensions that Vite emits as assets, and that we therefore
29
+ // have to resolve to their built asset path (or a data URL) when prerendering
29
30
  extensions: [
30
31
  ".ico",
31
32
  ".jpg",
@@ -1 +1 @@
1
- {"version":3,"file":"runPrerender.d.ts","sourceRoot":"","sources":["../../src/runPrerender.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AA4O7C,UAAU,eAAe;IACvB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAA;IACrC,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,YAAY,GAAU,6BAGhC,eAAe,KAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAkIzC,CAAA;AAGD,eAAO,MAAM,wBAAwB,GACnC,gBAAgB,MAAM,EACtB,SAAS,MAAM,SAchB,CAAA"}
1
+ {"version":3,"file":"runPrerender.d.ts","sourceRoot":"","sources":["../../src/runPrerender.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AA4O7C,UAAU,eAAe;IACvB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAA;IACrC,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,YAAY,GAAU,6BAGhC,eAAe,KAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAmIzC,CAAA;AAGD,eAAO,MAAM,wBAAwB,GACnC,gBAAgB,MAAM,EACtB,SAAS,MAAM,SAchB,CAAA"}
@@ -229,8 +229,8 @@ const runPrerender = async ({
229
229
  overrides: [
230
230
  {
231
231
  plugins: [
232
+ // Vite handles CSS imports for the browser build
232
233
  ["ignore-html-and-css-imports"],
233
- // webpack/postcss handles CSS imports
234
234
  [import_babel_plugin_redwood_prerender_media_imports.babelPluginRedwoodPrerenderMediaImports]
235
235
  ]
236
236
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/prerender",
3
- "version": "6.0.0-canary.2796",
3
+ "version": "6.0.0-canary.2799",
4
4
  "description": "CedarJS prerender",
5
5
  "repository": {
6
6
  "type": "git",
@@ -71,10 +71,10 @@
71
71
  "@babel/generator": "7.29.7",
72
72
  "@babel/parser": "7.29.7",
73
73
  "@babel/traverse": "7.29.7",
74
- "@cedarjs/babel-config": "6.0.0-canary.2796",
75
- "@cedarjs/project-config": "6.0.0-canary.2796",
76
- "@cedarjs/structure": "6.0.0-canary.2796",
77
- "@cedarjs/vite": "6.0.0-canary.2796",
74
+ "@cedarjs/babel-config": "6.0.0-canary.2799",
75
+ "@cedarjs/project-config": "6.0.0-canary.2799",
76
+ "@cedarjs/structure": "6.0.0-canary.2799",
77
+ "@cedarjs/vite": "6.0.0-canary.2799",
78
78
  "@rollup/plugin-alias": "5.1.1",
79
79
  "@rollup/plugin-commonjs": "28.0.9",
80
80
  "@rollup/plugin-node-resolve": "16.0.3",
@@ -92,9 +92,9 @@
92
92
  "vite": "7.3.6"
93
93
  },
94
94
  "devDependencies": {
95
- "@cedarjs/framework-tools": "6.0.0-canary.2796",
96
- "@cedarjs/router": "6.0.0-canary.2796",
97
- "@cedarjs/web": "6.0.0-canary.2796",
95
+ "@cedarjs/framework-tools": "6.0.0-canary.2799",
96
+ "@cedarjs/router": "6.0.0-canary.2799",
97
+ "@cedarjs/web": "6.0.0-canary.2799",
98
98
  "@types/mime-types": "2.1.4",
99
99
  "@types/react": "^18.2.55",
100
100
  "babel-plugin-tester": "11.0.4",
@@ -104,8 +104,8 @@
104
104
  "vitest": "4.1.10"
105
105
  },
106
106
  "peerDependencies": {
107
- "@cedarjs/router": "6.0.0-canary.2796",
108
- "@cedarjs/web": "6.0.0-canary.2796",
107
+ "@cedarjs/router": "6.0.0-canary.2799",
108
+ "@cedarjs/web": "6.0.0-canary.2799",
109
109
  "react": "19.2.3",
110
110
  "react-dom": "19.2.3"
111
111
  },