3.0.0 • Published 5 years ago

@sdinteractive/requirejs-export-plugin v3.0.0

Weekly downloads
237
License
ISC
Repository
github
Last release
5 years ago

requirejs-export-plugin

Exports all imported modules to browser requirejs via window.define.

This is specifically useful for Magento 2, which extensively uses requirejs.

Currently, a prefix of mixins! is added, so this is only usable with Magento 2.

Usage

In webpack.config.js:

const RequireJsExportPlugin = require('@sdinteractive/requirejs-export-plugin');

module.exports = {
  plugins: [
    new RequireJsExportPlugin(),
  ],
};

In Magento 2, this makes it so that requirejs code can load webpack modules (such as for UI components, etc.)

This also generates stubs for requirejs-loader, to allow for proper sequencing of the export.

3.0.0

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.2.0

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago