🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis
Socket
Book a DemoInstallSign in
Socket

@financial-times/dotcom-build-js

Package Overview
Dependencies
Maintainers
0
Versions
190
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@financial-times/dotcom-build-js

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].

latest
npmnpm
Version
13.5.1
Version published
Weekly downloads
478
1.49%
Maintainers
0
Weekly downloads
 
Created
Source

@financial-times/dotcom-build-js

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.

Getting started

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)
  ]
}

Babel

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:

  • the latest version of Chrome
  • the lastest version of Edge
  • Safari 9.1
  • Firefox Extended Support Release

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.

Options

OptionTypeDefaultDescription
jsxPragmaString"h"See https://babeljs.io/docs/en/babel-preset-react#pragma
jsxPragmaFragString"Fragment"See https://babeljs.io/docs/en/babel-preset-react#pragmafrag

FAQs

Package last updated on 12 Dec 2025

Did you know?

Socket

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.

Install

Related posts