@monstermann/unplugin-map 0.2.0 → 0.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/dist/chunk-C0xms8kb.cjs +34 -0
- package/dist/esbuild.cjs +2 -2
- package/dist/esbuild.d.cts +2 -2
- package/dist/esbuild.d.mts +2 -2
- package/dist/index.cjs +30 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/main-BM15Gvzx.d.cts +601 -0
- package/dist/main-C-Md8Psx.d.mts +601 -0
- package/dist/rolldown.cjs +2 -2
- package/dist/rolldown.d.cts +5573 -2
- package/dist/rolldown.d.mts +5573 -2
- package/dist/rollup-CswG1dEP.d.mts +1263 -0
- package/dist/rollup-D_OiGTC-.d.cts +1263 -0
- package/dist/rollup.cjs +2 -2
- package/dist/rollup.d.cts +2 -2
- package/dist/rollup.d.mts +2 -2
- package/dist/rspack.cjs +2 -2
- package/dist/vite.cjs +2 -2
- package/dist/vite.d.cts +3044 -2
- package/dist/vite.d.mts +3044 -2
- package/dist/webpack.cjs +2 -2
- package/package.json +3 -3
- package/dist/src-AjuA4p5U.cjs +0 -62
package/dist/webpack.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_index = require('./index.cjs');
|
|
2
2
|
|
|
3
3
|
//#region src/webpack.ts
|
|
4
|
-
var webpack_default =
|
|
4
|
+
var webpack_default = require_index.webpack;
|
|
5
5
|
|
|
6
6
|
//#endregion
|
|
7
7
|
module.exports = webpack_default;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@monstermann/unplugin-map",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.4.0",
|
|
5
5
|
"description": "Functional utilities for maps.",
|
|
6
6
|
"author": "Michael Ostermann <michaelostermann@me.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -116,8 +116,8 @@
|
|
|
116
116
|
"release": "bun publish --access public"
|
|
117
117
|
},
|
|
118
118
|
"dependencies": {
|
|
119
|
-
"@monstermann/tree-shake-import-namespaces": "^0.
|
|
120
|
-
"unplugin": "^
|
|
119
|
+
"@monstermann/tree-shake-import-namespaces": "^0.4.0",
|
|
120
|
+
"unplugin": "^3.0.0",
|
|
121
121
|
"unplugin-utils": "^0.3.0"
|
|
122
122
|
}
|
|
123
123
|
}
|
package/dist/src-AjuA4p5U.cjs
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
//#region rolldown:runtime
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
-
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
11
|
-
key = keys[i];
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
13
|
-
__defProp(to, key, {
|
|
14
|
-
get: ((k) => from[k]).bind(null, key),
|
|
15
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
return to;
|
|
21
|
-
};
|
|
22
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
23
|
-
value: mod,
|
|
24
|
-
enumerable: true
|
|
25
|
-
}) : target, mod));
|
|
26
|
-
|
|
27
|
-
//#endregion
|
|
28
|
-
let _monstermann_tree_shake_import_namespaces = require("@monstermann/tree-shake-import-namespaces");
|
|
29
|
-
_monstermann_tree_shake_import_namespaces = __toESM(_monstermann_tree_shake_import_namespaces);
|
|
30
|
-
let unplugin = require("unplugin");
|
|
31
|
-
let unplugin_utils = require("unplugin-utils");
|
|
32
|
-
|
|
33
|
-
//#region src/index.ts
|
|
34
|
-
var src_default = (0, unplugin.createUnplugin)(({ debug, enforce, exclude, include } = {}) => {
|
|
35
|
-
const shouldDebug = debug === void 0 ? () => false : typeof debug === "boolean" ? () => debug : (0, unplugin_utils.createFilter)(debug);
|
|
36
|
-
return {
|
|
37
|
-
enforce,
|
|
38
|
-
name: "unplugin-map",
|
|
39
|
-
transform: {
|
|
40
|
-
filter: { id: {
|
|
41
|
-
exclude,
|
|
42
|
-
include: include || [/\.[jt]sx?$/]
|
|
43
|
-
} },
|
|
44
|
-
handler(code, id) {
|
|
45
|
-
return (0, _monstermann_tree_shake_import_namespaces.default)(code, id, {
|
|
46
|
-
debug: shouldDebug(id),
|
|
47
|
-
resolve({ importAlias, importName, importPath, propertyName }) {
|
|
48
|
-
if (importPath === "@monstermann/map" && importName === "Map") return `import { ${propertyName} as ${importAlias} } from "@monstermann/map/Map/${propertyName}.mjs"`;
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
//#endregion
|
|
57
|
-
Object.defineProperty(exports, 'src_default', {
|
|
58
|
-
enumerable: true,
|
|
59
|
-
get: function () {
|
|
60
|
-
return src_default;
|
|
61
|
-
}
|
|
62
|
-
});
|