UNPKG

@nx/module-federation

Version:

The Nx Plugin for Module Federation contains executors and utilities that support building applications using Module Federation.

12 lines (11 loc) 439 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getRspackMajorVersion = getRspackMajorVersion; exports.isRspackV2 = isRspackV2; // Read from compiler.rspack to avoid a value import of the (pure-ESM) v2 package. function getRspackMajorVersion(compiler) { return parseInt(compiler.rspack.rspackVersion ?? '1', 10); } function isRspackV2(compiler) { return getRspackMajorVersion(compiler) >= 2; }