Security News
New Proposed CISA Mandate Would Require Critical Infrastructure to Report Ransom Payments Within 24 Hours
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
@roots/bud-swc
Advanced tools
SWC transpilation extension for Bud projects
Weekly downloads
Readme
SWC transpilation extension for Bud projects
Install @roots/bud-swc to your project.
Yarn:
yarn add @roots/bud-swc --dev
npm:
npm install @roots/bud-swc --save-dev
Including a .swcrc
config file in the root of your project will replace all default options.
Be aware that extensions may still modify the options even if you use .swcrc
. For example, @roots/bud-react will modify the jsc.transform
option to support react refresh if bud.react.refresh
is enabled.
You can modify swc options directly using bud.swc
. These options are passed in more or less directly to swc-loader.
bud.swc.set(`jsc.parser.dynamicImport`, false);
bud.swc.setOptions((options) => ({
...options,
jsc: {
...(options?.jsc ?? {}),
parser: {
...(options?.jsc?.parser ?? {}),
dynamicImports: false,
},
},
}));
@roots/bud-swc
does not currently support typechecking during compilation as swc does not natively support it yet.
Our recommendation is to run typechecking as a separate process. You can use tsc
directly: tsc --noEmit
.
You could also add the fork-ts-webpack-plugin
.
Subscribe to swc-project/swc#571 for more information on where swc-project is at with its typecheck implementation.
Contributions are welcome from everyone.
We have contribution guidelines to help you get started.
@roots/bud-swc is licensed under MIT.
Keep track of development and community news.
Bud is an open source project and completely free to use.
However, the amount of effort needed to maintain and develop new features and projects within the Roots ecosystem is not sustainable without proper financial backing. If you have the capability, please consider sponsoring Roots.
FAQs
SWC transpilation extension for Bud projects
The npm package @roots/bud-swc receives a total of 2,112 weekly downloads. As such, @roots/bud-swc popularity was classified as popular.
We found that @roots/bud-swc demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
Security News
Redis is no longer OSS, breaking its explicit commitment to remain under the BSD 3-Clause License forever. This has angered contributors who are now working to fork the software.
Product
Socket AI now enables 'AI detected potential malware' alerts by default, ensuring users benefit from AI-powered state-of-the-art malware detection without needing to opt-in.