@animus-ui/next-plugin 0.1.52 → 0.1.54
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/{loader-core-Bz52QNm3.cjs → loader-core-Dl3mKLWZ.cjs} +1 -1
- package/dist/{loader-core-DU2uZEMQ.mjs → loader-core-Fcnfh1q6.mjs} +1 -1
- package/dist/loader.cjs +1 -1
- package/dist/loader.mjs +1 -1
- package/dist/turbopack-loader.cjs +1 -1
- package/dist/turbopack-loader.mjs +1 -1
- package/package.json +5 -5
|
@@ -81,7 +81,7 @@ function transformWithManifest(args) {
|
|
|
81
81
|
const drop = served.dropped.get(filename);
|
|
82
82
|
if (drop !== void 0) throw new Error((0, _animus_ui_extract_pipeline.droppedExtensionMessage)(drop));
|
|
83
83
|
if (!result.hasComponents && served.listed.has(filename)) throw new Error(`the analysis extracted components from ${filename}, but its transform found none`);
|
|
84
|
-
let code = result.hasComponents ? result.code : source;
|
|
84
|
+
let code = result.hasComponents || result.annotated ? result.code : source;
|
|
85
85
|
code = code.replace(CSS_IMPORT_RE, "");
|
|
86
86
|
if (isRootEntry && !code.includes(_animus_ui_extract_session.ANIMUS_CSS_MODULE_ID)) {
|
|
87
87
|
if (code.startsWith("'use client'") || code.startsWith("\"use client\"")) {
|
|
@@ -81,7 +81,7 @@ function transformWithManifest(args) {
|
|
|
81
81
|
const drop = served.dropped.get(filename);
|
|
82
82
|
if (drop !== void 0) throw new Error(droppedExtensionMessage(drop));
|
|
83
83
|
if (!result.hasComponents && served.listed.has(filename)) throw new Error(`the analysis extracted components from ${filename}, but its transform found none`);
|
|
84
|
-
let code = result.hasComponents ? result.code : source;
|
|
84
|
+
let code = result.hasComponents || result.annotated ? result.code : source;
|
|
85
85
|
code = code.replace(CSS_IMPORT_RE, "");
|
|
86
86
|
if (isRootEntry && !code.includes(ANIMUS_CSS_MODULE_ID)) {
|
|
87
87
|
if (code.startsWith("'use client'") || code.startsWith("\"use client\"")) {
|
package/dist/loader.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_loader_core = require("./loader-core-
|
|
1
|
+
const require_loader_core = require("./loader-core-Dl3mKLWZ.cjs");
|
|
2
2
|
let _animus_ui_extract_pipeline = require("@animus-ui/extract/pipeline");
|
|
3
3
|
let _animus_ui_extract_session = require("@animus-ui/extract/session");
|
|
4
4
|
let fs = require("fs");
|
package/dist/loader.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as extensionLineage, r as transformWithManifest, t as extendedFiles } from "./loader-core-
|
|
1
|
+
import { n as extensionLineage, r as transformWithManifest, t as extendedFiles } from "./loader-core-Fcnfh1q6.mjs";
|
|
2
2
|
import { AnimusConfigError, contentHash } from "@animus-ui/extract/pipeline";
|
|
3
3
|
import { engineApi, getAnalyzedHashes, getManifestJson, getSessionArtifactDir, replacementEpochPath, sessionKey } from "@animus-ui/extract/session";
|
|
4
4
|
import { existsSync } from "fs";
|
|
@@ -4,7 +4,7 @@ Object.defineProperties(exports, {
|
|
|
4
4
|
});
|
|
5
5
|
const require_rolldown_runtime = require("./rolldown-runtime-VH7oDXx4.cjs");
|
|
6
6
|
const require_turbopack_config = require("./turbopack-config-W5eoa_xN.cjs");
|
|
7
|
-
const require_loader_core = require("./loader-core-
|
|
7
|
+
const require_loader_core = require("./loader-core-Dl3mKLWZ.cjs");
|
|
8
8
|
let _animus_ui_extract_pipeline = require("@animus-ui/extract/pipeline");
|
|
9
9
|
let _animus_ui_extract_session = require("@animus-ui/extract/session");
|
|
10
10
|
let fs = require("fs");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as isTurbopackDevelopment } from "./turbopack-config-BOUPGkmi.mjs";
|
|
2
|
-
import { n as extensionLineage, r as transformWithManifest, t as extendedFiles } from "./loader-core-
|
|
2
|
+
import { n as extensionLineage, r as transformWithManifest, t as extendedFiles } from "./loader-core-Fcnfh1q6.mjs";
|
|
3
3
|
import { AnimusConfigError, assertSupportedEngine, buildAnalyzeProjectArgs, contentHash, parseFilesJson } from "@animus-ui/extract/pipeline";
|
|
4
4
|
import { analysisCommitPath, analysisInputsPath, analysisStatusPath, artifactHash, engineHandle, manifestPath, readJsonEnvelope, replacementEpochPath, sessionArtifactDir, sessionKey } from "@animus-ui/extract/session";
|
|
5
5
|
import * as nodeFs from "fs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@animus-ui/next-plugin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.54",
|
|
4
4
|
"description": "Animus static CSS extraction for Next.js (webpack)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"animus",
|
|
@@ -44,14 +44,14 @@
|
|
|
44
44
|
"compile": "bun check"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@animus-ui/extract": "0.1.
|
|
47
|
+
"@animus-ui/extract": "0.1.54"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@animus-ui/assertions": "0.1.
|
|
51
|
-
"@animus-ui/layergate": "0.1.
|
|
50
|
+
"@animus-ui/assertions": "0.1.54",
|
|
51
|
+
"@animus-ui/layergate": "0.1.54"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@animus-ui/layergate": "0.1.
|
|
54
|
+
"@animus-ui/layergate": "0.1.54",
|
|
55
55
|
"next": ">=15 <17",
|
|
56
56
|
"webpack": ">=5 <6"
|
|
57
57
|
},
|