execute-module-loader

1.0.0 • Public • Published

execute-module-loader Build status Latest Release License

This is a Webpack loader that allows you to execute a module at build time. It was originally taken from a Webpack test case and is distributed as a NPM module for convenience.

Default behavior

Given an ES module, the export default value will be used. For CommonJS modules, the module.exports value will be used.

Warning The value must be a string, or else compilation will fail.

Options

export: string

An export whose value to return as the module output. The value must be a string.

module: boolean

When enabled, all exports will be included in the module output, encoded in a stringified JSON object.

Package Sidebar

Install

npm i execute-module-loader

Weekly Downloads

6

Version

1.0.0

License

MIT

Unpacked Size

5.29 kB

Total Files

4

Last publish

Collaborators

  • nsaunders