Skip to content

Webpack loader to remove the last module.exports line

Notifications You must be signed in to change notification settings

ritcoder/no-export-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

no-export-loader

Sometimes a library already handles its exports while hiding everything else. Since nothing is exposed, the last module.exports = xxx throws an exception.

This loader simply removes that last line

Usage

var X = require("no-export!./Main");

About

Webpack loader to remove the last module.exports line

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published