Socket
Book a DemoInstallSign in
Socket

exports-loader

Package Overview
Dependencies
Maintainers
3
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

exports-loader

exports loader module for webpack

5.0.0
latest
Source
npmnpm
Version published
Weekly downloads
256K
-1.54%
Maintainers
3
Weekly downloads
 
Created

What is exports-loader?

The exports-loader npm package allows you to add exports to your modules. This can be useful when you need to export specific variables or functions from a module that does not export them by default.

What are exports-loader's main functionalities?

Exporting a single variable

This feature allows you to export a single variable from a module. In this example, the variable 'singleVar' from 'module.js' is exported.

module.exports = require('exports-loader?exports=singleVar!./module.js');

Exporting multiple variables

This feature allows you to export multiple variables from a module. In this example, 'var1' and 'var2' from 'module.js' are exported.

module.exports = require('exports-loader?exports[]=var1&exports[]=var2!./module.js');

Exporting a function

This feature allows you to export a function from a module. In this example, the function 'someFunction' from 'module.js' is exported.

module.exports = require('exports-loader?exports=someFunction!./module.js');

Other packages similar to exports-loader

Keywords

webpack

FAQs

Package last updated on 16 Jan 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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.