
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
@financial-times/dotcom-build-js
Advanced tools
This package exports a Webpack plugin to configure it with the ability to build JavaScript that makes use of features that are specific to [ft.com].
This package exports a Webpack plugin to configure it with the ability to build JavaScript that makes use of features that are specific to ft.com.
This module is compatible with Node 12+ and is distributed on npm.
npm install --save-dev @financial-times/dotcom-build-js
After installing the module you must add it to the list of plugins in your project's webpack.config.js configuration file:
+ const { PageKitJsPlugin } = require('@financial-times/dotcom-build-js')
module.exports = {
plugins: [
+ new PageKitJsPlugin(options)
]
}
This plugin configures Babel to compile JavaScript syntax and features that aren't supported by every browser into JavaScript that is. The browsers we target are:
As well as features in current JavaScript standards, we also compile these non-standard features:
dotcom-build-js can be configured with options. Other methods of configuring Babel are not supported by Page Kit, because it's possible to produce output that doesn't work in the browsers we support, or to hurt performance by producing inconsistent output between apps, reducing caching effectiveness.
| Option | Type | Default | Description |
|---|---|---|---|
jsxPragma | String | "h" | See https://babeljs.io/docs/en/babel-preset-react#pragma |
jsxPragmaFrag | String | "Fragment" | See https://babeljs.io/docs/en/babel-preset-react#pragmafrag |
FAQs
This package exports a Webpack plugin to configure it with the ability to build JavaScript that makes use of features that are specific to [ft.com].
The npm package @financial-times/dotcom-build-js receives a total of 475 weekly downloads. As such, @financial-times/dotcom-build-js popularity was classified as not popular.
We found that @financial-times/dotcom-build-js 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
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.