Skip to content

MongoDB object modeling designed to work in an asynchronous environment.

Notifications You must be signed in to change notification settings

zensurance/mongoose-browser

 
 

Repository files navigation

mongoose-browser

Compiled browser version of mongoose.

npm install mongoose-browser

Why this exists

"As of version 5.x, Mongoose no longer has an officially supported pre-built browser bundle, you need to compile the browser library yourself."

What we did

  • added deps: webpack "babel-loader@^8.0.0-beta" @babel/core @babel/preset-env uglifyjs-webpack-plugin
  • added config: webpack.config.js
  • moved all dependencies to devDependencies
  • added .npmignore so only package.json and index.js get published to npm
  • added npm build script

Building

  • clone the repo and npm install
  • build browser bundle (this will replace /index.js)
    • npm run build

About

MongoDB object modeling designed to work in an asynchronous environment.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 99.5%
  • Other 0.5%