@animus-ui/next-plugin 0.1.18 → 0.1.20

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/README.md CHANGED
@@ -27,11 +27,32 @@ export default withAnimus({
27
27
 
28
28
  Turbopack support activates automatically whenever the process runs under
29
29
  Turbopack (`next dev --turbopack`, or Next 16 where Turbopack is the
30
- default) — no config change needed. Extraction runs while `next.config`
31
- resolves, a watcher re-analyzes on source changes in dev, and per-file
30
+ default) — no config change needed. `withAnimus(...)(nextConfig)` then
31
+ returns a config function: Next calls it with its phase, and extraction runs
32
+ before it resolves. Only `next dev` analyzes in development mode and starts
33
+ a watcher that re-analyzes on source changes; `next build` prunes. Per-file
32
34
  transforms run in a stateless loader fed by generated `.animus/` artifacts.
33
35
  tsconfig `paths` aliases are honored.
34
36
 
37
+ Apply config wrappers that expect an object, such as `withMDX`, to
38
+ `nextConfig` before passing it to `withAnimus`:
39
+ `withAnimus(options)(withMDX(nextConfig))`. Applied outside, a wrapper that
40
+ copies the config into a new object keeps its own keys and drops Animus's.
41
+
42
+ If your config is a function of its own, pass Next's phase through:
43
+
44
+ ```tsx
45
+ export default (phase: string) =>
46
+ withAnimus({ system: './src/ds.ts', phase })(nextConfig);
47
+ ```
48
+
49
+ The result can also be awaited, as in
50
+ `{ ...(await withAnimus(options)(nextConfig)) }`. Without a phase it then
51
+ reads `NODE_ENV=development` as `next dev` and anything else as a build. A
52
+ `next.config.ts` that assigns `module.exports = withAnimus(...)(...)` is
53
+ awaited the same way when Next compiles it, so write `export default`, or
54
+ pass the phase from a config function.
55
+
35
56
  Because `next.config` resolves only after that first extraction, a source the
36
57
  parser cannot finish at startup rejects the config before any watcher exists:
37
58
  fix the syntax error and start Next again. Once the watcher runs, a later
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_turbopack_config = require("./turbopack-config-DDjiYVRp.cjs");
2
+ const require_turbopack_config = require("./turbopack-config-BnLYDcu9.cjs");
3
3
  let _animus_ui_extract_pipeline = require("@animus-ui/extract/pipeline");
4
4
  let _animus_ui_extract_session = require("@animus-ui/extract/session");
5
5
  let fs = require("fs");
@@ -210,6 +210,10 @@ var AnimusWebpackPlugin = class {
210
210
  //#region src/with-animus.ts
211
211
  const __filename$1 = (0, url.fileURLToPath)(require("url").pathToFileURL(__filename).href);
212
212
  const __dirname$1 = (0, path.dirname)(__filename$1);
213
+ /** `PHASE_DEVELOPMENT_SERVER` and `PHASE_PRODUCTION_BUILD` in
214
+ * `next/constants`. */
215
+ const PHASE_DEVELOPMENT_SERVER = "phase-development-server";
216
+ const PHASE_PRODUCTION_BUILD = "phase-production-build";
213
217
  let warnedGitignore = false;
214
218
  let warnedUnstableTurbopack = false;
215
219
  function withAnimus(options) {
@@ -218,7 +222,8 @@ function withAnimus(options) {
218
222
  "cssImportTarget",
219
223
  "turbopack",
220
224
  "unstable_turbopack",
221
- "loaderPath"
225
+ "loaderPath",
226
+ "phase"
222
227
  ], [{
223
228
  key: "root",
224
229
  reason: "this driver derives its own root — Next's `dir` under webpack, `process.cwd()` under Turbopack (Next passes no dir to a config module)"
@@ -231,14 +236,18 @@ function withAnimus(options) {
231
236
  console.warn("[animus-extract] `unstable_turbopack` is deprecated — rename it to `turbopack` (same shape)");
232
237
  }
233
238
  return (nextConfig) => {
234
- if (require_turbopack_config.resolveTurbopackMode(options)) return wireTurbopack(nextConfig, options);
239
+ if (require_turbopack_config.resolveTurbopackMode(options)) return turbopackConfig(nextConfig, options);
235
240
  const existingWebpack = nextConfig.webpack;
236
241
  return {
237
242
  ...nextConfig,
238
243
  webpack(config, context) {
239
244
  if (existingWebpack) config = existingWebpack(config, context);
240
245
  const rootDir = context.dir?.length ? context.dir : process.cwd();
241
- const plugin = new AnimusWebpackPlugin(options);
246
+ const { mode } = (0, _animus_ui_extract_pipeline.resolveMode)(options.mode, () => context.dev === true ? "development" : "production");
247
+ const plugin = new AnimusWebpackPlugin({
248
+ ...options,
249
+ mode
250
+ });
242
251
  plugin.setRootDir(rootDir);
243
252
  const sessionDir = plugin.sessionDir;
244
253
  if (!(0, fs.existsSync)(sessionDir)) (0, fs.mkdirSync)(sessionDir, { recursive: true });
@@ -265,7 +274,7 @@ function withAnimus(options) {
265
274
  config.plugins = config.plugins || [];
266
275
  config.plugins.push(plugin);
267
276
  const DefinePlugin = context.webpack?.DefinePlugin;
268
- if (DefinePlugin) config.plugins.push(new DefinePlugin({ __ANIMUS_DEV__: JSON.stringify((0, _animus_ui_extract_pipeline.resolveMode)(options.mode, () => context.dev === true ? "development" : "production").mode === "development") }));
277
+ if (DefinePlugin) config.plugins.push(new DefinePlugin({ __ANIMUS_DEV__: JSON.stringify(mode === "development") }));
269
278
  config.resolve = config.resolve || {};
270
279
  config.resolve.alias = config.resolve.alias || {};
271
280
  config.resolve.alias[_animus_ui_extract_session.ANIMUS_CSS_MODULE_ID] = (0, _animus_ui_extract_session.stylesPath)(sessionDir);
@@ -310,26 +319,70 @@ function bindTurbopackWatchDeathReport(outcome, rootDir) {
310
319
  console.error(`[animus-extract] dev watcher for ${rootDir} died — source edits are no longer extracted; restart the dev server`);
311
320
  };
312
321
  }
322
+ function turbopackConfig(nextConfig, options) {
323
+ const load = (phase) => loadTurbopackFragment(options, phase).then((fragment) => mergeTurbopackFragment(nextConfig, fragment));
324
+ function then(onResolved, onRejected) {
325
+ const phase = options.phase ?? (require_turbopack_config.isTurbopackDevelopment() ? PHASE_DEVELOPMENT_SERVER : PHASE_PRODUCTION_BUILD);
326
+ return load(phase).then(onResolved, onRejected);
327
+ }
328
+ const config = Object.assign(load, { then });
329
+ Object.defineProperty(config, "then", { enumerable: false });
330
+ return config;
331
+ }
313
332
  let liveTurbopackSession = null;
314
- async function wireTurbopack(nextConfig, options) {
333
+ let liveTurbopackWatcher = null;
334
+ /** The load the live session came from. Next loads the config again after
335
+ * Ready (validateTurboNextConfig), and a user config may await this one
336
+ * besides: the same phase and root share one analysis and keep the watcher.
337
+ * A rejected load is dropped, so a repaired source loads again. */
338
+ let liveTurbopackLoad = null;
339
+ function loadTurbopackFragment(options, phase) {
315
340
  const rootDir = process.cwd();
316
- const session = new _animus_ui_extract_session.ExtractionSession(options);
341
+ const key = JSON.stringify([phase, rootDir]);
342
+ if (liveTurbopackLoad?.key === key) return liveTurbopackLoad.fragment;
343
+ const fragment = analyzeForTurbopack(options, phase, rootDir);
344
+ const load = {
345
+ key,
346
+ fragment
347
+ };
348
+ liveTurbopackLoad = load;
349
+ fragment.catch(() => {
350
+ if (liveTurbopackLoad === load) liveTurbopackLoad = null;
351
+ });
352
+ return fragment;
353
+ }
354
+ async function analyzeForTurbopack(options, phase, rootDir) {
355
+ const development = phase === PHASE_DEVELOPMENT_SERVER;
356
+ const { mode } = (0, _animus_ui_extract_pipeline.resolveMode)(options.mode, () => development ? "development" : "production");
357
+ const session = new _animus_ui_extract_session.ExtractionSession({
358
+ ...options,
359
+ mode
360
+ });
317
361
  liveTurbopackSession?.close();
362
+ liveTurbopackWatcher?.close();
363
+ liveTurbopackWatcher = null;
318
364
  liveTurbopackSession = session;
319
365
  session.rootDir = rootDir;
320
366
  const aliasPairs = (0, _animus_ui_extract_pipeline.readTsconfigAliasPairs)(rootDir);
321
367
  const builtAliases = (0, _animus_ui_extract_pipeline.buildPathAliasesJson)(aliasPairs, rootDir);
322
368
  if (builtAliases) session.pathAliasesJson = builtAliases.json;
323
369
  await (0, _animus_ui_extract_session.runSessionPipeline)(session);
324
- if (require_turbopack_config.isTurbopackDevelopment()) bindTurbopackWatchDeathReport((0, _animus_ui_extract_session.startTurbopackWatcher)(session, rootDir), rootDir);
325
- const fragment = require_turbopack_config.buildTurbopackConfig({
370
+ if (development && liveTurbopackSession === session) {
371
+ const outcome = (0, _animus_ui_extract_session.startTurbopackWatcher)(session, rootDir);
372
+ bindTurbopackWatchDeathReport(outcome, rootDir);
373
+ if (outcome.kind === "started") liveTurbopackWatcher = outcome.handle;
374
+ }
375
+ return require_turbopack_config.buildTurbopackConfig({
326
376
  rootDir,
327
377
  loaderPath: require_turbopack_config.resolveTurbopackLoaderPath(__dirname$1),
328
378
  options,
329
379
  externalSourceEntries: session.externalSourceEntries,
330
380
  sessionId: session.sessionId,
331
- sessionDir: session.sessionDir
381
+ sessionDir: session.sessionDir,
382
+ development
332
383
  });
384
+ }
385
+ function mergeTurbopackFragment(nextConfig, fragment) {
333
386
  const existing = nextConfig.turbopack ?? {};
334
387
  if (existing.rules && require_turbopack_config.ANIMUS_TURBOPACK_RULE_GLOB in existing.rules) throw new Error(`[animus-extract] turbopack.rules['${require_turbopack_config.ANIMUS_TURBOPACK_RULE_GLOB}'] is already configured — remove the consumer rule or disable unstable_turbopack`);
335
388
  return {
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  export type { AnimusNextOptions } from './types';
2
2
  export { withAnimus } from './with-animus';
3
- export type { AnimusNextConfigBoundary, NextConfigInput, TurbopackNextConfig, WebpackNextConfig, } from './with-animus';
3
+ export type { AnimusNextConfigBoundary, NextConfigInput, TurbopackNextConfig, TurbopackNextConfigObject, WebpackNextConfig, } from './with-animus';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,YAAY,EACV,wBAAwB,EACxB,eAAe,EACf,mBAAmB,EACnB,iBAAiB,GAClB,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,YAAY,EACV,wBAAwB,EACxB,eAAe,EACf,mBAAmB,EACnB,yBAAyB,EACzB,iBAAiB,GAClB,MAAM,eAAe,CAAC"}
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { a as resolveTurbopackMode, i as resolveTurbopackLoaderPath, n as buildTurbopackConfig, o as resolveAnimusLoaderPath, r as isTurbopackDevelopment, t as ANIMUS_TURBOPACK_RULE_GLOB } from "./turbopack-config-CaAI_L6k.mjs";
1
+ import { a as resolveTurbopackMode, i as resolveTurbopackLoaderPath, n as buildTurbopackConfig, o as resolveAnimusLoaderPath, r as isTurbopackDevelopment, t as ANIMUS_TURBOPACK_RULE_GLOB } from "./turbopack-config-B4apoNIO.mjs";
2
2
  import { assembleStylesheet, assertKnownOptionKeys, assertNoRetiredEngineSelection, buildPathAliasesJson, isEngineTransformExtension, isPathWithinRoot, readTsconfigAliasPairs, resolveMode } from "@animus-ui/extract/pipeline";
3
3
  import { ANIMUS_CSS_MODULE_ID, ANIMUS_CSS_MODULE_ID as ANIMUS_CSS_MODULE_ID$1, ExtractionSession, getAnalysisStartedPromise, getReplacementEpoch, getSharedCss, getSharedExternalDirs, getSharedExternalEntries, replacementEpochPath, resetAnalysisStartedPromise, runSessionPipeline, sessionArtifactDir, setAnalysisStartedPromise, setSharedEngine, startTurbopackWatcher, stylesPath, systemPropsPath } from "@animus-ui/extract/session";
4
4
  import { existsSync, mkdirSync, readFileSync, writeFileSync } from "fs";
@@ -209,6 +209,10 @@ var AnimusWebpackPlugin = class {
209
209
  //#region src/with-animus.ts
210
210
  const __filename = fileURLToPath(import.meta.url);
211
211
  const __dirname = dirname(__filename);
212
+ /** `PHASE_DEVELOPMENT_SERVER` and `PHASE_PRODUCTION_BUILD` in
213
+ * `next/constants`. */
214
+ const PHASE_DEVELOPMENT_SERVER = "phase-development-server";
215
+ const PHASE_PRODUCTION_BUILD = "phase-production-build";
212
216
  let warnedGitignore = false;
213
217
  let warnedUnstableTurbopack = false;
214
218
  function withAnimus(options) {
@@ -217,7 +221,8 @@ function withAnimus(options) {
217
221
  "cssImportTarget",
218
222
  "turbopack",
219
223
  "unstable_turbopack",
220
- "loaderPath"
224
+ "loaderPath",
225
+ "phase"
221
226
  ], [{
222
227
  key: "root",
223
228
  reason: "this driver derives its own root — Next's `dir` under webpack, `process.cwd()` under Turbopack (Next passes no dir to a config module)"
@@ -230,14 +235,18 @@ function withAnimus(options) {
230
235
  console.warn("[animus-extract] `unstable_turbopack` is deprecated — rename it to `turbopack` (same shape)");
231
236
  }
232
237
  return (nextConfig) => {
233
- if (resolveTurbopackMode(options)) return wireTurbopack(nextConfig, options);
238
+ if (resolveTurbopackMode(options)) return turbopackConfig(nextConfig, options);
234
239
  const existingWebpack = nextConfig.webpack;
235
240
  return {
236
241
  ...nextConfig,
237
242
  webpack(config, context) {
238
243
  if (existingWebpack) config = existingWebpack(config, context);
239
244
  const rootDir = context.dir?.length ? context.dir : process.cwd();
240
- const plugin = new AnimusWebpackPlugin(options);
245
+ const { mode } = resolveMode(options.mode, () => context.dev === true ? "development" : "production");
246
+ const plugin = new AnimusWebpackPlugin({
247
+ ...options,
248
+ mode
249
+ });
241
250
  plugin.setRootDir(rootDir);
242
251
  const sessionDir = plugin.sessionDir;
243
252
  if (!existsSync(sessionDir)) mkdirSync(sessionDir, { recursive: true });
@@ -264,7 +273,7 @@ function withAnimus(options) {
264
273
  config.plugins = config.plugins || [];
265
274
  config.plugins.push(plugin);
266
275
  const DefinePlugin = context.webpack?.DefinePlugin;
267
- if (DefinePlugin) config.plugins.push(new DefinePlugin({ __ANIMUS_DEV__: JSON.stringify(resolveMode(options.mode, () => context.dev === true ? "development" : "production").mode === "development") }));
276
+ if (DefinePlugin) config.plugins.push(new DefinePlugin({ __ANIMUS_DEV__: JSON.stringify(mode === "development") }));
268
277
  config.resolve = config.resolve || {};
269
278
  config.resolve.alias = config.resolve.alias || {};
270
279
  config.resolve.alias[ANIMUS_CSS_MODULE_ID$1] = stylesPath(sessionDir);
@@ -309,26 +318,70 @@ function bindTurbopackWatchDeathReport(outcome, rootDir) {
309
318
  console.error(`[animus-extract] dev watcher for ${rootDir} died — source edits are no longer extracted; restart the dev server`);
310
319
  };
311
320
  }
321
+ function turbopackConfig(nextConfig, options) {
322
+ const load = (phase) => loadTurbopackFragment(options, phase).then((fragment) => mergeTurbopackFragment(nextConfig, fragment));
323
+ function then(onResolved, onRejected) {
324
+ const phase = options.phase ?? (isTurbopackDevelopment() ? PHASE_DEVELOPMENT_SERVER : PHASE_PRODUCTION_BUILD);
325
+ return load(phase).then(onResolved, onRejected);
326
+ }
327
+ const config = Object.assign(load, { then });
328
+ Object.defineProperty(config, "then", { enumerable: false });
329
+ return config;
330
+ }
312
331
  let liveTurbopackSession = null;
313
- async function wireTurbopack(nextConfig, options) {
332
+ let liveTurbopackWatcher = null;
333
+ /** The load the live session came from. Next loads the config again after
334
+ * Ready (validateTurboNextConfig), and a user config may await this one
335
+ * besides: the same phase and root share one analysis and keep the watcher.
336
+ * A rejected load is dropped, so a repaired source loads again. */
337
+ let liveTurbopackLoad = null;
338
+ function loadTurbopackFragment(options, phase) {
314
339
  const rootDir = process.cwd();
315
- const session = new ExtractionSession(options);
340
+ const key = JSON.stringify([phase, rootDir]);
341
+ if (liveTurbopackLoad?.key === key) return liveTurbopackLoad.fragment;
342
+ const fragment = analyzeForTurbopack(options, phase, rootDir);
343
+ const load = {
344
+ key,
345
+ fragment
346
+ };
347
+ liveTurbopackLoad = load;
348
+ fragment.catch(() => {
349
+ if (liveTurbopackLoad === load) liveTurbopackLoad = null;
350
+ });
351
+ return fragment;
352
+ }
353
+ async function analyzeForTurbopack(options, phase, rootDir) {
354
+ const development = phase === PHASE_DEVELOPMENT_SERVER;
355
+ const { mode } = resolveMode(options.mode, () => development ? "development" : "production");
356
+ const session = new ExtractionSession({
357
+ ...options,
358
+ mode
359
+ });
316
360
  liveTurbopackSession?.close();
361
+ liveTurbopackWatcher?.close();
362
+ liveTurbopackWatcher = null;
317
363
  liveTurbopackSession = session;
318
364
  session.rootDir = rootDir;
319
365
  const aliasPairs = readTsconfigAliasPairs(rootDir);
320
366
  const builtAliases = buildPathAliasesJson(aliasPairs, rootDir);
321
367
  if (builtAliases) session.pathAliasesJson = builtAliases.json;
322
368
  await runSessionPipeline(session);
323
- if (isTurbopackDevelopment()) bindTurbopackWatchDeathReport(startTurbopackWatcher(session, rootDir), rootDir);
324
- const fragment = buildTurbopackConfig({
369
+ if (development && liveTurbopackSession === session) {
370
+ const outcome = startTurbopackWatcher(session, rootDir);
371
+ bindTurbopackWatchDeathReport(outcome, rootDir);
372
+ if (outcome.kind === "started") liveTurbopackWatcher = outcome.handle;
373
+ }
374
+ return buildTurbopackConfig({
325
375
  rootDir,
326
376
  loaderPath: resolveTurbopackLoaderPath(__dirname),
327
377
  options,
328
378
  externalSourceEntries: session.externalSourceEntries,
329
379
  sessionId: session.sessionId,
330
- sessionDir: session.sessionDir
380
+ sessionDir: session.sessionDir,
381
+ development
331
382
  });
383
+ }
384
+ function mergeTurbopackFragment(nextConfig, fragment) {
332
385
  const existing = nextConfig.turbopack ?? {};
333
386
  if (existing.rules && ANIMUS_TURBOPACK_RULE_GLOB in existing.rules) throw new Error(`[animus-extract] turbopack.rules['${ANIMUS_TURBOPACK_RULE_GLOB}'] is already configured — remove the consumer rule or disable unstable_turbopack`);
334
387
  return {
@@ -38,11 +38,12 @@ function rootRelativeRequest(rootDir, absPath) {
38
38
  return `./${relative(rootDir, absPath).replace(/\\/g, "/")}`;
39
39
  }
40
40
  function buildTurbopackConfig(args) {
41
- const { rootDir, loaderPath, options, externalSourceEntries, sessionId, sessionDir } = args;
41
+ const { rootDir, loaderPath, options, externalSourceEntries, sessionId, sessionDir, development } = args;
42
42
  const loaderOptions = {
43
43
  rootDir,
44
44
  sessionId,
45
- sessionDir
45
+ sessionDir,
46
+ development
46
47
  };
47
48
  if (options.strict !== void 0) loaderOptions.strict = options.strict;
48
49
  if (options.cssImportTarget !== void 0) loaderOptions.cssImportTarget = options.cssImportTarget;
@@ -37,11 +37,12 @@ function rootRelativeRequest(rootDir, absPath) {
37
37
  return `./${(0, path.relative)(rootDir, absPath).replace(/\\/g, "/")}`;
38
38
  }
39
39
  function buildTurbopackConfig(args) {
40
- const { rootDir, loaderPath, options, externalSourceEntries, sessionId, sessionDir } = args;
40
+ const { rootDir, loaderPath, options, externalSourceEntries, sessionId, sessionDir, development } = args;
41
41
  const loaderOptions = {
42
42
  rootDir,
43
43
  sessionId,
44
- sessionDir
44
+ sessionDir,
45
+ development
45
46
  };
46
47
  if (options.strict !== void 0) loaderOptions.strict = options.strict;
47
48
  if (options.cssImportTarget !== void 0) loaderOptions.cssImportTarget = options.cssImportTarget;
@@ -31,6 +31,7 @@ export declare function buildTurbopackConfig(args: {
31
31
  externalSourceEntries: ReadonlyMap<string, string>;
32
32
  sessionId: string;
33
33
  sessionDir: string;
34
+ development: boolean;
34
35
  }): TurbopackConfigFragment;
35
36
  export declare function resolveTurbopackLoaderPath(pluginDir: string): string;
36
37
  //# sourceMappingURL=turbopack-config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"turbopack-config.d.ts","sourceRoot":"","sources":["../src/turbopack-config.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,yBAAyB,EAC1B,MAAM,4BAA4B,CAAC;AAKpC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEjD;wEACwE;AAExE,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,MAAM,GAAG,IAAI,CAAC;AAElD,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,KAAK,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,sBAAsB,CAAA;KAAE,CAAC,CAAC;CACrE;AAED,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IACrC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,C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M,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IACrC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACtC;AAED;;;0DAG0D;AAC1D,eAAO,MAAM,0BAA0B,QAAiD,CAAC;AAEzF,OAAO,EAAE,yBAAyB,EAAE,CAAC;AAErC,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,iBAAiB,EAC1B,GAAG,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAe,GACpD,OAAO,CAMT;AAED;0CAC0C;AAC1C,wBAAgB,sBAAsB,CACpC,GAAG,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAe,GACpD,OAAO,CAET;AAMD,wBAAgB,oBAAoB,CAAC,IAAI,EAAE;IACzC,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,iBAAiB,CAAC;IAC3B,qBAAqB,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnD,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,OAAO,CAAC;CACtB,GAAG,uBAAuB,CA4C1B;AAED,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAMpE"}
@@ -24,7 +24,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
24
24
  enumerable: true
25
25
  }) : target, mod));
26
26
  //#endregion
27
- const require_turbopack_config = require("./turbopack-config-DDjiYVRp.cjs");
27
+ const require_turbopack_config = require("./turbopack-config-BnLYDcu9.cjs");
28
28
  const require_loader_core = require("./loader-core-Cnipfewg.cjs");
29
29
  let _animus_ui_extract_pipeline = require("@animus-ui/extract/pipeline");
30
30
  let _animus_ui_extract_session = require("@animus-ui/extract/session");
@@ -210,8 +210,9 @@ async function runLoader(ctx, source) {
210
210
  engineApi: engineApiImpl,
211
211
  opts
212
212
  });
213
+ const development = opts.development ?? require_turbopack_config.isTurbopackDevelopment();
213
214
  const deliver = async (covering) => {
214
- if (!require_turbopack_config.isTurbopackDevelopment()) return transform(covering.manifestJson);
215
+ if (!development) return transform(covering.manifestJson);
215
216
  const extended = require_loader_core.extendedFiles(covering.manifestJson, filename);
216
217
  const generation = await coverExtendedFiles({
217
218
  covering,
@@ -9,6 +9,10 @@ export interface TurbopackLoaderOptions extends LoaderPolicyOptions {
9
9
  rootDir?: string;
10
10
  sessionId?: string;
11
11
  sessionDir?: string;
12
+ /** Decided from Next's phase when the config loads: true under `next dev`,
13
+ * where a watcher publishes newer generations. Absent, `NODE_ENV`
14
+ * decides. */
15
+ development?: boolean;
12
16
  }
13
17
  type LoaderCallback = (err: Error | null, content?: string) => void;
14
18
  type LoaderContext = LoaderContextBase<TurbopackLoaderOptions> & {
@@ -1 +1 @@
1
- {"version":3,"file":"turbopack-loader.d.ts","sourceRoot":"","sources":["../src/turbopack-loader.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,MAAM,MAAM,IAAI,CAAC;AAU7B,OAAO,KAAK,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAC5E,OAAO,KAAK,EAEV,SAAS,EAEV,MAAM,6BAA6B,CAAC;AAUrC;;;yEAGyE;AACzE,MAAM,WAAW,sBAAuB,SAAQ,mBAAmB;IACjE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,KAAK,cAAc,GAAG,CAAC,GAAG,EAAE,KAAK,GAAG,IAAI,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;AAEpE,KAAK,aAAa,GAAG,iBAAiB,CAAC,sBAAsB,CAAC,GAAG;IAC/D,KAAK,CAAC,EAAE,MAAM,cAAc,CAAC;CAC9B,CAAC;AAgCF,KAAK,eAAe,GAAG,MAAM,IAAI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,SAAS,EACT,gBAAgB,GAAG,eAAe,CACnC,CAAC;AAGF,2BAA2B;AAC3B,wBAAgB,qCAAqC,CACnD,GAAG,EAAE,eAAe,GAAG,IAAI,GAC1B,IAAI,CAEN;AAED,KAAK,QAAQ,GAAG,IAAI,CAAC,OAAO,MAAM,EAAE,cAAc,GAAG,YAAY,CAAC,CAAC;AAGnE,2BAA2B;AAC3B,wBAAgB,8BAA8B,CAAC,EAAE,EAAE,QAAQ,GAAG,IAAI,GAAG,IAAI,CAExE;AAID,2BAA2B;AAC3B,wBAAgB,mCAAmC,IAAI,IAAI,CAK1D;AAqJD,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAC3C,IAAI,EAAE,aAAa,EACnB,MAAM,EAAE,MAAM,GACb,IAAI,CAYN"}
@@ -1,4 +1,4 @@
1
- import { r as isTurbopackDevelopment } from "./turbopack-config-CaAI_L6k.mjs";
1
+ import { r as isTurbopackDevelopment } from "./turbopack-config-B4apoNIO.mjs";
2
2
  import { n as extensionLineage, r as transformWithManifest, t as extendedFiles } from "./loader-core-Dg0a-jZv.mjs";
3
3
  import { createRequire } from "node:module";
4
4
  import { buildAnalyzeProjectArgs, contentHash, createV2EngineApi, parseFilesJson } from "@animus-ui/extract/pipeline";
@@ -187,8 +187,9 @@ async function runLoader(ctx, source) {
187
187
  engineApi: engineApiImpl,
188
188
  opts
189
189
  });
190
+ const development = opts.development ?? isTurbopackDevelopment();
190
191
  const deliver = async (covering) => {
191
- if (!isTurbopackDevelopment()) return transform(covering.manifestJson);
192
+ if (!development) return transform(covering.manifestJson);
192
193
  const extended = extendedFiles(covering.manifestJson, filename);
193
194
  const generation = await coverExtendedFiles({
194
195
  covering,
package/dist/types.d.ts CHANGED
@@ -18,6 +18,10 @@ export interface AnimusNextOptions {
18
18
  verbose?: boolean | 'trace';
19
19
  /** Namespace prefix for CSS variables and class names. */
20
20
  prefix?: string;
21
+ /** With `prefix` set, contextual variables take the prefixed name
22
+ * everywhere Animus emits them, while authors keep writing the declared
23
+ * name. */
24
+ prefixContextualVars?: boolean;
21
25
  /** Forced-emission declarations for usage the scanner cannot observe
22
26
  * (CMS-driven variants, spread-hidden props). Absent is a no-op. */
23
27
  staticCss?: StaticCssConfig;
@@ -38,6 +42,12 @@ export interface AnimusNextOptions {
38
42
  turbopack?: {
39
43
  mode?: 'auto' | 'on' | 'off';
40
44
  };
45
+ /** Next's config phase, for a config function of your own that returns
46
+ * this one under Turbopack: `(phase) => withAnimus({ ...options, phase
47
+ * })(nextConfig)`. Next calls a config exported directly with its phase,
48
+ * and that phase wins. Without either, `NODE_ENV=development` reads as
49
+ * `next dev`. */
50
+ phase?: string;
41
51
  /** @deprecated Use `turbopack` — same shape, and it wins when both are
42
52
  * set. This alias warns once. */
43
53
  unstable_turbopack?: {
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAEnE,MAAM,WAAW,iBAAiB;IAChC,4EAA4E;IAC5E,MAAM,EAAE,MAAM,CAAC;IACf;+EAC2E;IAC3E,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB;4EACwE;IACxE,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB;;6CAEyC;IACzC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;0EACsE;IACtE,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAC5B,0DAA0D;IAC1D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;yEACqE;IACrE,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B;mDAC+C;IAC/C,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC5B;wDACoD;IACpD,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;yEACqE;IACrE,IAAI,CAAC,EAAE,aAAa,GAAG,YAAY,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AI,CAAC;IACd;qEACiE;IACjE,SAAS,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,KAAK,CAAA;KAAE,CAAC;IAC7C;;;;sBAIkB;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;sCACkC;IAClC,kBAAkB,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,IAAI,CAAA;KAAE,CAAC;IACtD;qEACiE;IACjE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;+EAC2E;IAC3E,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB"}
@@ -40,9 +40,15 @@ export type NextConfigInput<Config extends NextOwnedConfig> = Config extends Cal
40
40
  export type WebpackNextConfig<Config extends NextOwnedConfig> = Omit<Config, 'webpack'> & {
41
41
  webpack: NextWebpackHook;
42
42
  };
43
- export type TurbopackNextConfig<Config extends NextOwnedConfig> = Omit<Config, 'turbopack'> & {
43
+ export type TurbopackNextConfigObject<Config extends NextOwnedConfig> = Omit<Config, 'turbopack'> & {
44
44
  turbopack: TurbopackOptions;
45
45
  };
46
- export declare function withAnimus(options: AnimusNextOptions): <Config extends NextOwnedConfig>(nextConfig: NextConfigInput<Config>) => WebpackNextConfig<Config> | Promise<TurbopackNextConfig<Config>>;
46
+ /** Next calls a function config with its phase, the one signal that tells
47
+ * `next dev` from `next build` while the config loads: `NODE_ENV` can be
48
+ * set either way, and `NEXT_PHASE` is set only after compiling. A config
49
+ * that wraps this one awaits it instead, and it then resolves in the
50
+ * `phase` option's phase, or by `NODE_ENV` without one. */
51
+ export type TurbopackNextConfig<Config extends NextOwnedConfig> = ((phase: string) => Promise<TurbopackNextConfigObject<Config>>) & PromiseLike<TurbopackNextConfigObject<Config>>;
52
+ export declare function withAnimus(options: AnimusNextOptions): <Config extends NextOwnedConfig>(nextConfig: NextConfigInput<Config>) => WebpackNextConfig<Config> | TurbopackNextConfig<Config>;
47
53
  export declare function bindTurbopackWatchDeathReport(outcome: TurbopackWatchOutcome, rootDir: string): void;
48
54
  //# sourceMappingURL=with-animus.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"with-animus.d.ts","sourceRoot":"","sources":["../src/with-animus.ts"],"names":[],"mappings":"AA8BA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,KAAK,EACV,UAAU,IAAI,eAAe,EAC7B,gBAAgB,EACjB,MAAM,gCAAgC,CAAC;AAKxC,KAAK,kBAAkB,GAAG,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC;AAE5D,UAAU,gBAAgB;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC3B;AAED,UAAU,WAAW;IACnB,IAAI,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,CAAC;IAC5C,OAAO,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,CAAC;IAC/C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAC1B;AAED,UAAU,aAAa;IACrB,OAAO,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC/B,OAAO,CAAC,EAAE;QACR,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KAChC,CAAC;IACF,MAAM,CAAC,EAAE;QACP,KAAK,CAAC,EAAE,WAAW,EAAE,CAAC;KACvB,CAAC;CACH;AAED,KAAK,uBAAuB,GAAG,KAC7B,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAChC,MAAM,CAAC;AAEZ,UAAU,kBAAkB;IAC1B,GAAG,CAAC,EAAE,MAAM,CAAC;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,MAAM,GACd,IAAI,CASN"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@animus-ui/next-plugin",
3
- "version": "0.1.18",
3
+ "version": "0.1.20",
4
4
  "description": "Animus static CSS extraction for Next.js (webpack)",
5
5
  "keywords": [
6
6
  "animus",
@@ -40,10 +40,10 @@
40
40
  "compile": "tsc --noEmit"
41
41
  },
42
42
  "dependencies": {
43
- "@animus-ui/extract": "0.1.18"
43
+ "@animus-ui/extract": "0.1.20"
44
44
  },
45
45
  "devDependencies": {
46
- "@animus-ui/assertions": "0.1.18"
46
+ "@animus-ui/assertions": "0.1.20"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "@mdx-js/mdx": "^3.0.0",