@cedarjs/vite 7.0.0-canary.3005 → 7.0.0-canary.3007
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/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -4
- package/dist/lib/getMergedConfig.d.ts.map +1 -1
- package/dist/lib/getMergedConfig.js +0 -5
- package/package.json +19 -19
- package/dist/plugins/vite-plugin-jsx-loader.d.ts +0 -6
- package/dist/plugins/vite-plugin-jsx-loader.d.ts.map +0 -1
- package/dist/plugins/vite-plugin-jsx-loader.js +0 -18
package/dist/index.d.ts
CHANGED
|
@@ -19,7 +19,6 @@ export { cedarRemoveFromBundle } from './plugins/vite-plugin-cedar-remove-from-b
|
|
|
19
19
|
export { cedarjsResolveCedarStyleImportsPlugin } from './plugins/vite-plugin-cedarjs-resolve-cedar-style-imports.js';
|
|
20
20
|
export { cedarjsJobPathInjectorPlugin } from './plugins/vite-plugin-cedarjs-job-path-injector.js';
|
|
21
21
|
export { cedarMockCellDataPlugin } from './plugins/vite-plugin-cedar-mock-cell-data.js';
|
|
22
|
-
export { cedarTransformJsAsJsx } from './plugins/vite-plugin-jsx-loader.js';
|
|
23
22
|
export { cedarMergedConfig } from './plugins/vite-plugin-merged-config.js';
|
|
24
23
|
export { cedarSwapApolloProvider } from './plugins/vite-plugin-swap-apollo-provider.js';
|
|
25
24
|
export { cedarUniversalDeployPlugin } from './plugins/vite-plugin-cedar-universal-deploy.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],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AAM,+CAA+C,CAAA;AACvF,OAAO,EAAE,0BAA0B,EAAE,MAAM,iDAAiD,CAAA;AAC5F,OAAO,EAAE,qBAAqB,EAAE,MAAM,oDAAoD,CAAA;AAE1F,KAAK,aAAa,GAAG;IACnB,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,KAAK,CAAC,EAAE,YAAY,GAAG,SAAS,CAAA;CACjC,CAAA;AAED;;GAEG;AACH,wBAAgB,KAAK,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,GAAE,aAAkB,GAAG,YAAY,EAAE,CA+CzE;AAED,8DAA8D;AAC9D,eAAe,KAAK,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -25,7 +25,6 @@ import { cedarRemoveFromBundle } from "./plugins/vite-plugin-cedar-remove-from-b
|
|
|
25
25
|
import { cedarRoutesAutoLoaderPlugin } from "./plugins/vite-plugin-cedar-routes-auto-loader.js";
|
|
26
26
|
import { cedarWaitForApiServer } from "./plugins/vite-plugin-cedar-wait-for-api-server.js";
|
|
27
27
|
import { cedarjsResolveCedarStyleImportsPlugin } from "./plugins/vite-plugin-cedarjs-resolve-cedar-style-imports.js";
|
|
28
|
-
import { cedarTransformJsAsJsx } from "./plugins/vite-plugin-jsx-loader.js";
|
|
29
28
|
import { cedarMergedConfig } from "./plugins/vite-plugin-merged-config.js";
|
|
30
29
|
import { cedarSwapApolloProvider } from "./plugins/vite-plugin-swap-apollo-provider.js";
|
|
31
30
|
import { cedarApiImportGuardPlugin as cedarApiImportGuardPlugin2 } from "./plugins/vite-plugin-cedar-api-import-guard.js";
|
|
@@ -50,7 +49,6 @@ import { cedarRemoveFromBundle as cedarRemoveFromBundle2 } from "./plugins/vite-
|
|
|
50
49
|
import { cedarjsResolveCedarStyleImportsPlugin as cedarjsResolveCedarStyleImportsPlugin2 } from "./plugins/vite-plugin-cedarjs-resolve-cedar-style-imports.js";
|
|
51
50
|
import { cedarjsJobPathInjectorPlugin } from "./plugins/vite-plugin-cedarjs-job-path-injector.js";
|
|
52
51
|
import { cedarMockCellDataPlugin as cedarMockCellDataPlugin2 } from "./plugins/vite-plugin-cedar-mock-cell-data.js";
|
|
53
|
-
import { cedarTransformJsAsJsx as cedarTransformJsAsJsx2 } from "./plugins/vite-plugin-jsx-loader.js";
|
|
54
52
|
import { cedarMergedConfig as cedarMergedConfig2 } from "./plugins/vite-plugin-merged-config.js";
|
|
55
53
|
import { cedarSwapApolloProvider as cedarSwapApolloProvider2 } from "./plugins/vite-plugin-swap-apollo-provider.js";
|
|
56
54
|
import { cedarUniversalDeployPlugin } from "./plugins/vite-plugin-cedar-universal-deploy.js";
|
|
@@ -82,7 +80,6 @@ function cedar({ mode, babel } = {}) {
|
|
|
82
80
|
cedarjsResolveCedarStyleImportsPlugin(),
|
|
83
81
|
cedarSwapApolloProvider(),
|
|
84
82
|
cedarCellTransform(),
|
|
85
|
-
cedarTransformJsAsJsx(),
|
|
86
83
|
cedarRemoveFromBundle(),
|
|
87
84
|
cedarRemoveDevFatalErrorPage(),
|
|
88
85
|
// RSC handles route auto-loading differently in each build stage
|
|
@@ -114,7 +111,6 @@ export {
|
|
|
114
111
|
cedarRemoveFromBundle2 as cedarRemoveFromBundle,
|
|
115
112
|
cedarRoutesAutoLoaderPlugin2 as cedarRoutesAutoLoaderPlugin,
|
|
116
113
|
cedarSwapApolloProvider2 as cedarSwapApolloProvider,
|
|
117
|
-
cedarTransformJsAsJsx2 as cedarTransformJsAsJsx,
|
|
118
114
|
cedarUniversalDeployPlugin,
|
|
119
115
|
cedarWaitForApiServer2 as cedarWaitForApiServer,
|
|
120
116
|
cedarjsJobPathInjectorPlugin,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getMergedConfig.d.ts","sourceRoot":"","sources":["../../src/lib/getMergedConfig.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAE9D,OAAO,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AAW5D;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,IAC5D,YAAY,cAAc,EAAE,KAAK,SAAS,KAAG,cAAc,
|
|
1
|
+
{"version":3,"file":"getMergedConfig.d.ts","sourceRoot":"","sources":["../../src/lib/getMergedConfig.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAE9D,OAAO,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AAW5D;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,IAC5D,YAAY,cAAc,EAAE,KAAK,SAAS,KAAG,cAAc,CAoIpE"}
|
|
@@ -97,11 +97,6 @@ function getMergedConfig(cedarConfig, cedarPaths) {
|
|
|
97
97
|
// because rsc builds want false, client and server build wants true
|
|
98
98
|
optimizeDeps: {
|
|
99
99
|
esbuildOptions: {
|
|
100
|
-
// @MARK this is because JS projects in Cedar don't have .jsx
|
|
101
|
-
// extensions
|
|
102
|
-
loader: {
|
|
103
|
-
".js": "jsx"
|
|
104
|
-
},
|
|
105
100
|
// Node.js global to browser globalThis
|
|
106
101
|
// @MARK unsure why we need this, but required for DevFatalErrorPage
|
|
107
102
|
// at least
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/vite",
|
|
3
|
-
"version": "7.0.0-canary.
|
|
3
|
+
"version": "7.0.0-canary.3007",
|
|
4
4
|
"description": "Vite configuration package for CedarJS",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -53,17 +53,17 @@
|
|
|
53
53
|
"@babel/preset-typescript": "7.29.7",
|
|
54
54
|
"@babel/traverse": "7.29.8",
|
|
55
55
|
"@babel/types": "7.29.8",
|
|
56
|
-
"@cedarjs/api": "7.0.0-canary.
|
|
57
|
-
"@cedarjs/api-server": "7.0.0-canary.
|
|
58
|
-
"@cedarjs/babel-config": "7.0.0-canary.
|
|
59
|
-
"@cedarjs/context": "7.0.0-canary.
|
|
60
|
-
"@cedarjs/graphql-server": "7.0.0-canary.
|
|
61
|
-
"@cedarjs/internal": "7.0.0-canary.
|
|
62
|
-
"@cedarjs/jobs": "7.0.0-canary.
|
|
63
|
-
"@cedarjs/project-config": "7.0.0-canary.
|
|
64
|
-
"@cedarjs/server-store": "7.0.0-canary.
|
|
65
|
-
"@cedarjs/structure": "7.0.0-canary.
|
|
66
|
-
"@cedarjs/testing": "7.0.0-canary.
|
|
56
|
+
"@cedarjs/api": "7.0.0-canary.3007",
|
|
57
|
+
"@cedarjs/api-server": "7.0.0-canary.3007",
|
|
58
|
+
"@cedarjs/babel-config": "7.0.0-canary.3007",
|
|
59
|
+
"@cedarjs/context": "7.0.0-canary.3007",
|
|
60
|
+
"@cedarjs/graphql-server": "7.0.0-canary.3007",
|
|
61
|
+
"@cedarjs/internal": "7.0.0-canary.3007",
|
|
62
|
+
"@cedarjs/jobs": "7.0.0-canary.3007",
|
|
63
|
+
"@cedarjs/project-config": "7.0.0-canary.3007",
|
|
64
|
+
"@cedarjs/server-store": "7.0.0-canary.3007",
|
|
65
|
+
"@cedarjs/structure": "7.0.0-canary.3007",
|
|
66
|
+
"@cedarjs/testing": "7.0.0-canary.3007",
|
|
67
67
|
"@swc/core": "1.16.1",
|
|
68
68
|
"@universal-deploy/store": "^0.2.1",
|
|
69
69
|
"@universal-deploy/vite": "^0.1.9",
|
|
@@ -93,10 +93,10 @@
|
|
|
93
93
|
"yargs-parser": "21.1.1"
|
|
94
94
|
},
|
|
95
95
|
"devDependencies": {
|
|
96
|
-
"@cedarjs/auth": "7.0.0-canary.
|
|
97
|
-
"@cedarjs/framework-tools": "7.0.0-canary.
|
|
98
|
-
"@cedarjs/router": "7.0.0-canary.
|
|
99
|
-
"@cedarjs/web": "7.0.0-canary.
|
|
96
|
+
"@cedarjs/auth": "7.0.0-canary.3007",
|
|
97
|
+
"@cedarjs/framework-tools": "7.0.0-canary.3007",
|
|
98
|
+
"@cedarjs/router": "7.0.0-canary.3007",
|
|
99
|
+
"@cedarjs/web": "7.0.0-canary.3007",
|
|
100
100
|
"@dr.pogodin/react-helmet": "2.0.4",
|
|
101
101
|
"@hyrious/esbuild-plugin-commonjs": "0.2.6",
|
|
102
102
|
"@jridgewell/trace-mapping": "0.3.31",
|
|
@@ -118,9 +118,9 @@
|
|
|
118
118
|
"vitest": "4.1.10"
|
|
119
119
|
},
|
|
120
120
|
"peerDependencies": {
|
|
121
|
-
"@cedarjs/auth": "7.0.0-canary.
|
|
122
|
-
"@cedarjs/router": "7.0.0-canary.
|
|
123
|
-
"@cedarjs/web": "7.0.0-canary.
|
|
121
|
+
"@cedarjs/auth": "7.0.0-canary.3007",
|
|
122
|
+
"@cedarjs/router": "7.0.0-canary.3007",
|
|
123
|
+
"@cedarjs/web": "7.0.0-canary.3007",
|
|
124
124
|
"react": "19.2.8",
|
|
125
125
|
"react-dom": "19.2.8"
|
|
126
126
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vite-plugin-jsx-loader.d.ts","sourceRoot":"","sources":["../../src/plugins/vite-plugin-jsx-loader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AAGxC;;GAEG;AACH,wBAAgB,qBAAqB,IAAI,YAAY,CAgBpD"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { transformWithEsbuild } from "vite";
|
|
2
|
-
function cedarTransformJsAsJsx() {
|
|
3
|
-
return {
|
|
4
|
-
name: "transform-js-files-as-jsx",
|
|
5
|
-
async transform(code, id) {
|
|
6
|
-
if (!id.match(/src\/.*\.js$/)) {
|
|
7
|
-
return null;
|
|
8
|
-
}
|
|
9
|
-
return transformWithEsbuild(code, id, {
|
|
10
|
-
loader: "jsx",
|
|
11
|
-
jsx: "automatic"
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
export {
|
|
17
|
-
cedarTransformJsAsJsx
|
|
18
|
-
};
|