@animus-ui/next-plugin 0.1.0-next.65 → 0.1.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/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/loader.cjs +1 -1
- package/dist/loader.d.ts.map +1 -1
- package/dist/loader.mjs +1 -1
- package/dist/with-animus.d.ts.map +1 -1
- package/package.json +25 -26
package/dist/index.cjs
CHANGED
|
@@ -3,8 +3,8 @@ const require_singleton = require("./singleton-Cyu9XArN.cjs");
|
|
|
3
3
|
let fs = require("fs");
|
|
4
4
|
let path = require("path");
|
|
5
5
|
let url = require("url");
|
|
6
|
-
let crypto = require("crypto");
|
|
7
6
|
let _animus_ui_extract_pipeline = require("@animus-ui/extract/pipeline");
|
|
7
|
+
let crypto = require("crypto");
|
|
8
8
|
//#region src/plugin.ts
|
|
9
9
|
const PLUGIN_NAME = "AnimusWebpackPlugin";
|
|
10
10
|
var AnimusWebpackPlugin = class {
|
package/dist/index.mjs
CHANGED
|
@@ -2,8 +2,8 @@ import { a as getSharedExternalEntries, c as setManifestJson, d as setSharedExte
|
|
|
2
2
|
import { existsSync, mkdirSync, readFileSync, readdirSync, statSync, writeFileSync } from "fs";
|
|
3
3
|
import { dirname, extname, join, relative, resolve, sep } from "path";
|
|
4
4
|
import { fileURLToPath } from "url";
|
|
5
|
-
import { createHash } from "crypto";
|
|
6
5
|
import { DEFAULT_EXTENSIONS, applyPrefix, applyUnitFallback, assembleStylesheet, extractSystemFilePackages, preprocessMdx } from "@animus-ui/extract/pipeline";
|
|
6
|
+
import { createHash } from "crypto";
|
|
7
7
|
//#region src/plugin.ts
|
|
8
8
|
const PLUGIN_NAME = "AnimusWebpackPlugin";
|
|
9
9
|
var AnimusWebpackPlugin = class {
|
package/dist/loader.cjs
CHANGED
|
@@ -46,7 +46,7 @@ function animusLoader(source) {
|
|
|
46
46
|
return code;
|
|
47
47
|
} catch (e) {
|
|
48
48
|
const msg = e instanceof Error ? e.message : String(e);
|
|
49
|
-
if ((this.getOptions?.() ?? {}).strict) throw new Error(`[animus-extract] Transform failed for ${filename}: ${msg}
|
|
49
|
+
if ((this.getOptions?.() ?? {}).strict) throw new Error(`[animus-extract] Transform failed for ${filename}: ${msg}`, { cause: e });
|
|
50
50
|
console.warn(`[animus-extract] Transform failed for ${filename}:`, msg);
|
|
51
51
|
return source;
|
|
52
52
|
}
|
package/dist/loader.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../src/loader.ts"],"names":[],"mappings":"AAIA,KAAK,aAAa,GAAG;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM;QAAE,MAAM,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;CACxC,CAAC;AAuBF;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,IAAI,EAAE,aAAa,EACnB,MAAM,EAAE,MAAM,GACb,MAAM,
|
|
1
|
+
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../src/loader.ts"],"names":[],"mappings":"AAIA,KAAK,aAAa,GAAG;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM;QAAE,MAAM,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;CACxC,CAAC;AAuBF;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,IAAI,EAAE,aAAa,EACnB,MAAM,EAAE,MAAM,GACb,MAAM,CA0CR"}
|
package/dist/loader.mjs
CHANGED
|
@@ -46,7 +46,7 @@ function animusLoader(source) {
|
|
|
46
46
|
return code;
|
|
47
47
|
} catch (e) {
|
|
48
48
|
const msg = e instanceof Error ? e.message : String(e);
|
|
49
|
-
if ((this.getOptions?.() ?? {}).strict) throw new Error(`[animus-extract] Transform failed for ${filename}: ${msg}
|
|
49
|
+
if ((this.getOptions?.() ?? {}).strict) throw new Error(`[animus-extract] Transform failed for ${filename}: ${msg}`, { cause: e });
|
|
50
50
|
console.warn(`[animus-extract] Transform failed for ${filename}:`, msg);
|
|
51
51
|
return source;
|
|
52
52
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"with-animus.d.ts","sourceRoot":"","sources":["../src/with-animus.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"with-animus.d.ts","sourceRoot":"","sources":["../src/with-animus.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAKjD,KAAK,aAAa,GAAG;IACnB,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC;IACpB,OAAO,CAAC,EAAE;QACR,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KAChC,CAAC;IACF,MAAM,CAAC,EAAE;QACP,KAAK,CAAC,EAAE,KAAK,CAAC;YACZ,IAAI,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,CAAC;YAC5C,OAAO,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,CAAC;YAC/C,OAAO,CAAC,EAAE,MAAM,CAAC;YACjB,GAAG,CAAC,EAAE,KAAK,CAAC;gBAAE,MAAM,EAAE,MAAM,CAAC;gBAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;aAAE,CAAC,CAAC;SACpE,CAAC,CAAC;KACJ,CAAC;CACH,CAAC;AAEF,KAAK,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;IAC1C,OAAO,CAAC,EAAE,CACR,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC7B,aAAa,CAAC;CACpB,CAAC;AAIF;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CACxB,OAAO,EAAE,iBAAiB,GACzB,CAAC,UAAU,EAAE,UAAU,KAAK,UAAU,CA+KxC"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@animus-ui/next-plugin",
|
|
3
|
-
"version": "0.1.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "Animus static CSS extraction for Next.js (webpack)",
|
|
5
|
-
"
|
|
5
|
+
"keywords": [
|
|
6
|
+
"animus",
|
|
7
|
+
"css",
|
|
8
|
+
"css-in-js",
|
|
9
|
+
"next",
|
|
10
|
+
"nextjs",
|
|
11
|
+
"styled",
|
|
12
|
+
"webpack",
|
|
13
|
+
"zero-runtime"
|
|
14
|
+
],
|
|
15
|
+
"homepage": "https://github.com/codecaaron/animus/tree/main/packages/next-plugin#readme",
|
|
6
16
|
"license": "MIT",
|
|
17
|
+
"author": "codecaaron <airrobb@gmail.com>",
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/codecaaron/animus",
|
|
21
|
+
"directory": "packages/next-plugin"
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"dist"
|
|
25
|
+
],
|
|
7
26
|
"main": "./dist/index.cjs",
|
|
8
27
|
"module": "./dist/index.mjs",
|
|
9
28
|
"types": "./dist/index.d.ts",
|
|
@@ -21,33 +40,16 @@
|
|
|
21
40
|
"default": "./dist/loader.cjs"
|
|
22
41
|
}
|
|
23
42
|
},
|
|
24
|
-
"files": [
|
|
25
|
-
"dist"
|
|
26
|
-
],
|
|
27
43
|
"publishConfig": {
|
|
28
44
|
"access": "public"
|
|
29
45
|
},
|
|
30
|
-
"homepage": "https://github.com/codecaaron/animus/tree/main/packages/next-plugin#readme",
|
|
31
|
-
"repository": {
|
|
32
|
-
"type": "git",
|
|
33
|
-
"url": "git+https://github.com/codecaaron/animus",
|
|
34
|
-
"directory": "packages/next-plugin"
|
|
35
|
-
},
|
|
36
|
-
"keywords": [
|
|
37
|
-
"next",
|
|
38
|
-
"nextjs",
|
|
39
|
-
"webpack",
|
|
40
|
-
"css",
|
|
41
|
-
"css-in-js",
|
|
42
|
-
"zero-runtime",
|
|
43
|
-
"styled",
|
|
44
|
-
"animus"
|
|
45
|
-
],
|
|
46
46
|
"scripts": {
|
|
47
47
|
"build": "bun run build:ts",
|
|
48
48
|
"build:ts": "tsdown && tsgo -p tsconfig.build.json",
|
|
49
|
-
"compile": "tsgo --noEmit"
|
|
50
|
-
|
|
49
|
+
"compile": "tsgo --noEmit"
|
|
50
|
+
},
|
|
51
|
+
"dependencies": {
|
|
52
|
+
"@animus-ui/extract": "0.1.0"
|
|
51
53
|
},
|
|
52
54
|
"peerDependencies": {
|
|
53
55
|
"@mdx-js/mdx": "^3.0.0",
|
|
@@ -58,8 +60,5 @@
|
|
|
58
60
|
"@mdx-js/mdx": {
|
|
59
61
|
"optional": true
|
|
60
62
|
}
|
|
61
|
-
},
|
|
62
|
-
"dependencies": {
|
|
63
|
-
"@animus-ui/extract": "0.1.0-next.65"
|
|
64
63
|
}
|
|
65
64
|
}
|