🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@procore/core-scripts-shims

Package Overview
Dependencies
Maintainers
299
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@procore/core-scripts-shims

Shims that patch core-scripts

latest
Source
npmnpm
Version
0.2.1
Version published
Weekly downloads
41
215.38%
Maintainers
299
Weekly downloads
 
Created
Source

@procore/core-scripts-shims

Shims that patch @procore/core-scripts.

yarn add @procore/core-scripts-shims

This package contains shims to patch core-scripts. These are useful when it's either difficult to upgrade core-scripts in a timely fashion or to patch things that are not easily changeable in core-scripts.

Usage

Simple Example
// procore.config.js
const { aShim } = require('@procore/core-scripts-shims');

module.exports = () => {
  app: {
    webpackOverride(config) {
      // any other overrides in webpackOverride.

      // Apply the desired shim.
      aShim(config);
    }
  }
}

Available Shims

autoPublicPath

This shim will patch the publicPath to be consistent across usages in the core-scripts webpack configuration, and enables the use of the "auto" public path for context-free MFE deployments. "context-free" means no more needing to specify a --publicPath value!

Automatically convert from json response with a text fallback.
// procore.config.js
const { autoPublicPath } = require('@procore/core-scripts-shims');

module.exports = () => {
  app: {
    webpackOverride(config) {
      // any other overrides in webpackOverride.

      autoPublicPath(config);
    }
  }
}

Keywords

core-scripts

FAQs

Package last updated on 13 Aug 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