
Product
Introducing the Alert Details Page: A Better Way to Explore Alerts
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.
@sewing-kit/plugin-babel
Advanced tools
@sewing-kit/plugin-babelExposes hooks to configure Babel, which may then be used by other build and test plugins.
yarn add @sewing-kit/plugin-babel --dev
babel() is a plugin that exposes hooks to configure babel at the project level and sets default values for that configuration based on what the user provides.
Add the plugin to your project and specify any defaults that you wish to set using the config option, which is an object containing all the options described on Babel's options page with the exception of include and exclude. This example defines a config that uses the @shopify/babel-preset preset.
import {createPackage, Runtime} from '@sewing-kit/core';
import {babel} from '@sewing-kit/plugin-babel';
export default createPackage((pkg) => {
pkg.runtime(Runtime.Node);
pkg.use(
babel({
config: {presets: ['@shopify/babel-preset']},
}),
);
});
This plugin adds the following hooks to each of the TestProjectConfigurationHooks, BuildProjectConfigurationHooks, and DevProjectConfigurationHooks:
babelConfig: the configuration used when transpiling with Babel.
import {createProjectBuildPlugin} from '@sewing-kit/core';
const plugin = createProjectBuildPlugin(({hooks}) => {
hooks.configure.hook((configure) => {
// Add an additional plugins when building
configure.babelConfig?.hook((config) => ({
...config,
plugins: [...config.plugins, require.resolve('my-babel-plugin')],
}));
});
});
FAQs
sewing-kit-next technology plugin for babel
The npm package @sewing-kit/plugin-babel receives a total of 3 weekly downloads. As such, @sewing-kit/plugin-babel popularity was classified as not popular.
We found that @sewing-kit/plugin-babel demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.

Product
Campaign-level threat intelligence in Socket now shows when active supply chain attacks affect your repositories and packages.

Research
Malicious PyPI package sympy-dev targets SymPy users, a Python symbolic math library with 85 million monthly downloads.