Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-app-alias-ex

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-app-alias-ex - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0

2

package.json
{
"name": "react-app-alias-ex",
"version": "1.0.0",
"version": "2.0.0",
"description": "Alias for craco or rewire react app",

@@ -5,0 +5,0 @@ "keywords": [

@@ -8,2 +8,3 @@ const path = require('path')

configPaths,
defaultOptions,
expandResolveAlias,

@@ -99,3 +100,9 @@ expandPluginsScope,

}
const options = {...opts, compilerOptions}
const options = {
...opts,
typescript: {
...opts.typescript,
configOverwrite: compilerOptions,
}
}
plugins[pluginPos] = new Consructor(options)

@@ -105,3 +112,4 @@ }

function aliasJest(aliasMap) {
function aliasJest(options) {
const aliasMap = defaultOptions(options).aliasMap
const aliasJestInstance = aliasJestSafe(aliasMap)

@@ -120,3 +128,4 @@ return function(config) {

function aliasDangerous(aliasMap) {
function aliasWebpack(options) {
const aliasMap = defaultOptions(options).aliasMap
const aliasLocal = Object.keys(aliasMap).reduce( (a,i) => {

@@ -137,3 +146,3 @@ a[i] = path.resolve(paths.appPath, aliasMap[i])

overrideWebpackConfig: function({webpackConfig, pluginOptions}) {
return aliasDangerous(pluginOptions.alias||configPaths())(webpackConfig)
return aliasWebpack(pluginOptions.alias||configPaths())(webpackConfig)
},

@@ -146,3 +155,3 @@ overrideJestConfig: function({jestConfig, pluginOptions}) {

module.exports = {
aliasDangerous,
aliasWebpack,
aliasJest,

@@ -149,0 +158,0 @@ configPaths,

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc