@modern-js/image 2.69.5 → 3.0.0-alpha.0
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/README.md +24 -15
- package/dist/cli.d.ts +2 -2
- package/dist/index.cjs +5 -5
- package/dist/runtime.js +2 -3
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -1,23 +1,32 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="https://modernjs.dev" target="blank"><img src="https://lf3-static.bytednsdoc.com/obj/eden-cn/ylaelkeh7nuhfnuhf/modernjs-cover.png" width="300" alt="Modern.js Logo" /></a>
|
|
3
|
+
</p>
|
|
2
4
|
|
|
3
|
-
|
|
5
|
+
<h1 align="center">Modern.js</h1>
|
|
4
6
|
|
|
5
|
-
|
|
7
|
+
<p align="center">
|
|
8
|
+
A Progressive React Framework for modern web development.
|
|
9
|
+
</p>
|
|
6
10
|
|
|
7
|
-
|
|
8
|
-
pnpm install
|
|
9
|
-
```
|
|
11
|
+
## Getting Started
|
|
10
12
|
|
|
11
|
-
|
|
13
|
+
Please follow [Quick Start](https://modernjs.dev/en/guides/get-started/quick-start) to get started with Modern.js.
|
|
12
14
|
|
|
13
|
-
|
|
15
|
+
## Documentation
|
|
14
16
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
```
|
|
17
|
+
- [English Documentation](https://modernjs.dev/en/)
|
|
18
|
+
- [中文文档](https://modernjs.dev)
|
|
18
19
|
|
|
19
|
-
|
|
20
|
+
## Contributing
|
|
20
21
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
Please read the [Contributing Guide](https://github.com/web-infra-dev/modern.js/blob/main/CONTRIBUTING.md).
|
|
23
|
+
|
|
24
|
+
## License
|
|
25
|
+
|
|
26
|
+
Modern.js is [MIT licensed](https://github.com/web-infra-dev/modern.js/blob/main/LICENSE).
|
|
27
|
+
|
|
28
|
+
## Credist
|
|
29
|
+
|
|
30
|
+
Thanks to:
|
|
31
|
+
|
|
32
|
+
- [@loadable/webpack-plugin](https://github.com/gregberge/loadable-components) to create a webpack plugin prepare for loadable usage in ssr.
|
package/dist/cli.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { AppTools,
|
|
1
|
+
import type { AppTools, CliPlugin } from '@modern-js/app-tools';
|
|
2
2
|
import { type PluginImageOptions as BuilderPluginImageOptions } from '@rsbuild-image/core';
|
|
3
3
|
export interface ImagePluginOptions extends BuilderPluginImageOptions {
|
|
4
4
|
}
|
|
5
|
-
export declare const imagePlugin: (options?: ImagePluginOptions) =>
|
|
5
|
+
export declare const imagePlugin: (options?: ImagePluginOptions) => CliPlugin<AppTools>;
|
|
6
6
|
export default imagePlugin;
|
package/dist/index.cjs
CHANGED
|
@@ -13,7 +13,7 @@ var __webpack_require__ = {};
|
|
|
13
13
|
})();
|
|
14
14
|
(()=>{
|
|
15
15
|
__webpack_require__.r = (exports1)=>{
|
|
16
|
-
if (
|
|
16
|
+
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
17
|
value: 'Module'
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports1, '__esModule', {
|
|
@@ -24,8 +24,8 @@ var __webpack_require__ = {};
|
|
|
24
24
|
var __webpack_exports__ = {};
|
|
25
25
|
__webpack_require__.r(__webpack_exports__);
|
|
26
26
|
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
imagePlugin: ()=>imagePlugin,
|
|
28
|
+
default: ()=>cli
|
|
29
29
|
});
|
|
30
30
|
const core_namespaceObject = require("@rsbuild-image/core");
|
|
31
31
|
const imagePlugin = (options = {})=>({
|
|
@@ -44,10 +44,10 @@ const imagePlugin = (options = {})=>({
|
|
|
44
44
|
const cli = imagePlugin;
|
|
45
45
|
exports["default"] = __webpack_exports__["default"];
|
|
46
46
|
exports.imagePlugin = __webpack_exports__.imagePlugin;
|
|
47
|
-
for(var
|
|
47
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
48
48
|
"default",
|
|
49
49
|
"imagePlugin"
|
|
50
|
-
].indexOf(
|
|
50
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
51
51
|
Object.defineProperty(exports, '__esModule', {
|
|
52
52
|
value: true
|
|
53
53
|
});
|
package/dist/runtime.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Image } from "@rsbuild-image/react";
|
|
2
2
|
export * from "@rsbuild-image/core/shared";
|
|
3
|
-
|
|
4
|
-
export { __webpack_exports__Image as Image };
|
|
3
|
+
export { Image };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modern-js/image",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-alpha.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -39,16 +39,16 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@rsbuild-image/core": "0.0.1-next.16",
|
|
41
41
|
"@rsbuild-image/react": "0.0.1-next.16",
|
|
42
|
-
"ipx": "^3.
|
|
43
|
-
"sharp": "^0.34.
|
|
42
|
+
"ipx": "^3.1.1",
|
|
43
|
+
"sharp": "^0.34.5"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@rslib/core": "
|
|
47
|
-
"@types/node": "^
|
|
48
|
-
"react": "^
|
|
49
|
-
"react-dom": "^
|
|
46
|
+
"@rslib/core": "0.18.5",
|
|
47
|
+
"@types/node": "^20",
|
|
48
|
+
"react": "^19.2.3",
|
|
49
|
+
"react-dom": "^19.2.3",
|
|
50
50
|
"typescript": "^5",
|
|
51
|
-
"@modern-js/app-tools": "
|
|
51
|
+
"@modern-js/app-tools": "3.0.0-alpha.0"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"build": "rslib build",
|