@storm-software/build-tools
Version:
A comprehensive set of tools for building and managing projects within a Storm workspace. Includes builders such as rollup, rolldown, tsup, and unbuild, along with various utilities.
22 lines (18 loc) • 429 B
JavaScript
;Object.defineProperty(exports, "__esModule", {value: true});// src/plugins/swc.ts
var _core = require('@swc/core');
function swc() {
return {
name: "storm:swc",
transform(code, filename) {
return _core.transform.call(void 0, code, {
filename,
jsc: {
transform: {
react: { runtime: "automatic" }
}
}
});
}
};
}
exports.swc = swc;