Skip to content

chrishowes/node-repl-loader-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-repl-loader-example

Try this out

  • npm install -g webpack && npm install
  • webpack
  • node build/index.js

Take a quick look at index.js and exportsObject.js to get a sense of the structure of the app

Then in the REPL:

  • exportsObject.a exportsObject is a var in index.js
  • ns exportsObject switch to the exportsObject "namespace"
  • this.a = 99 this WILL change the value of exportsObject.a
  • ns to go back to the main namespace
  • exportsObject.a = 99. Success!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published