New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

shimport-loader

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shimport-loader

Webpack loader that replaces import() with shimport() https://www.npmjs.com/package/shimport

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
25
-39.02%
Maintainers
1
Weekly downloads
 
Created
Source

shimport-loader

Webpack loader that replaces import() with shimport() https://www.npmjs.com/package/shimport

Usage

Include the shimport script to create the global var __shimport__.

E.g.,

<script src="https://unpkg.com/shimport"></script>

Then use the shimport-loader in the webpack config.

// in webpack.config.js
...
module: {
  rules: [
    {
      test: /\.m?js$/,
      exclude: /(node_modules|bower_components)/,
      use: {
        loader: 'shimport-loader'
      }
    }
  ]
}

^ will replace the dynamic import() expressions with __shimport__.load() expressions.

FAQs

Package last updated on 28 Oct 2020

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