Skip to content

donaldpipowitch/webpack-umd-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💡 Update: This problem was discussed in webpack/webpack#6522. Setting output.globalObject to 'this' did the trick.


Just a small test case, because it looks like I cannot create an UMD build with webpack, which can be required by Node.

Just run yarn && yarn build && yarn test.

I get this error:

ReferenceError: window is not defined
    at Object.<anonymous> (/mnt/c/Users/foo/webpack-umd-node/dist/main.js:1:272)

It looks like the UMD build expects window to be defined. AFAIK this shouldn't be the case.

About

Just a test case for creating UMD builds with Webpack which can be used from Node.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors