Skip to content

Commit c6b90f7

Browse files
authored
Merge pull request #7 from adinvadim/fix_ssr_webpack_bug
Fix bug with webpack 4 libraryTarget umd
2 parents 267ab13 + b7b4846 commit c6b90f7

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vuex-orm/plugin-change-flags",
3-
"version": "1.2.1",
3+
"version": "1.2.2",
44
"description": "Vuex ORM plugin adding IsDirty / IsNew flags to model entities",
55
"author": "Thomas Villaren",
66
"main": "dist/index.js",

webpack.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ module.exports = {
66
path: path.resolve(__dirname, 'dist'),
77
filename: 'index.js',
88
library: 'isdirty-isnew-vuexorm-plugin',
9-
libraryTarget: 'umd'
9+
libraryTarget: 'umd',
10+
globalObject: `(typeof self !== 'undefined' ? self : this)`,
1011
}
1112
};

0 commit comments

Comments
 (0)