@cedarjs/prerender 1.0.0-canary.12517 → 1.0.0-canary.12518

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.
@@ -5,6 +5,7 @@ import commonjs from "@rollup/plugin-commonjs";
5
5
  import { nodeResolve } from "@rollup/plugin-node-resolve";
6
6
  import replace from "@rollup/plugin-replace";
7
7
  import { rollup } from "rollup";
8
+ import { swc } from "rollup-plugin-swc3";
8
9
  import unimportPlugin from "unimport/unplugin";
9
10
  import { getConfig, getPaths } from "@cedarjs/project-config";
10
11
  import {
@@ -18,7 +19,6 @@ import { ignoreHtmlAndCssImportsPlugin } from "./rollupPlugins/rollup-plugin-ced
18
19
  import { injectFileGlobalsPlugin } from "./rollupPlugins/rollup-plugin-cedarjs-inject-file-globals.js";
19
20
  import { cedarjsPrerenderMediaImportsPlugin } from "./rollupPlugins/rollup-plugin-cedarjs-prerender-media-imports.js";
20
21
  import { cedarjsRoutesAutoLoaderPlugin } from "./rollupPlugins/rollup-plugin-cedarjs-routes-auto-loader.js";
21
- import { typescriptPlugin } from "./rollupPlugins/rollup-plugin-cedarjs-typescript.js";
22
22
  import { getPkgType, isValidJsFile, makeFilePath } from "./utils.js";
23
23
  const fix = (f) => f;
24
24
  const tsconfigPathsToRegExp = (paths) => {
@@ -83,7 +83,7 @@ async function buildAndImport(options) {
83
83
  cedarjsDirectoryNamedImportPlugin(),
84
84
  cedarjsPrerenderMediaImportsPlugin(),
85
85
  fix(commonjs)(),
86
- typescriptPlugin(options.filepath, tsConfigs.web),
86
+ swc({ sourceMaps: true }),
87
87
  unimportPlugin.rollup({
88
88
  imports: [
89
89
  // import React from 'react'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/prerender",
3
- "version": "1.0.0-canary.12517+5d3a9b9d1",
3
+ "version": "1.0.0-canary.12518+9a24ea5cb",
4
4
  "description": "RedwoodJS prerender",
5
5
  "repository": {
6
6
  "type": "git",
@@ -43,12 +43,12 @@
43
43
  "@babel/generator": "7.27.5",
44
44
  "@babel/parser": "7.27.5",
45
45
  "@babel/traverse": "7.27.4",
46
- "@cedarjs/babel-config": "1.0.0-canary.12517",
47
- "@cedarjs/project-config": "1.0.0-canary.12517",
48
- "@cedarjs/router": "1.0.0-canary.12517",
49
- "@cedarjs/structure": "1.0.0-canary.12517",
50
- "@cedarjs/vite": "1.0.0-canary.12517",
51
- "@cedarjs/web": "1.0.0-canary.12517",
46
+ "@cedarjs/babel-config": "1.0.0-canary.12518",
47
+ "@cedarjs/project-config": "1.0.0-canary.12518",
48
+ "@cedarjs/router": "1.0.0-canary.12518",
49
+ "@cedarjs/structure": "1.0.0-canary.12518",
50
+ "@cedarjs/vite": "1.0.0-canary.12518",
51
+ "@cedarjs/web": "1.0.0-canary.12518",
52
52
  "@rollup/plugin-alias": "5.1.1",
53
53
  "@rollup/plugin-commonjs": "28.0.6",
54
54
  "@rollup/plugin-node-resolve": "16.0.1",
@@ -67,7 +67,7 @@
67
67
  "vite-node": "3.2.4"
68
68
  },
69
69
  "devDependencies": {
70
- "@cedarjs/framework-tools": "1.0.0-canary.12517",
70
+ "@cedarjs/framework-tools": "1.0.0-canary.12518",
71
71
  "@types/mime-types": "2.1.4",
72
72
  "@types/react": "^18.2.55",
73
73
  "babel-plugin-tester": "11.0.4",
@@ -85,5 +85,5 @@
85
85
  "react": "react",
86
86
  "react-dom": "react-dom"
87
87
  },
88
- "gitHead": "5d3a9b9d146a8ff9b38f23a0b315be4c163262b0"
88
+ "gitHead": "9a24ea5cb68c77a25f824e75fc42a34b8dd8ca9f"
89
89
  }
@@ -1,2 +0,0 @@
1
- export declare function typescriptPlugin(filepath: string, tsconfig: false | string | Record<string, any>): import("rollup").Plugin<any> | undefined;
2
- //# sourceMappingURL=rollup-plugin-cedarjs-typescript.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rollup-plugin-cedarjs-typescript.d.ts","sourceRoot":"","sources":["../../../src/build-and-import/rollupPlugins/rollup-plugin-cedarjs-typescript.ts"],"names":[],"mappings":"AAEA,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,4CAiB/C"}
@@ -1,18 +0,0 @@
1
- import { swc } from "rollup-plugin-swc3";
2
- function typescriptPlugin(filepath, tsconfig) {
3
- const isTypeScriptFile = filepath.endsWith(".ts") || filepath.endsWith(".tsx");
4
- if (!isTypeScriptFile) {
5
- return void 0;
6
- }
7
- const typescriptOptions = {};
8
- if (isTsconfigWithPath(tsconfig)) {
9
- typescriptOptions.tsconfig = tsconfig.path;
10
- }
11
- return swc(typescriptOptions);
12
- }
13
- function isTsconfigWithPath(tsconfig) {
14
- return !!tsconfig && typeof tsconfig === "object" && "path" in tsconfig && typeof tsconfig.path === "string";
15
- }
16
- export {
17
- typescriptPlugin
18
- };