@empjs/plugin-stylus 3.2.0 → 4.0.0-alpha.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.d.ts CHANGED
@@ -1,8 +1,6 @@
1
- import { GlobalStore } from '@empjs/cli';
2
-
1
+ import type { GlobalStore } from '@empjs/cli';
3
2
  declare const _default: () => {
4
3
  name: string;
5
4
  rsConfig(store: GlobalStore): Promise<void>;
6
5
  };
7
-
8
- export { _default as default };
6
+ export default _default;
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var s=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(r,l)=>(typeof require<"u"?require:r)[l]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var a=()=>({name:"@empjs/plugin-stylus",async rsConfig(e){let{chain:r}=e;r.module.rule("stylus").test(/\.styl$/).use("style-loader").loader(s.resolve("style-loader")).end().use("css-loader").loader(s.resolve("css-loader")).end().use("stylus-loader").loader(s.resolve("stylus-loader")).options({stylusOptions:{includeCSS:!1,resolveURL:!0,lineNumbers:!0,hoistAtrules:!0,compress:!0}})}});export{a as default};
1
+ import e from"node:module";let s=e.createRequire(import.meta.url);export default(()=>({name:"@empjs/plugin-stylus",async rsConfig(e){let{chain:l}=e;l.module.rule("stylus").test(/\.styl$/).use("style-loader").loader(s.resolve("style-loader")).end().use("css-loader").loader(s.resolve("css-loader")).end().use("stylus-loader").loader(s.resolve("stylus-loader")).options({stylusOptions:{includeCSS:!1,resolveURL:!0,lineNumbers:!0,hoistAtrules:!0,compress:!0}})}}));
package/package.json CHANGED
@@ -1,11 +1,17 @@
1
1
  {
2
2
  "name": "@empjs/plugin-stylus",
3
- "version": "3.2.0",
3
+ "version": "4.0.0-alpha.1",
4
4
  "description": "emp stylus plugin",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
- "files": ["dist"],
8
- "maintainers": ["xuhongbin", "ckken", "doerme"],
7
+ "files": [
8
+ "dist"
9
+ ],
10
+ "maintainers": [
11
+ "xuhongbin",
12
+ "ckken",
13
+ "doerme"
14
+ ],
9
15
  "repository": {
10
16
  "type": "git",
11
17
  "url": "git+https://github.com/empjs/emp.git",
@@ -14,37 +20,33 @@
14
20
  "publishConfig": {
15
21
  "access": "public"
16
22
  },
17
- "keywords": ["stylus"],
18
- "main": "dist/index.js",
19
- "types": "dist/index.d.ts",
23
+ "keywords": [
24
+ "stylus"
25
+ ],
26
+ "main": "./dist/index.js",
27
+ "types": "./dist/index.d.ts",
20
28
  "exports": {
21
29
  ".": {
22
- "import": {
23
- "types": "./dist/index.d.ts",
24
- "default": "./dist/index.js"
25
- },
26
- "require": {
27
- "types": "./dist/index.d.cts",
28
- "default": "./dist/index.cjs"
29
- }
30
+ "types": "./dist/index.d.ts",
31
+ "import": "./dist/index.js",
32
+ "default": "./dist/index.js"
30
33
  }
31
34
  },
32
- "scripts": {
33
- "build": "tsup",
34
- "dev": "tsup --watch"
35
- },
36
35
  "engines": {
37
- "node": ">=16.0.0"
36
+ "node": "^20.19.0 || >=22.12.0"
38
37
  },
39
38
  "author": "Ken",
40
39
  "devDependencies": {
41
- "@empjs/cli": "workspace:*",
42
- "tsup": "^8.1.0"
40
+ "@empjs/cli": "4.0.0-alpha.1"
43
41
  },
44
42
  "dependencies": {
45
43
  "css-loader": "^7.1.2",
46
44
  "style-loader": "^4.0.0",
47
- "stylus": "^0.63.0",
45
+ "stylus": "0.64.0",
48
46
  "stylus-loader": "^8.1.1"
47
+ },
48
+ "scripts": {
49
+ "build": "rslib build --env-mode production",
50
+ "dev": "rslib build --watch --env-mode development"
49
51
  }
50
- }
52
+ }
package/dist/index.cjs DELETED
@@ -1 +0,0 @@
1
- "use strict";var i=Object.create;var o=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var p=Object.getPrototypeOf,m=Object.prototype.hasOwnProperty;var y=(e,s)=>{for(var r in s)o(e,r,{get:s[r],enumerable:!0})},a=(e,s,r,u)=>{if(s&&typeof s=="object"||typeof s=="function")for(let l of d(s))!m.call(e,l)&&l!==r&&o(e,l,{get:()=>s[l],enumerable:!(u=n(s,l))||u.enumerable});return e};var t=(e,s,r)=>(r=e!=null?i(p(e)):{},a(s||!e||!e.__esModule?o(r,"default",{value:e,enumerable:!0}):r,e)),c=e=>a(o({},"__esModule",{value:!0}),e);var v={};y(v,{default:()=>f});module.exports=c(v);var f=()=>({name:"@empjs/plugin-stylus",async rsConfig(e){let{chain:s}=e;s.module.rule("stylus").test(/\.styl$/).use("style-loader").loader(require.resolve("style-loader")).end().use("css-loader").loader(require.resolve("css-loader")).end().use("stylus-loader").loader(require.resolve("stylus-loader")).options({stylusOptions:{includeCSS:!1,resolveURL:!0,lineNumbers:!0,hoistAtrules:!0,compress:!0}})}});
package/dist/index.d.cts DELETED
@@ -1,8 +0,0 @@
1
- import { GlobalStore } from '@empjs/cli';
2
-
3
- declare const _default: () => {
4
- name: string;
5
- rsConfig(store: GlobalStore): Promise<void>;
6
- };
7
-
8
- export { _default as default };