@torpor/unplugin 0.1.5 → 0.1.7

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/astro.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkPRGH7GBMcjs = require('./chunk-PRGH7GBM.cjs');
3
+ var _chunkXK36IL7Zcjs = require('./chunk-XK36IL7Z.cjs');
4
4
  require('./chunk-ZBPRDZS4.cjs');
5
5
 
6
6
  // src/astro.ts
@@ -9,7 +9,7 @@ var astro_default = (options) => ({
9
9
  hooks: {
10
10
  "astro:config:setup": async (astro) => {
11
11
  astro.config.vite.plugins ||= [];
12
- astro.config.vite.plugins.push(_chunkPRGH7GBMcjs.index_default.vite(options));
12
+ astro.config.vite.plugins.push(_chunkXK36IL7Zcjs.index_default.vite(options));
13
13
  }
14
14
  }
15
15
  });
package/dist/astro.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  index_default
3
- } from "./chunk-7K2FYQ3F.js";
3
+ } from "./chunk-5WPS53Q5.js";
4
4
  import "./chunk-6F4PWJZI.js";
5
5
 
6
6
  // src/astro.ts
@@ -27,6 +27,9 @@ var unpluginFactory = (options) => ({
27
27
  options ??= {};
28
28
  options.server = viteOptions.ssr;
29
29
  }
30
+ if (options?.test) {
31
+ options.server = true;
32
+ }
30
33
  let parsed = parse(code);
31
34
  if (parsed.ok && parsed.template) {
32
35
  return transform(parsed.template, id, options);
@@ -1,10 +1,11 @@
1
1
  import {
2
2
  unpluginFactory
3
- } from "./chunk-7K2FYQ3F.js";
3
+ } from "./chunk-5WPS53Q5.js";
4
4
 
5
5
  // src/vite.ts
6
6
  import { createVitePlugin } from "unplugin";
7
- var vite_default = createVitePlugin(unpluginFactory);
7
+ var plugin = createVitePlugin(unpluginFactory);
8
+ var vite_default = plugin;
8
9
 
9
10
  export {
10
11
  vite_default
@@ -0,0 +1,12 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkXK36IL7Zcjs = require('./chunk-XK36IL7Z.cjs');
4
+
5
+ // src/vite.ts
6
+ var _unplugin = require('unplugin');
7
+ var plugin = _unplugin.createVitePlugin.call(void 0, _chunkXK36IL7Zcjs.unpluginFactory);
8
+ var vite_default = plugin;
9
+
10
+
11
+
12
+ exports.vite_default = vite_default;
@@ -1,10 +1,11 @@
1
1
  import {
2
2
  unpluginFactory
3
- } from "./chunk-7K2FYQ3F.js";
3
+ } from "./chunk-5WPS53Q5.js";
4
4
 
5
5
  // src/webpack.ts
6
6
  import { createWebpackPlugin } from "unplugin";
7
- var webpack_default = createWebpackPlugin(unpluginFactory);
7
+ var plugin = createWebpackPlugin(unpluginFactory);
8
+ var webpack_default = plugin;
8
9
 
9
10
  export {
10
11
  webpack_default
@@ -27,11 +27,14 @@ var unpluginFactory = (options) => ({
27
27
  options ??= {};
28
28
  options.server = viteOptions.ssr;
29
29
  }
30
+ if (_optionalChain([options, 'optionalAccess', _ => _.test])) {
31
+ options.server = true;
32
+ }
30
33
  let parsed = _compile.parse.call(void 0, code);
31
34
  if (parsed.ok && parsed.template) {
32
35
  return transform(parsed.template, id, options);
33
36
  } else {
34
- let name = _optionalChain([id, 'access', _ => _.split, 'call', _2 => _2(/[\\\/]/), 'access', _3 => _3.at, 'call', _4 => _4(-1), 'optionalAccess', _5 => _5.replace, 'call', _6 => _6(/\.torp$/, "")]);
37
+ let name = _optionalChain([id, 'access', _2 => _2.split, 'call', _3 => _3(/[\\\/]/), 'access', _4 => _4.at, 'call', _5 => _5(-1), 'optionalAccess', _6 => _6.replace, 'call', _7 => _7(/\.torp$/, "")]);
35
38
  let errorMessages = parsed.errors.map((e) => `${e.line},${e.column}: ${e.message}`);
36
39
  console.log(`
37
40
  ERRORS
@@ -0,0 +1,12 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkXK36IL7Zcjs = require('./chunk-XK36IL7Z.cjs');
4
+
5
+ // src/webpack.ts
6
+ var _unplugin = require('unplugin');
7
+ var plugin = _unplugin.createWebpackPlugin.call(void 0, _chunkXK36IL7Zcjs.unpluginFactory);
8
+ var webpack_default = plugin;
9
+
10
+
11
+
12
+ exports.webpack_default = webpack_default;
package/dist/esbuild.cjs CHANGED
@@ -1,11 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkPRGH7GBMcjs = require('./chunk-PRGH7GBM.cjs');
3
+ var _chunkXK36IL7Zcjs = require('./chunk-XK36IL7Z.cjs');
4
4
  require('./chunk-ZBPRDZS4.cjs');
5
5
 
6
6
  // src/esbuild.ts
7
7
  var _unplugin = require('unplugin');
8
- var esbuild_default = _unplugin.createEsbuildPlugin.call(void 0, _chunkPRGH7GBMcjs.unpluginFactory);
8
+ var plugin = _unplugin.createEsbuildPlugin.call(void 0, _chunkXK36IL7Zcjs.unpluginFactory);
9
+ var esbuild_default = plugin;
9
10
 
10
11
 
11
12
  module.exports = esbuild_default;
@@ -1,6 +1,6 @@
1
- import * as esbuild from 'esbuild';
1
+ import { Plugin } from 'esbuild';
2
2
  import { Options } from './types.cjs';
3
3
 
4
- declare const _default: (options?: Options | undefined) => esbuild.Plugin;
4
+ declare const plugin: (options?: Options | undefined) => Plugin;
5
5
 
6
- export = _default;
6
+ export = plugin;
package/dist/esbuild.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import * as esbuild from 'esbuild';
1
+ import { Plugin } from 'esbuild';
2
2
  import { Options } from './types.js';
3
3
 
4
- declare const _default: (options?: Options | undefined) => esbuild.Plugin;
4
+ declare const plugin: (options?: Options | undefined) => Plugin;
5
5
 
6
- export { _default as default };
6
+ export { plugin as default };
package/dist/esbuild.js CHANGED
@@ -1,11 +1,12 @@
1
1
  import {
2
2
  unpluginFactory
3
- } from "./chunk-7K2FYQ3F.js";
3
+ } from "./chunk-5WPS53Q5.js";
4
4
  import "./chunk-6F4PWJZI.js";
5
5
 
6
6
  // src/esbuild.ts
7
7
  import { createEsbuildPlugin } from "unplugin";
8
- var esbuild_default = createEsbuildPlugin(unpluginFactory);
8
+ var plugin = createEsbuildPlugin(unpluginFactory);
9
+ var esbuild_default = plugin;
9
10
  export {
10
11
  esbuild_default as default
11
12
  };
package/dist/index.cjs CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkPRGH7GBMcjs = require('./chunk-PRGH7GBM.cjs');
5
+ var _chunkXK36IL7Zcjs = require('./chunk-XK36IL7Z.cjs');
6
6
  require('./chunk-ZBPRDZS4.cjs');
7
7
 
8
8
 
9
9
 
10
10
 
11
- module.exports = _chunkPRGH7GBMcjs.index_default; exports.unplugin = _chunkPRGH7GBMcjs.unplugin; exports.unpluginFactory = _chunkPRGH7GBMcjs.unpluginFactory;
11
+ module.exports = _chunkXK36IL7Zcjs.index_default; exports.unplugin = _chunkXK36IL7Zcjs.unplugin; exports.unpluginFactory = _chunkXK36IL7Zcjs.unpluginFactory;
12
12
  exports.default = module.exports;
package/dist/index.d.cts CHANGED
@@ -1,8 +1,7 @@
1
- import * as _unplugin from 'unplugin';
2
- import { UnpluginFactory } from 'unplugin';
1
+ import { UnpluginInstance, UnpluginFactory } from 'unplugin';
3
2
  import { Options } from './types.cjs';
4
3
 
5
4
  declare const unpluginFactory: UnpluginFactory<Options | undefined>;
6
- declare const unplugin: _unplugin.UnpluginInstance<Options | undefined, boolean>;
5
+ declare const unplugin: UnpluginInstance<Options | undefined, boolean>;
7
6
 
8
7
  export { unplugin as default, unplugin, unpluginFactory };
package/dist/index.d.ts CHANGED
@@ -1,8 +1,7 @@
1
- import * as _unplugin from 'unplugin';
2
- import { UnpluginFactory } from 'unplugin';
1
+ import { UnpluginInstance, UnpluginFactory } from 'unplugin';
3
2
  import { Options } from './types.js';
4
3
 
5
4
  declare const unpluginFactory: UnpluginFactory<Options | undefined>;
6
- declare const unplugin: _unplugin.UnpluginInstance<Options | undefined, boolean>;
5
+ declare const unplugin: UnpluginInstance<Options | undefined, boolean>;
7
6
 
8
7
  export { unplugin as default, unplugin, unpluginFactory };
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  index_default,
3
3
  unplugin,
4
4
  unpluginFactory
5
- } from "./chunk-7K2FYQ3F.js";
5
+ } from "./chunk-5WPS53Q5.js";
6
6
  import "./chunk-6F4PWJZI.js";
7
7
  export {
8
8
  index_default as default,
package/dist/nuxt.cjs CHANGED
@@ -1,16 +1,16 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkJD76426Tcjs = require('./chunk-JD76426T.cjs');
3
+ var _chunkY42T2V4Ecjs = require('./chunk-Y42T2V4E.cjs');
4
4
 
5
5
 
6
- var _chunkUDMRBJYVcjs = require('./chunk-UDMRBJYV.cjs');
7
- require('./chunk-PRGH7GBM.cjs');
6
+ var _chunkMXZDWS2Ycjs = require('./chunk-MXZDWS2Y.cjs');
7
+ require('./chunk-XK36IL7Z.cjs');
8
8
  require('./chunk-ZBPRDZS4.cjs');
9
9
 
10
10
  // src/nuxt.ts
11
11
  var _kit = require('@nuxt/kit');
12
12
  require('@nuxt/schema');
13
- var nuxt_default = _kit.defineNuxtModule.call(void 0, {
13
+ var plugin = _kit.defineNuxtModule.call(void 0, {
14
14
  meta: {
15
15
  name: "nuxt-unplugin-torpor",
16
16
  configKey: "unpluginStarter"
@@ -19,10 +19,11 @@ var nuxt_default = _kit.defineNuxtModule.call(void 0, {
19
19
  // ...default options
20
20
  },
21
21
  setup(options, _nuxt) {
22
- _kit.addVitePlugin.call(void 0, () => _chunkUDMRBJYVcjs.vite_default.call(void 0, options));
23
- _kit.addWebpackPlugin.call(void 0, () => _chunkJD76426Tcjs.webpack_default.call(void 0, options));
22
+ _kit.addVitePlugin.call(void 0, () => _chunkMXZDWS2Ycjs.vite_default.call(void 0, options));
23
+ _kit.addWebpackPlugin.call(void 0, () => _chunkY42T2V4Ecjs.webpack_default.call(void 0, options));
24
24
  }
25
25
  });
26
+ var nuxt_default = plugin;
26
27
 
27
28
 
28
29
  module.exports = nuxt_default;
package/dist/nuxt.d.cts CHANGED
@@ -1,8 +1,8 @@
1
- import * as _nuxt_schema from '@nuxt/schema';
1
+ import { NuxtModule } from '@nuxt/schema';
2
2
  import { Options } from './types.cjs';
3
3
 
4
4
  interface ModuleOptions extends Options {
5
5
  }
6
- declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
6
+ declare const plugin: NuxtModule<ModuleOptions, ModuleOptions, false>;
7
7
 
8
- export { type ModuleOptions, _default as default };
8
+ export { type ModuleOptions, plugin as default };
package/dist/nuxt.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import * as _nuxt_schema from '@nuxt/schema';
1
+ import { NuxtModule } from '@nuxt/schema';
2
2
  import { Options } from './types.js';
3
3
 
4
4
  interface ModuleOptions extends Options {
5
5
  }
6
- declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
6
+ declare const plugin: NuxtModule<ModuleOptions, ModuleOptions, false>;
7
7
 
8
- export { type ModuleOptions, _default as default };
8
+ export { type ModuleOptions, plugin as default };
package/dist/nuxt.js CHANGED
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  webpack_default
3
- } from "./chunk-Z4LT4V4A.js";
3
+ } from "./chunk-U7YR3TR4.js";
4
4
  import {
5
5
  vite_default
6
- } from "./chunk-SVFWML4D.js";
7
- import "./chunk-7K2FYQ3F.js";
6
+ } from "./chunk-F4YJH6LE.js";
7
+ import "./chunk-5WPS53Q5.js";
8
8
  import "./chunk-6F4PWJZI.js";
9
9
 
10
10
  // src/nuxt.ts
11
11
  import { addVitePlugin, addWebpackPlugin, defineNuxtModule } from "@nuxt/kit";
12
12
  import "@nuxt/schema";
13
- var nuxt_default = defineNuxtModule({
13
+ var plugin = defineNuxtModule({
14
14
  meta: {
15
15
  name: "nuxt-unplugin-torpor",
16
16
  configKey: "unpluginStarter"
@@ -23,6 +23,7 @@ var nuxt_default = defineNuxtModule({
23
23
  addWebpackPlugin(() => webpack_default(options));
24
24
  }
25
25
  });
26
+ var nuxt_default = plugin;
26
27
  export {
27
28
  nuxt_default as default
28
29
  };
package/dist/rollup.cjs CHANGED
@@ -1,11 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkPRGH7GBMcjs = require('./chunk-PRGH7GBM.cjs');
3
+ var _chunkXK36IL7Zcjs = require('./chunk-XK36IL7Z.cjs');
4
4
  require('./chunk-ZBPRDZS4.cjs');
5
5
 
6
6
  // src/rollup.ts
7
7
  var _unplugin = require('unplugin');
8
- var rollup_default = _unplugin.createRollupPlugin.call(void 0, _chunkPRGH7GBMcjs.unpluginFactory);
8
+ var plugin = _unplugin.createRollupPlugin.call(void 0, _chunkXK36IL7Zcjs.unpluginFactory);
9
+ var rollup_default = plugin;
9
10
 
10
11
 
11
12
  module.exports = rollup_default;
package/dist/rollup.d.cts CHANGED
@@ -1,6 +1,6 @@
1
- import * as rollup from 'rollup';
1
+ import { Plugin } from 'rollup';
2
2
  import { Options } from './types.cjs';
3
3
 
4
- declare const _default: (options?: Options | undefined) => rollup.Plugin<any> | rollup.Plugin<any>[];
4
+ declare const plugin: (options?: Options | undefined) => Plugin<any> | Plugin<any>[];
5
5
 
6
- export = _default;
6
+ export = plugin;
package/dist/rollup.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import * as rollup from 'rollup';
1
+ import { Plugin } from 'rollup';
2
2
  import { Options } from './types.js';
3
3
 
4
- declare const _default: (options?: Options | undefined) => rollup.Plugin<any> | rollup.Plugin<any>[];
4
+ declare const plugin: (options?: Options | undefined) => Plugin<any> | Plugin<any>[];
5
5
 
6
- export { _default as default };
6
+ export { plugin as default };
package/dist/rollup.js CHANGED
@@ -1,11 +1,12 @@
1
1
  import {
2
2
  unpluginFactory
3
- } from "./chunk-7K2FYQ3F.js";
3
+ } from "./chunk-5WPS53Q5.js";
4
4
  import "./chunk-6F4PWJZI.js";
5
5
 
6
6
  // src/rollup.ts
7
7
  import { createRollupPlugin } from "unplugin";
8
- var rollup_default = createRollupPlugin(unpluginFactory);
8
+ var plugin = createRollupPlugin(unpluginFactory);
9
+ var rollup_default = plugin;
9
10
  export {
10
11
  rollup_default as default
11
12
  };
package/dist/rspack.cjs CHANGED
@@ -1,11 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkPRGH7GBMcjs = require('./chunk-PRGH7GBM.cjs');
3
+ var _chunkXK36IL7Zcjs = require('./chunk-XK36IL7Z.cjs');
4
4
  require('./chunk-ZBPRDZS4.cjs');
5
5
 
6
6
  // src/rspack.ts
7
7
  var _unplugin = require('unplugin');
8
- var rspack_default = _unplugin.createRspackPlugin.call(void 0, _chunkPRGH7GBMcjs.unpluginFactory);
8
+ var plugin = _unplugin.createRspackPlugin.call(void 0, _chunkXK36IL7Zcjs.unpluginFactory);
9
+ var rspack_default = plugin;
9
10
 
10
11
 
11
12
  module.exports = rspack_default;
package/dist/rspack.d.cts CHANGED
@@ -1,5 +1,6 @@
1
+ import { RspackPluginInstance } from 'unplugin';
1
2
  import { Options } from './types.cjs';
2
3
 
3
- declare const _default: (options?: Options | undefined) => RspackPluginInstance;
4
+ declare const plugin: (options?: Options | undefined) => RspackPluginInstance;
4
5
 
5
- export = _default;
6
+ export = plugin;
package/dist/rspack.d.ts CHANGED
@@ -1,5 +1,6 @@
1
+ import { RspackPluginInstance } from 'unplugin';
1
2
  import { Options } from './types.js';
2
3
 
3
- declare const _default: (options?: Options | undefined) => RspackPluginInstance;
4
+ declare const plugin: (options?: Options | undefined) => RspackPluginInstance;
4
5
 
5
- export { _default as default };
6
+ export { plugin as default };
package/dist/rspack.js CHANGED
@@ -1,11 +1,12 @@
1
1
  import {
2
2
  unpluginFactory
3
- } from "./chunk-7K2FYQ3F.js";
3
+ } from "./chunk-5WPS53Q5.js";
4
4
  import "./chunk-6F4PWJZI.js";
5
5
 
6
6
  // src/rspack.ts
7
7
  import { createRspackPlugin } from "unplugin";
8
- var rspack_default = createRspackPlugin(unpluginFactory);
8
+ var plugin = createRspackPlugin(unpluginFactory);
9
+ var rspack_default = plugin;
9
10
  export {
10
11
  rspack_default as default
11
12
  };
package/dist/types.d.cts CHANGED
@@ -1,5 +1,12 @@
1
1
  interface Options {
2
+ /**
3
+ * Whether to generate server components which will render HTML
4
+ */
2
5
  server?: boolean;
6
+ /**
7
+ * Whether the plugin is running in a test context
8
+ */
9
+ test?: boolean;
3
10
  }
4
11
 
5
12
  export type { Options };
package/dist/types.d.ts CHANGED
@@ -1,5 +1,12 @@
1
1
  interface Options {
2
+ /**
3
+ * Whether to generate server components which will render HTML
4
+ */
2
5
  server?: boolean;
6
+ /**
7
+ * Whether the plugin is running in a test context
8
+ */
9
+ test?: boolean;
3
10
  }
4
11
 
5
12
  export type { Options };
package/dist/vite.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkUDMRBJYVcjs = require('./chunk-UDMRBJYV.cjs');
4
- require('./chunk-PRGH7GBM.cjs');
3
+ var _chunkMXZDWS2Ycjs = require('./chunk-MXZDWS2Y.cjs');
4
+ require('./chunk-XK36IL7Z.cjs');
5
5
  require('./chunk-ZBPRDZS4.cjs');
6
6
 
7
7
 
8
- module.exports = _chunkUDMRBJYVcjs.vite_default;
8
+ module.exports = _chunkMXZDWS2Ycjs.vite_default;
9
9
 
10
10
  module.exports = exports.default;
11
11
  exports.default = module.exports;
package/dist/vite.d.cts CHANGED
@@ -1,6 +1,6 @@
1
- import * as vite from 'vite';
1
+ import { Plugin } from 'vite';
2
2
  import { Options } from './types.cjs';
3
3
 
4
- declare const _default: (options?: Options | undefined) => vite.Plugin<any> | vite.Plugin<any>[];
4
+ declare const plugin: (options?: Options | undefined) => Plugin<any> | Plugin<any>[];
5
5
 
6
- export = _default;
6
+ export = plugin;
package/dist/vite.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import * as vite from 'vite';
1
+ import { Plugin } from 'vite';
2
2
  import { Options } from './types.js';
3
3
 
4
- declare const _default: (options?: Options | undefined) => vite.Plugin<any> | vite.Plugin<any>[];
4
+ declare const plugin: (options?: Options | undefined) => Plugin<any> | Plugin<any>[];
5
5
 
6
- export { _default as default };
6
+ export { plugin as default };
package/dist/vite.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  vite_default
3
- } from "./chunk-SVFWML4D.js";
4
- import "./chunk-7K2FYQ3F.js";
3
+ } from "./chunk-F4YJH6LE.js";
4
+ import "./chunk-5WPS53Q5.js";
5
5
  import "./chunk-6F4PWJZI.js";
6
6
  export {
7
7
  vite_default as default
package/dist/webpack.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkJD76426Tcjs = require('./chunk-JD76426T.cjs');
4
- require('./chunk-PRGH7GBM.cjs');
3
+ var _chunkY42T2V4Ecjs = require('./chunk-Y42T2V4E.cjs');
4
+ require('./chunk-XK36IL7Z.cjs');
5
5
  require('./chunk-ZBPRDZS4.cjs');
6
6
 
7
7
 
8
- module.exports = _chunkJD76426Tcjs.webpack_default;
8
+ module.exports = _chunkY42T2V4Ecjs.webpack_default;
9
9
 
10
10
  module.exports = exports.default;
11
11
  exports.default = module.exports;
@@ -1,6 +1,6 @@
1
- import * as webpack from 'webpack';
1
+ import { WebpackPluginInstance } from 'unplugin';
2
2
  import { Options } from './types.cjs';
3
3
 
4
- declare const _default: (options?: Options | undefined) => webpack.WebpackPluginInstance;
4
+ declare const plugin: (options?: Options | undefined) => WebpackPluginInstance;
5
5
 
6
- export = _default;
6
+ export = plugin;
package/dist/webpack.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import * as webpack from 'webpack';
1
+ import { WebpackPluginInstance } from 'unplugin';
2
2
  import { Options } from './types.js';
3
3
 
4
- declare const _default: (options?: Options | undefined) => webpack.WebpackPluginInstance;
4
+ declare const plugin: (options?: Options | undefined) => WebpackPluginInstance;
5
5
 
6
- export { _default as default };
6
+ export { plugin as default };
package/dist/webpack.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  webpack_default
3
- } from "./chunk-Z4LT4V4A.js";
4
- import "./chunk-7K2FYQ3F.js";
3
+ } from "./chunk-U7YR3TR4.js";
4
+ import "./chunk-5WPS53Q5.js";
5
5
  import "./chunk-6F4PWJZI.js";
6
6
  export {
7
7
  webpack_default as default
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@torpor/unplugin",
3
3
  "type": "module",
4
- "version": "0.1.5",
4
+ "version": "0.1.7",
5
5
  "description": "Unplugin package to compile Torpor components for Vite, Rollup, and other bundlers",
6
6
  "keywords": [
7
7
  "torpor",
@@ -106,30 +106,30 @@
106
106
  },
107
107
  "devDependencies": {
108
108
  "@antfu/eslint-config": "^4.12.0",
109
- "@nuxt/kit": "^3.16.2",
110
- "@nuxt/schema": "^3.16.2",
109
+ "@nuxt/kit": "^3.17.2",
110
+ "@nuxt/schema": "^3.17.2",
111
111
  "@trivago/prettier-plugin-sort-imports": "^5.2.2",
112
- "@types/node": "^22.14.1",
112
+ "@types/node": "^22.15.10",
113
113
  "bumpp": "^10.1.0",
114
114
  "chalk": "^5.4.1",
115
- "eslint": "^9.24.0",
115
+ "eslint": "^9.26.0",
116
116
  "esno": "^4.8.0",
117
117
  "fast-glob": "^3.3.3",
118
- "nodemon": "^3.1.9",
118
+ "nodemon": "^3.1.10",
119
119
  "prettier": "^3.5.3",
120
120
  "rimraf": "^6.0.1",
121
- "rollup": "^4.40.0",
121
+ "rollup": "^4.40.1",
122
122
  "tsup": "^8.4.0",
123
123
  "typescript": "^5.8.3",
124
- "vite": "^6.2.6",
125
- "vitest": "^3.1.1",
126
- "webpack": "^5.99.5"
124
+ "vite": "^6.3.5",
125
+ "vitest": "^3.1.3",
126
+ "webpack": "^5.99.7"
127
127
  },
128
128
  "scripts": {
129
- "build": "tsup",
129
+ "build": "tsc --noEmit && tsup",
130
130
  "build:watch": "tsup --watch src",
131
131
  "build:fix": "esno scripts/postbuild.ts",
132
- "check": "tsc -p tsconfig.json --noEmit",
132
+ "check": "tsc --noEmit",
133
133
  "lint": "eslint .",
134
134
  "play": "npm -C playground run dev",
135
135
  "release": "bumpp && npm publish",
@@ -1,11 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunkPRGH7GBMcjs = require('./chunk-PRGH7GBM.cjs');
4
-
5
- // src/webpack.ts
6
- var _unplugin = require('unplugin');
7
- var webpack_default = _unplugin.createWebpackPlugin.call(void 0, _chunkPRGH7GBMcjs.unpluginFactory);
8
-
9
-
10
-
11
- exports.webpack_default = webpack_default;
@@ -1,11 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunkPRGH7GBMcjs = require('./chunk-PRGH7GBM.cjs');
4
-
5
- // src/vite.ts
6
- var _unplugin = require('unplugin');
7
- var vite_default = _unplugin.createVitePlugin.call(void 0, _chunkPRGH7GBMcjs.unpluginFactory);
8
-
9
-
10
-
11
- exports.vite_default = vite_default;