@atomic-variants/next-plugin 0.1.0 → 0.1.1

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/index.cjs CHANGED
@@ -1 +1 @@
1
- var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let c=require(`@atomic-variants/constants`);c=s(c);let l=require(`@atomic-variants/webpack-plugin`);l=s(l);function u(e){return{...e,webpack:(t,n)=>(t.plugins?.push(new l.default),typeof e.webpack==`function`?e.webpack(t,n):t),experimental:{...e.experimental,swcPlugins:[...e.experimental?.swcPlugins||[],[`@atomic-variants/swc-plugin`,{tag:c.ATOMIC_TAG}]]}}}exports.withAtomicVariants=u;
1
+ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let c=require(`@atomic-variants/webpack-plugin`);c=s(c);const l=`__atomic_generated`,u=RegExp(`/\\*\\s*${l}:([^*]+)\\s*\\*/`,`g`),d=`./.atomic-variants`,f=`./.atomic-variants/.atomic`;function p(e){return{...e,webpack:(t,n)=>(t.plugins?.push(new c.default),typeof e.webpack==`function`?e.webpack(t,n):t),experimental:{...e.experimental,swcPlugins:[...e.experimental?.swcPlugins||[],[`@atomic-variants/swc-plugin`,{tag:l}]]}}}exports.withAtomicVariants=p;
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{ATOMIC_TAG as e}from"@atomic-variants/constants";import t from"@atomic-variants/webpack-plugin";function n(n){return{...n,webpack:(e,r)=>(e.plugins?.push(new t),typeof n.webpack==`function`?n.webpack(e,r):e),experimental:{...n.experimental,swcPlugins:[...n.experimental?.swcPlugins||[],[`@atomic-variants/swc-plugin`,{tag:e}]]}}}export{n as withAtomicVariants};
1
+ import e from"@atomic-variants/webpack-plugin";const t=`__atomic_generated`;RegExp(`/\\*\\s*${t}:([^*]+)\\s*\\*/`,`g`);function n(n){return{...n,webpack:(t,r)=>(t.plugins?.push(new e),typeof n.webpack==`function`?n.webpack(t,r):t),experimental:{...n.experimental,swcPlugins:[...n.experimental?.swcPlugins||[],[`@atomic-variants/swc-plugin`,{tag:t}]]}}}export{n as withAtomicVariants};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atomic-variants/next-plugin",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Next.js plugin for atomic-variants to enable responsive, type-safe TailwindCSS variants at build time.",
5
5
  "keywords": [
6
6
  "atomic-variants",
@@ -43,11 +43,11 @@
43
43
  "test": "bun test"
44
44
  },
45
45
  "dependencies": {
46
- "@atomic-variants/constants": "0.0.1",
47
46
  "@atomic-variants/swc-plugin": "0.1.0",
48
47
  "@atomic-variants/webpack-plugin": "0.1.0"
49
48
  },
50
49
  "devDependencies": {
50
+ "@atomic-variants/constants": "0.0.1",
51
51
  "@types/bun": "latest",
52
52
  "@types/jest": "^30.0.0",
53
53
  "next": "^15.5.5",