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

@hippy/hippy-dynamic-import-plugin

Package Overview
Dependencies
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hippy/hippy-dynamic-import-plugin - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

24

index.js

@@ -131,14 +131,14 @@ const Template = require('webpack/lib/Template');

global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__
&& 'if(!global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__) {',
Template.indent([
'try {',
Template.indent([
`var stringifiedMap = JSON.parse('${JSON.stringify(global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__)}');`,
`global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__ = stringifiedMap;`,
]),
`} catch(err) {`,
Template.indent([`console.error('parse __DYNAMIC_LOAD_CUSTOM_PATH_MAP__ error', err);`,]),
`}`,
]),
'}',
? 'if(!global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__) {' +
Template.indent([
'try {',
Template.indent([
`var stringifiedMap = JSON.parse('${JSON.stringify(global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__)}');`,
`global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__ = stringifiedMap;`,
]),
`} catch(err) {`,
Template.indent([`console.error('parse __DYNAMIC_LOAD_CUSTOM_PATH_MAP__ error', err);`,]),
`}`,
]) +
'}' : '',
`var path = jsonpScriptSrc(chunkId);`,

@@ -145,0 +145,0 @@ `if (path && global.__DYNAMIC_LOAD_CUSTOM_PATH_MAP__) {`,

{
"name": "@hippy/hippy-dynamic-import-plugin",
"version": "2.0.1",
"version": "2.0.2",
"description": "hippy webpack打包动态加载chunk包插件",

@@ -5,0 +5,0 @@ "main": "index.js",

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