Launch Week Day 1: Socket for Jira Is Now Available.Learn More
Socket
Book a DemoSign in
Socket

holocron-module-register-webpack-plugin

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

holocron-module-register-webpack-plugin

This plugin adds the module to the registry once its loaded on the page.

latest
Source
npmnpm
Version
2.2.0
Version published
Weekly downloads
107
55.07%
Maintainers
2
Weekly downloads
 
Created
Source

Holocron Module Register Webpack Plugin - One Amex

npm

This plugin adds the module to the registry once its loaded on the page. It wraps the contents of a module in an IIFE which registers the module.

📖 Table of Contents

  • Usage

🤹‍ Usage

Installation

yarn add holocron-module-register-webpack-plugin --dev

# or

npm install holocron-module-register-webpack-plugin --save-dev

Configurations

Add the plugin to your webpack config


const HolocronModuleRegisterPlugin = require('holocron-module-register-webpack-plugin');

Pass the name of the module to the plugin as a parameter within your webpack configuration.

const HolocronModuleRegisterPlugin = require('holocron-module-register-webpack-plugin');
const pkg = require('./package.json');

const { name } = pkg;

const webpackOptions = {
  entry: path.join(fixturesPath, 'SomeModule.js'),
  output: {
    path: buildPath,
  },
  plugins: [new HolocronModuleRegisterPlugin('some-module')],
};

Keywords

holocron

FAQs

Package last updated on 21 Feb 2024

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