mongoose-browser

5.2.8-pre-2 • Public • Published

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

Package Sidebar

Install

npm i mongoose-browser

Weekly Downloads

21

Version

5.2.8-pre-2

License

MIT

Unpacked Size

589 kB

Total Files

4

Last publish

Collaborators

  • ksloan