@animus-ui/next-plugin 0.1.55 → 0.1.58
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 +13 -3
- package/dist/index.mjs +13 -3
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -757,12 +757,22 @@ async function analyzeForTurbopack(options, phase, rootDir, resolveExtensions, o
|
|
|
757
757
|
session.extensionPolicy = (0, _animus_ui_extract_pipeline.turbopackExtensionPolicy)(resolveExtensions);
|
|
758
758
|
session.assetClassification = (0, _animus_ui_extract_pipeline.nextImageAssetClassification)(rootDir, disableStaticImages);
|
|
759
759
|
session.aliasesFromTsconfig = true;
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
const outcome = (0, _animus_ui_extract_session.startTurbopackWatcher)(session, rootDir);
|
|
760
|
+
if (development) {
|
|
761
|
+
const outcome = (0, _animus_ui_extract_session.startTurbopackWatcher)(session, rootDir, { holdEvents: true });
|
|
763
762
|
bindTurbopackWatchDeathReport(outcome, rootDir);
|
|
764
763
|
if (outcome.kind === "started") owner.watcher = outcome.handle;
|
|
765
764
|
}
|
|
765
|
+
const watcher = owner.watcher;
|
|
766
|
+
try {
|
|
767
|
+
await (0, _animus_ui_extract_session.runSessionPipeline)(session);
|
|
768
|
+
} catch (err) {
|
|
769
|
+
if (owner.watcher === watcher) {
|
|
770
|
+
watcher?.close();
|
|
771
|
+
owner.watcher = null;
|
|
772
|
+
}
|
|
773
|
+
throw err;
|
|
774
|
+
}
|
|
775
|
+
if (owner.session === session) watcher?.deliverHeldEvents();
|
|
766
776
|
for (const line of require_turbopack_config.turbopackSideEffectsLimits(rootDir, session.externalSourceEntries, session.externalSourceSideEffects)) console.warn(line);
|
|
767
777
|
return require_turbopack_config.buildTurbopackConfig({
|
|
768
778
|
rootDir,
|
package/dist/index.mjs
CHANGED
|
@@ -756,12 +756,22 @@ async function analyzeForTurbopack(options, phase, rootDir, resolveExtensions, o
|
|
|
756
756
|
session.extensionPolicy = turbopackExtensionPolicy(resolveExtensions);
|
|
757
757
|
session.assetClassification = nextImageAssetClassification(rootDir, disableStaticImages);
|
|
758
758
|
session.aliasesFromTsconfig = true;
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
const outcome = startTurbopackWatcher(session, rootDir);
|
|
759
|
+
if (development) {
|
|
760
|
+
const outcome = startTurbopackWatcher(session, rootDir, { holdEvents: true });
|
|
762
761
|
bindTurbopackWatchDeathReport(outcome, rootDir);
|
|
763
762
|
if (outcome.kind === "started") owner.watcher = outcome.handle;
|
|
764
763
|
}
|
|
764
|
+
const watcher = owner.watcher;
|
|
765
|
+
try {
|
|
766
|
+
await runSessionPipeline(session);
|
|
767
|
+
} catch (err) {
|
|
768
|
+
if (owner.watcher === watcher) {
|
|
769
|
+
watcher?.close();
|
|
770
|
+
owner.watcher = null;
|
|
771
|
+
}
|
|
772
|
+
throw err;
|
|
773
|
+
}
|
|
774
|
+
if (owner.session === session) watcher?.deliverHeldEvents();
|
|
765
775
|
for (const line of turbopackSideEffectsLimits(rootDir, session.externalSourceEntries, session.externalSourceSideEffects)) console.warn(line);
|
|
766
776
|
return buildTurbopackConfig({
|
|
767
777
|
rootDir,
|
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.58",
|
|
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.58"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@animus-ui/assertions": "0.1.
|
|
51
|
-
"@animus-ui/layergate": "0.1.
|
|
50
|
+
"@animus-ui/assertions": "0.1.58",
|
|
51
|
+
"@animus-ui/layergate": "0.1.58"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@animus-ui/layergate": "0.1.
|
|
54
|
+
"@animus-ui/layergate": "0.1.58",
|
|
55
55
|
"next": ">=15 <17",
|
|
56
56
|
"webpack": ">=5 <6"
|
|
57
57
|
},
|