@ripple-ts/vite-plugin 0.3.45 → 0.3.47
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/CHANGELOG.md +24 -0
- package/package.json +4 -4
- package/src/index.js +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @ripple-ts/vite-plugin
|
|
2
2
|
|
|
3
|
+
## 0.3.47
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1063](https://github.com/Ripple-TS/ripple/pull/1063)
|
|
8
|
+
[`a960343`](https://github.com/Ripple-TS/ripple/commit/a960343169aee906162211c502b6cc6b74e2a124)
|
|
9
|
+
Thanks [@leonidaz](https://github.com/leonidaz)! - Standardizes compile api
|
|
10
|
+
across all packages, including forcing types to adhere to the standard. Adds
|
|
11
|
+
more debug compile options to the playgrounds.
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
[[`eae7b40`](https://github.com/Ripple-TS/ripple/commit/eae7b4047f4d8cc7a0278fb48ffe630d73a592c6),
|
|
14
|
+
[`b34b95a`](https://github.com/Ripple-TS/ripple/commit/b34b95a808ec801109d1818f4d24ae0bbc00f66b),
|
|
15
|
+
[`a960343`](https://github.com/Ripple-TS/ripple/commit/a960343169aee906162211c502b6cc6b74e2a124)]:
|
|
16
|
+
- @tsrx/ripple@0.0.29
|
|
17
|
+
- @ripple-ts/adapter@0.3.47
|
|
18
|
+
|
|
19
|
+
## 0.3.46
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies []:
|
|
24
|
+
- @tsrx/ripple@0.0.28
|
|
25
|
+
- @ripple-ts/adapter@0.3.46
|
|
26
|
+
|
|
3
27
|
## 0.3.45
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Vite plugin for Ripple",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Dominic Gannaway",
|
|
6
|
-
"version": "0.3.
|
|
6
|
+
"version": "0.3.47",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"module": "src/index.js",
|
|
9
9
|
"main": "src/index.js",
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
"url": "https://github.com/Ripple-TS/ripple/issues"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@ripple-ts/adapter": "0.3.
|
|
36
|
-
"@tsrx/ripple": "0.0.
|
|
35
|
+
"@ripple-ts/adapter": "0.3.47",
|
|
36
|
+
"@tsrx/ripple": "0.0.29"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/node": "^24.3.0",
|
|
40
40
|
"type-fest": "^5.6.0",
|
|
41
41
|
"vite": "^8.0.0",
|
|
42
|
-
"ripple": "0.3.
|
|
42
|
+
"ripple": "0.3.47"
|
|
43
43
|
},
|
|
44
44
|
"publishConfig": {
|
|
45
45
|
"access": "public"
|
package/src/index.js
CHANGED
|
@@ -1255,7 +1255,7 @@ import { hydrate, mount } from 'ripple';
|
|
|
1255
1255
|
const is_dev = config?.command === 'serve';
|
|
1256
1256
|
const current_ripple_config = await get_current_ripple_config();
|
|
1257
1257
|
|
|
1258
|
-
const
|
|
1258
|
+
const result = await compile(code, filename, {
|
|
1259
1259
|
mode: ssr ? 'server' : 'client',
|
|
1260
1260
|
dev: is_dev,
|
|
1261
1261
|
hmr: is_dev && !ssr,
|
|
@@ -1266,17 +1266,17 @@ import { hydrate, mount } from 'ripple';
|
|
|
1266
1266
|
});
|
|
1267
1267
|
|
|
1268
1268
|
// Track modules with `module server` declarations for RPC (client build only)
|
|
1269
|
-
if (isBuild && !ssr &&
|
|
1269
|
+
if (isBuild && !ssr && result.code.includes('_$_.rpc(')) {
|
|
1270
1270
|
serverModuleModules.add(filename);
|
|
1271
1271
|
}
|
|
1272
1272
|
|
|
1273
|
-
if (css
|
|
1273
|
+
if (result.css) {
|
|
1274
1274
|
const cssId = createVirtualImportId(filename, root, 'style');
|
|
1275
|
-
cssCache.set(cssId, css);
|
|
1276
|
-
|
|
1275
|
+
cssCache.set(cssId, result.css);
|
|
1276
|
+
result.code += `\nimport ${JSON.stringify(cssId)};\n`;
|
|
1277
1277
|
}
|
|
1278
1278
|
|
|
1279
|
-
return
|
|
1279
|
+
return { code: result.code, map: result.map };
|
|
1280
1280
|
},
|
|
1281
1281
|
},
|
|
1282
1282
|
},
|