@modern-js/image 2.69.4 → 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 CHANGED
@@ -1,23 +1,32 @@
1
- # Rslib project
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
- ## Setup
5
+ <h1 align="center">Modern.js</h1>
4
6
 
5
- Install the dependencies:
7
+ <p align="center">
8
+ A Progressive React Framework for modern web development.
9
+ </p>
6
10
 
7
- ```bash
8
- pnpm install
9
- ```
11
+ ## Getting Started
10
12
 
11
- ## Get started
13
+ Please follow [Quick Start](https://modernjs.dev/en/guides/get-started/quick-start) to get started with Modern.js.
12
14
 
13
- Build the library:
15
+ ## Documentation
14
16
 
15
- ```bash
16
- pnpm build
17
- ```
17
+ - [English Documentation](https://modernjs.dev/en/)
18
+ - [中文文档](https://modernjs.dev)
18
19
 
19
- Build the library in watch mode:
20
+ ## Contributing
20
21
 
21
- ```bash
22
- pnpm dev
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, CliPluginFuture } from '@modern-js/app-tools';
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) => CliPluginFuture<AppTools<"shared">>;
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 ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
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
- default: ()=>cli,
28
- imagePlugin: ()=>imagePlugin
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 __webpack_i__ in __webpack_exports__)if (-1 === [
47
+ for(var __rspack_i in __webpack_exports__)if (-1 === [
48
48
  "default",
49
49
  "imagePlugin"
50
- ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
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 * as __WEBPACK_EXTERNAL_MODULE__rsbuild_image_react_addb933f__ from "@rsbuild-image/react";
1
+ import { Image } from "@rsbuild-image/react";
2
2
  export * from "@rsbuild-image/core/shared";
3
- var __webpack_exports__Image = __WEBPACK_EXTERNAL_MODULE__rsbuild_image_react_addb933f__.Image;
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": "2.69.4",
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.0.3",
43
- "sharp": "^0.34.1"
42
+ "ipx": "^3.1.1",
43
+ "sharp": "^0.34.5"
44
44
  },
45
45
  "devDependencies": {
46
- "@rslib/core": "^0.6.8",
47
- "@types/node": "^16",
48
- "react": "^18.3.1",
49
- "react-dom": "^18.3.1",
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": "2.69.4"
51
+ "@modern-js/app-tools": "3.0.0-alpha.0"
52
52
  },
53
53
  "scripts": {
54
54
  "build": "rslib build",