@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/vite.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as src_default } from "./src-B90a6jGZ.mjs";
1
+ import src_default from "./index.mjs";
2
2
 
3
3
  //#region src/vite.ts
4
4
  var vite_default = src_default.vite;
package/dist/webpack.cjs CHANGED
@@ -1,7 +1,7 @@
1
- const require_src = require('./src-iKoYupSN.cjs');
1
+ const require_index = require('./index.cjs');
2
2
 
3
3
  //#region src/webpack.ts
4
- var webpack_default = require_src.src_default.webpack;
4
+ var webpack_default = require_index.webpack;
5
5
 
6
6
  //#endregion
7
7
  module.exports = webpack_default;
@@ -1,4 +1,4 @@
1
- import { t as Options } from "./types-kY4Kv7To.cjs";
1
+ import { Options } from "./types.cjs";
2
2
 
3
3
  //#region src/webpack.d.ts
4
4
  declare const _default: (options: Options) => WebpackPluginInstance;
@@ -1,4 +1,4 @@
1
- import { t as Options } from "./types-CJlLAFDH.mjs";
1
+ import { Options } from "./types.mjs";
2
2
 
3
3
  //#region src/webpack.d.ts
4
4
  declare const _default: (options: Options) => WebpackPluginInstance;
package/dist/webpack.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as src_default } from "./src-B90a6jGZ.mjs";
1
+ import src_default from "./index.mjs";
2
2
 
3
3
  //#region src/webpack.ts
4
4
  var webpack_default = src_default.webpack;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@monstermann/unplugin-dsp",
3
3
  "type": "module",
4
- "version": "0.3.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.3.0",
120
- "unplugin": "^2.3.4",
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
  }
@@ -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 };
@@ -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 };