Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@airtable/blocks-webpack-bundler
Advanced tools
This is a webpack bundler that can be used with @airtable/blocks-cli. This bundler allows you to customize the webpack config that is used when developing and bundling your Airtable app.
Install this package as a dependency of your Airtable app. Inside your app project folder, run
npm install @airtable/blocks-webpack-bundler --save-dev
bundler.js
inside your app project folder with the following contents:const createBundler = require('@airtable/blocks-webpack-bundler').default;
function createConfig(baseConfig) {
// Add any desired customizations here
return baseConfig;
}
exports.default = () => {
return createBundler(createConfig);
};
block.json
file, add a "bundler" field, with a "module" field inside that points
to your bundler file.{
"version": "1.0",
- "frontendEntry": "./frontend/index.js"
+ "frontendEntry": "./frontend/index.js",
+ "bundler": {
+ "module": "./bundler.js"
+ }
}
Here are some examples of how you can customize the webpack config via the bundler.js
file.
Support Sass/SCSS files:
const createBundler = require('@airtable/blocks-webpack-bundler').default;
function createConfig(baseConfig) {
baseConfig.module.rules.push({
test: /\.s[ac]ss$/i,
use: [
// Make sure you have installed these loaders in your package.json as well!
// See https://webpack.js.org/loaders/sass-loader/ for more info
'style-loader',
'css-loader',
'sass-loader',
],
});
return baseConfig;
}
exports.default = () => {
return createBundler(createConfig);
};
Support using flow to write your app:
const createBundler = require('@airtable/blocks-webpack-bundler').default;
function createConfig(baseConfig) {
baseConfig.module.rules.push({
test: /\.js$/,
exclude: [/node_modules/],
loader: 'babel-loader',
options: {
babelrc: false,
configFile: false,
presets: [
require.resolve('@babel/preset-env'),
require.resolve('@babel/preset-react'),
// Make sure you have installed this in your package.json by running
// `npm install @babel/preset-flow --save-dev`
require.resolve('@babel/preset-flow'),
],
},
});
return baseConfig;
}
exports.default = () => {
return createBundler(createConfig);
};
FAQs
Webpack bundler for @airtable/blocks-cli
The npm package @airtable/blocks-webpack-bundler receives a total of 451 weekly downloads. As such, @airtable/blocks-webpack-bundler popularity was classified as not popular.
We found that @airtable/blocks-webpack-bundler demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.