@monstermann/unplugin-dsp 0.3.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 +3 -3
- package/dist/esbuild.d.mts +3 -3
- package/dist/esbuild.mjs +1 -1
- package/dist/index.cjs +30 -2
- package/dist/index.d.cts +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +27 -1
- 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 +5574 -3
- package/dist/rolldown.d.mts +5574 -3
- package/dist/rolldown.mjs +1 -1
- 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 +3 -3
- package/dist/rollup.d.mts +3 -3
- package/dist/rollup.mjs +1 -1
- package/dist/rspack.cjs +2 -2
- package/dist/rspack.d.cts +1 -1
- package/dist/rspack.d.mts +1 -1
- package/dist/rspack.mjs +1 -1
- package/dist/types.d.cts +10 -1
- package/dist/types.d.mts +10 -1
- package/dist/vite.cjs +2 -2
- package/dist/vite.d.cts +3045 -3
- package/dist/vite.d.mts +3045 -3
- package/dist/vite.mjs +1 -1
- package/dist/webpack.cjs +2 -2
- package/dist/webpack.d.cts +1 -1
- package/dist/webpack.d.mts +1 -1
- package/dist/webpack.mjs +1 -1
- package/package.json +3 -3
- package/dist/src-B90a6jGZ.mjs +0 -29
- package/dist/src-iKoYupSN.cjs +0 -62
- package/dist/types-CJlLAFDH.d.mts +0 -11
- package/dist/types-kY4Kv7To.d.cts +0 -11
package/dist/vite.mjs
CHANGED
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/dist/webpack.d.cts
CHANGED
package/dist/webpack.d.mts
CHANGED
package/dist/webpack.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@monstermann/unplugin-dsp",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.4.0",
|
|
5
5
|
"description": "Small & fast disposables.",
|
|
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-B90a6jGZ.mjs
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import transform from "@monstermann/tree-shake-import-namespaces";
|
|
2
|
-
import { createUnplugin } from "unplugin";
|
|
3
|
-
import { createFilter } from "unplugin-utils";
|
|
4
|
-
|
|
5
|
-
//#region src/index.ts
|
|
6
|
-
var src_default = createUnplugin(({ debug, enforce, exclude, include } = {}) => {
|
|
7
|
-
const shouldDebug = debug === void 0 ? () => false : typeof debug === "boolean" ? () => debug : createFilter(debug);
|
|
8
|
-
return {
|
|
9
|
-
enforce,
|
|
10
|
-
name: "unplugin-dsp",
|
|
11
|
-
transform: {
|
|
12
|
-
filter: { id: {
|
|
13
|
-
exclude,
|
|
14
|
-
include: include || [/\.[jt]sx?$/]
|
|
15
|
-
} },
|
|
16
|
-
handler(code, id) {
|
|
17
|
-
return transform(code, id, {
|
|
18
|
-
debug: shouldDebug(id),
|
|
19
|
-
resolve({ importAlias, importName, importPath, propertyName }) {
|
|
20
|
-
if (importPath === "@monstermann/dsp" && importName === "Dsp") return `import { ${propertyName} as ${importAlias} } from "@monstermann/dsp/Dsp/${propertyName}.mjs"`;
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
//#endregion
|
|
29
|
-
export { src_default as t };
|
package/dist/src-iKoYupSN.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-dsp",
|
|
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/dsp" && importName === "Dsp") return `import { ${propertyName} as ${importAlias} } from "@monstermann/dsp/Dsp/${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
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { FilterPattern } from "unplugin";
|
|
2
|
-
|
|
3
|
-
//#region src/types.d.ts
|
|
4
|
-
interface Options {
|
|
5
|
-
debug?: boolean | FilterPattern;
|
|
6
|
-
enforce?: "post" | "pre" | undefined;
|
|
7
|
-
exclude?: FilterPattern;
|
|
8
|
-
include?: FilterPattern;
|
|
9
|
-
}
|
|
10
|
-
//#endregion
|
|
11
|
-
export { Options as t };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { FilterPattern } from "unplugin";
|
|
2
|
-
|
|
3
|
-
//#region src/types.d.ts
|
|
4
|
-
interface Options {
|
|
5
|
-
debug?: boolean | FilterPattern;
|
|
6
|
-
enforce?: "post" | "pre" | undefined;
|
|
7
|
-
exclude?: FilterPattern;
|
|
8
|
-
include?: FilterPattern;
|
|
9
|
-
}
|
|
10
|
-
//#endregion
|
|
11
|
-
export { Options as t };
|