2.2.0 โ€ข Published 3 months ago

holocron-module-register-webpack-plugin v2.2.0

Weekly downloads
849
License
Apache-2.0
Repository
github
Last release
3 months ago

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

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')],
};
2.2.0

3 months ago

2.1.2-alpha.10

3 months ago

2.1.1

6 months ago

2.1.0

7 months ago

2.0.0-alpha-004.0

8 months ago

1.8.0

9 months ago

1.4.0

1 year ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.0

2 years ago

1.2.1

2 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago