UNPKG

@nx/rollup

Version:

The Nx Plugin for Rollup contains executors and generators that support building applications using Rollup.

20 lines (19 loc) 488 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.swc = swc; function swc() { const { transform } = require('@swc/core'); return { name: 'nx-swc', transform(code, filename) { return transform(code, { filename, jsc: { transform: { react: { runtime: 'automatic' }, }, }, }); }, }; }