UNPKG

@nx/rollup

Version:

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

21 lines (20 loc) 527 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, inputSourceMap: false, jsc: { transform: { react: { runtime: 'automatic' }, }, }, }); }, }; }