fix: bundling fix

This commit is contained in:
ysandler 2020-06-23 21:19:27 -05:00 committed by Joshua Shoemaker
parent d505bd512d
commit 7aa05823cb
4 changed files with 11 additions and 4 deletions

File diff suppressed because one or more lines are too long

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "dmein", "name": "dmein",
"version": "0.1.0", "version": "0.1.1",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -1,6 +1,6 @@
{ {
"name": "dmein", "name": "dmein",
"version": "0.1.1", "version": "0.1.2",
"description": "Dmein is a modern JavaScript Library to create objects that easily mutate data through relationships, filtering, and tranforming the shape of data.", "description": "Dmein is a modern JavaScript Library to create objects that easily mutate data through relationships, filtering, and tranforming the shape of data.",
"main": "index.js", "main": "index.js",
"directories": { "directories": {

View File

@ -2,7 +2,14 @@ const path = require('path')
module.exports = { module.exports = {
entry: { index: path.resolve(__dirname, 'src', 'index.js') }, entry: { index: path.resolve(__dirname, 'src', 'index.js') },
output: { path: path.resolve(__dirname) }, output: {
path: path.resolve(__dirname),
filename: 'index.js',
library: 'dmein',
libraryTarget: 'umd',
globalObject: 'this',
umdNamedDefine: true
},
module: { module: {
rules: [ rules: [
{ {