Initial Commit
This commit is contained in:
24
node_modules/mongoose/webpack.config.js
generated
vendored
Normal file
24
node_modules/mongoose/webpack.config.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
'use strict';
|
||||
|
||||
const paths = require('path');
|
||||
|
||||
const base = require('./webpack.base.config.js');
|
||||
|
||||
const webpackConfig = Object.assign({}, base, {
|
||||
entry: require.resolve('./browser.js'),
|
||||
output: {
|
||||
filename: './dist/browser.umd.js',
|
||||
path: paths.resolve(__dirname, ''),
|
||||
library: 'mongoose',
|
||||
libraryTarget: 'umd',
|
||||
// override default 'window' globalObject so browser build will work in SSR environments
|
||||
// may become unnecessary in webpack 5
|
||||
globalObject: 'typeof self !== \'undefined\' ? self : this'
|
||||
},
|
||||
externals: [
|
||||
/^node_modules\/.+$/
|
||||
]
|
||||
});
|
||||
|
||||
module.exports = webpackConfig;
|
||||
|
||||
Reference in New Issue
Block a user