unplugin-isolated-decl 0.2.0 → 0.3.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/esbuild.cjs +2 -2
- package/dist/esbuild.d.cts +2 -2
- package/dist/esbuild.d.ts +2 -2
- package/dist/esbuild.js +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/rolldown.cjs +2 -2
- package/dist/rolldown.d.cts +2 -2
- package/dist/rolldown.d.ts +2 -2
- package/dist/rolldown.js +2 -2
- package/dist/rollup.cjs +2 -2
- package/dist/rollup.d.cts +2 -2
- package/dist/rollup.d.ts +2 -2
- package/dist/rollup.js +2 -2
- package/dist/{src_index--yc62mkz.js → src_index--o4926Ps.js} +2 -3
- package/dist/{src_index-ff_kRS8x.cjs → src_index-1GProTgq.cjs} +3 -8
- package/dist/vite.cjs +2 -2
- package/dist/vite.d.cts +2 -2
- package/dist/vite.d.ts +2 -2
- package/dist/vite.js +2 -2
- package/package.json +1 -1
package/dist/esbuild.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
const { __export, __toCommonJS } = require("./chunk-J8LkbbVi.cjs");
|
|
4
|
-
const {
|
|
4
|
+
const { IsolatedDecl } = require("./src_index-1GProTgq.cjs");
|
|
5
5
|
|
|
6
6
|
//#region src/esbuild.ts
|
|
7
7
|
var esbuild_ns = {};
|
|
8
8
|
__export(esbuild_ns, {default: () => esbuild_default});
|
|
9
|
-
var esbuild_default =
|
|
9
|
+
var esbuild_default = IsolatedDecl.esbuild;
|
|
10
10
|
|
|
11
11
|
//#endregion
|
|
12
12
|
module.exports = __toCommonJS(esbuild_ns)
|
package/dist/esbuild.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare const _default: typeof
|
|
1
|
+
import { IsolatedDecl } from './index';
|
|
2
|
+
declare const _default: typeof IsolatedDecl.esbuild;
|
|
3
3
|
export default _default;
|
package/dist/esbuild.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare const _default: typeof
|
|
1
|
+
import { IsolatedDecl } from './index';
|
|
2
|
+
declare const _default: typeof IsolatedDecl.esbuild;
|
|
3
3
|
export default _default;
|
package/dist/esbuild.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IsolatedDecl } from "./src_index--o4926Ps.js";
|
|
2
2
|
|
|
3
3
|
//#region src/esbuild.ts
|
|
4
|
-
var esbuild_default =
|
|
4
|
+
var esbuild_default = IsolatedDecl.esbuild;
|
|
5
5
|
|
|
6
6
|
//#endregion
|
|
7
7
|
export { esbuild_default as default };
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
const { __toCommonJS } = require("./chunk-J8LkbbVi.cjs");
|
|
4
|
-
const {
|
|
4
|
+
const { IsolatedDecl, src_index_ns } = require("./src_index-1GProTgq.cjs");
|
|
5
5
|
|
|
6
6
|
module.exports = __toCommonJS(src_index_ns)
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type UnpluginInstance } from 'unplugin';
|
|
2
2
|
import { type Options } from './core/options';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type { Options };
|
|
4
|
+
export declare const IsolatedDecl: UnpluginInstance<((Options) | (undefined)), false>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type UnpluginInstance } from 'unplugin';
|
|
2
2
|
import { type Options } from './core/options';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type { Options };
|
|
4
|
+
export declare const IsolatedDecl: UnpluginInstance<((Options) | (undefined)), false>;
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IsolatedDecl } from "./src_index--o4926Ps.js";
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { IsolatedDecl };
|
package/dist/rolldown.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
const { __export, __toCommonJS } = require("./chunk-J8LkbbVi.cjs");
|
|
4
|
-
const {
|
|
4
|
+
const { IsolatedDecl } = require("./src_index-1GProTgq.cjs");
|
|
5
5
|
|
|
6
6
|
//#region src/rolldown.ts
|
|
7
7
|
var rolldown_ns = {};
|
|
8
8
|
__export(rolldown_ns, {default: () => rolldown_default});
|
|
9
|
-
var rolldown_default =
|
|
9
|
+
var rolldown_default = IsolatedDecl.rolldown;
|
|
10
10
|
|
|
11
11
|
//#endregion
|
|
12
12
|
module.exports = __toCommonJS(rolldown_ns)
|
package/dist/rolldown.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare const _default: typeof
|
|
1
|
+
import { IsolatedDecl } from './index';
|
|
2
|
+
declare const _default: typeof IsolatedDecl.rolldown;
|
|
3
3
|
export default _default;
|
package/dist/rolldown.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare const _default: typeof
|
|
1
|
+
import { IsolatedDecl } from './index';
|
|
2
|
+
declare const _default: typeof IsolatedDecl.rolldown;
|
|
3
3
|
export default _default;
|
package/dist/rolldown.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IsolatedDecl } from "./src_index--o4926Ps.js";
|
|
2
2
|
|
|
3
3
|
//#region src/rolldown.ts
|
|
4
|
-
var rolldown_default =
|
|
4
|
+
var rolldown_default = IsolatedDecl.rolldown;
|
|
5
5
|
|
|
6
6
|
//#endregion
|
|
7
7
|
export { rolldown_default as default };
|
package/dist/rollup.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
const { __export, __toCommonJS } = require("./chunk-J8LkbbVi.cjs");
|
|
4
|
-
const {
|
|
4
|
+
const { IsolatedDecl } = require("./src_index-1GProTgq.cjs");
|
|
5
5
|
|
|
6
6
|
//#region src/rollup.ts
|
|
7
7
|
var rollup_ns = {};
|
|
8
8
|
__export(rollup_ns, {default: () => rollup_default});
|
|
9
|
-
var rollup_default =
|
|
9
|
+
var rollup_default = IsolatedDecl.rollup;
|
|
10
10
|
|
|
11
11
|
//#endregion
|
|
12
12
|
module.exports = __toCommonJS(rollup_ns)
|
package/dist/rollup.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare const _default: typeof
|
|
1
|
+
import { IsolatedDecl } from './index';
|
|
2
|
+
declare const _default: typeof IsolatedDecl.rollup;
|
|
3
3
|
export default _default;
|
package/dist/rollup.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare const _default: typeof
|
|
1
|
+
import { IsolatedDecl } from './index';
|
|
2
|
+
declare const _default: typeof IsolatedDecl.rollup;
|
|
3
3
|
export default _default;
|
package/dist/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IsolatedDecl } from "./src_index--o4926Ps.js";
|
|
2
2
|
|
|
3
3
|
//#region src/rollup.ts
|
|
4
|
-
var rollup_default =
|
|
4
|
+
var rollup_default = IsolatedDecl.rollup;
|
|
5
5
|
|
|
6
6
|
//#endregion
|
|
7
7
|
export { rollup_default as default };
|
|
@@ -15,7 +15,7 @@ function resolveOptions(options) {
|
|
|
15
15
|
|
|
16
16
|
//#endregion
|
|
17
17
|
//#region src/index.ts
|
|
18
|
-
const
|
|
18
|
+
const IsolatedDecl = createUnplugin((rawOptions = {}, meta) => {
|
|
19
19
|
const options = resolveOptions(rawOptions);
|
|
20
20
|
const filter = createFilter(options.include, options.exclude);
|
|
21
21
|
const outputFiles = {};
|
|
@@ -91,7 +91,6 @@ const plugin = createUnplugin((rawOptions = {}, meta) => {
|
|
|
91
91
|
}
|
|
92
92
|
};
|
|
93
93
|
});
|
|
94
|
-
var src_index_default = plugin;
|
|
95
94
|
function lowestCommonAncestor(...filepaths) {
|
|
96
95
|
if (filepaths.length === 0) return '';
|
|
97
96
|
if (filepaths.length === 1) return path.dirname(filepaths[0]);
|
|
@@ -114,4 +113,4 @@ function lowestCommonAncestor(...filepaths) {
|
|
|
114
113
|
}
|
|
115
114
|
|
|
116
115
|
//#endregion
|
|
117
|
-
export {
|
|
116
|
+
export { IsolatedDecl };
|
|
@@ -19,11 +19,8 @@ function resolveOptions(options) {
|
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region src/index.ts
|
|
21
21
|
var src_index_ns = {};
|
|
22
|
-
__export(src_index_ns, {
|
|
23
|
-
|
|
24
|
-
plugin: () => plugin
|
|
25
|
-
});
|
|
26
|
-
const plugin = createUnplugin((rawOptions = {}, meta) => {
|
|
22
|
+
__export(src_index_ns, {IsolatedDecl: () => IsolatedDecl});
|
|
23
|
+
const IsolatedDecl = createUnplugin((rawOptions = {}, meta) => {
|
|
27
24
|
const options = resolveOptions(rawOptions);
|
|
28
25
|
const filter = createFilter(options.include, options.exclude);
|
|
29
26
|
const outputFiles = {};
|
|
@@ -99,7 +96,6 @@ const plugin = createUnplugin((rawOptions = {}, meta) => {
|
|
|
99
96
|
}
|
|
100
97
|
};
|
|
101
98
|
});
|
|
102
|
-
var src_index_default = plugin;
|
|
103
99
|
function lowestCommonAncestor(...filepaths) {
|
|
104
100
|
if (filepaths.length === 0) return '';
|
|
105
101
|
if (filepaths.length === 1) return path.dirname(filepaths[0]);
|
|
@@ -122,6 +118,5 @@ function lowestCommonAncestor(...filepaths) {
|
|
|
122
118
|
}
|
|
123
119
|
|
|
124
120
|
//#endregion
|
|
125
|
-
exports.
|
|
126
|
-
exports.src_index_default = src_index_default;
|
|
121
|
+
exports.IsolatedDecl = IsolatedDecl;
|
|
127
122
|
exports.src_index_ns = src_index_ns;
|
package/dist/vite.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
const { __export, __toCommonJS } = require("./chunk-J8LkbbVi.cjs");
|
|
4
|
-
const {
|
|
4
|
+
const { IsolatedDecl } = require("./src_index-1GProTgq.cjs");
|
|
5
5
|
|
|
6
6
|
//#region src/vite.ts
|
|
7
7
|
var vite_ns = {};
|
|
8
8
|
__export(vite_ns, {default: () => vite_default});
|
|
9
|
-
var vite_default =
|
|
9
|
+
var vite_default = IsolatedDecl.vite;
|
|
10
10
|
|
|
11
11
|
//#endregion
|
|
12
12
|
module.exports = __toCommonJS(vite_ns)
|
package/dist/vite.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare const _default: typeof
|
|
1
|
+
import { IsolatedDecl } from './index';
|
|
2
|
+
declare const _default: typeof IsolatedDecl.vite;
|
|
3
3
|
export default _default;
|
package/dist/vite.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare const _default: typeof
|
|
1
|
+
import { IsolatedDecl } from './index';
|
|
2
|
+
declare const _default: typeof IsolatedDecl.vite;
|
|
3
3
|
export default _default;
|
package/dist/vite.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IsolatedDecl } from "./src_index--o4926Ps.js";
|
|
2
2
|
|
|
3
3
|
//#region src/vite.ts
|
|
4
|
-
var vite_default =
|
|
4
|
+
var vite_default = IsolatedDecl.vite;
|
|
5
5
|
|
|
6
6
|
//#endregion
|
|
7
7
|
export { vite_default as default };
|