rails-vite-plugin 0.2.3 → 0.2.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/dist/index.js +4 -0
- package/dist/jsbundling.js +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -74,6 +74,8 @@ export default function rails(options = {}) {
|
|
|
74
74
|
const meta = { sourceDir, buildDir: effectiveBuildDir };
|
|
75
75
|
if (entrypointsDir)
|
|
76
76
|
meta.entrypointsDir = entrypointsDir;
|
|
77
|
+
if (resolvedSsr)
|
|
78
|
+
meta.ssrOutputDir = ssrOutDir;
|
|
77
79
|
fs.writeFileSync(path.join(outDir, 'rails-vite.json'), JSON.stringify(meta));
|
|
78
80
|
},
|
|
79
81
|
transform(code) {
|
|
@@ -87,6 +89,8 @@ export default function rails(options = {}) {
|
|
|
87
89
|
const meta = { url: devServerUrl, sourceDir, buildDir: effectiveBuildDir };
|
|
88
90
|
if (entrypointsDir)
|
|
89
91
|
meta.entrypointsDir = entrypointsDir;
|
|
92
|
+
if (resolvedSsr)
|
|
93
|
+
meta.ssrOutputDir = ssrOutDir;
|
|
90
94
|
if (reactRefresh)
|
|
91
95
|
meta.reactRefresh = true;
|
|
92
96
|
fs.writeFileSync(devMetaPath, JSON.stringify(meta));
|
package/dist/jsbundling.js
CHANGED
|
@@ -197,6 +197,8 @@ export default function jsbundling(options = {}) {
|
|
|
197
197
|
const meta = { url: devServerUrl, sourceDir };
|
|
198
198
|
if (epDir)
|
|
199
199
|
meta.entrypointsDir = epDir;
|
|
200
|
+
if (ssrConfig)
|
|
201
|
+
meta.ssrOutputDir = ssrConfig.outDir;
|
|
200
202
|
if (reactRefresh)
|
|
201
203
|
meta.reactRefresh = true;
|
|
202
204
|
meta.jsbundling = true;
|