@rsbuild/plugin-preact 1.3.1 → 1.4.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 +1 -1
- package/dist/index.cjs +13 -12
- package/package.json +9 -8
package/README.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
let __rslib_import_meta_url__ = 'undefined' == typeof document ? new (require('url'.replace('', ''))).URL('file:' + __filename).href : document.currentScript && document.currentScript.src || new URL('main.js', document.baseURI).href;
|
|
3
3
|
var __webpack_modules__ = {
|
|
4
4
|
"@rspack/plugin-preact-refresh": function(module) {
|
|
5
|
-
module.exports = import("@rspack/plugin-preact-refresh")
|
|
5
|
+
module.exports = import("@rspack/plugin-preact-refresh").then(function(module) {
|
|
6
|
+
return module;
|
|
7
|
+
});
|
|
6
8
|
}
|
|
7
9
|
}, __webpack_module_cache__ = {};
|
|
8
10
|
function __webpack_require__(moduleId) {
|
|
@@ -13,14 +15,12 @@ function __webpack_require__(moduleId) {
|
|
|
13
15
|
};
|
|
14
16
|
return __webpack_modules__[moduleId](module, module.exports, __webpack_require__), module.exports;
|
|
15
17
|
}
|
|
16
|
-
__webpack_require__.d =
|
|
18
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
17
19
|
for(var key in definition)__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key) && Object.defineProperty(exports1, key, {
|
|
18
20
|
enumerable: !0,
|
|
19
21
|
get: definition[key]
|
|
20
22
|
});
|
|
21
|
-
}, __webpack_require__.o =
|
|
22
|
-
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
23
|
-
}, __webpack_require__.r = function(exports1) {
|
|
23
|
+
}, __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop), __webpack_require__.r = (exports1)=>{
|
|
24
24
|
'undefined' != typeof Symbol && Symbol.toStringTag && Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
25
25
|
value: 'Module'
|
|
26
26
|
}), Object.defineProperty(exports1, '__esModule', {
|
|
@@ -28,10 +28,10 @@ __webpack_require__.d = function(exports1, definition) {
|
|
|
28
28
|
});
|
|
29
29
|
};
|
|
30
30
|
var __webpack_exports__ = {};
|
|
31
|
-
(()=>{
|
|
31
|
+
for(var __webpack_i__ in (()=>{
|
|
32
32
|
__webpack_require__.r(__webpack_exports__), __webpack_require__.d(__webpack_exports__, {
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
PLUGIN_PREACT_NAME: ()=>PLUGIN_PREACT_NAME,
|
|
34
|
+
pluginPreact: ()=>pluginPreact
|
|
35
35
|
});
|
|
36
36
|
let src_require = (0, require("node:module").createRequire)(__rslib_import_meta_url__), PLUGIN_PREACT_NAME = 'rsbuild:preact', pluginPreact = (userOptions = {})=>({
|
|
37
37
|
name: PLUGIN_PREACT_NAME,
|
|
@@ -98,9 +98,10 @@ var __webpack_exports__ = {};
|
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
100
|
});
|
|
101
|
-
})()
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
101
|
+
})(), exports.PLUGIN_PREACT_NAME = __webpack_exports__.PLUGIN_PREACT_NAME, exports.pluginPreact = __webpack_exports__.pluginPreact, __webpack_exports__)-1 === [
|
|
102
|
+
"PLUGIN_PREACT_NAME",
|
|
103
|
+
"pluginPreact"
|
|
104
|
+
].indexOf(__webpack_i__) && (exports[__webpack_i__] = __webpack_exports__[__webpack_i__]);
|
|
105
|
+
Object.defineProperty(exports, '__esModule', {
|
|
105
106
|
value: !0
|
|
106
107
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/plugin-preact",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "Preact plugin for Rsbuild",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
"@prefresh/core": "^1.5.3",
|
|
26
26
|
"@prefresh/utils": "^1.2.0",
|
|
27
27
|
"@rspack/plugin-preact-refresh": "^1.1.2",
|
|
28
|
-
"@swc/plugin-prefresh": "^
|
|
28
|
+
"@swc/plugin-prefresh": "^7.0.4"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@rslib/core": "0.
|
|
32
|
-
"@types/node": "^22.
|
|
33
|
-
"preact": "^10.26.
|
|
34
|
-
"typescript": "^5.
|
|
35
|
-
"@rsbuild/core": "1.2
|
|
31
|
+
"@rslib/core": "0.9.1",
|
|
32
|
+
"@types/node": "^22.15.30",
|
|
33
|
+
"preact": "^10.26.8",
|
|
34
|
+
"typescript": "^5.8.3",
|
|
35
|
+
"@rsbuild/core": "1.4.0-beta.2"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@rsbuild/core": "1.x"
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"build": "rslib build",
|
|
47
|
-
"dev": "rslib build --watch"
|
|
47
|
+
"dev": "rslib build --watch",
|
|
48
|
+
"bump": "npx bumpp --no-tag"
|
|
48
49
|
}
|
|
49
50
|
}
|