Skip to content

Commit

Permalink
fix: UMD bundle containing process.env flag (#1749)
Browse files Browse the repository at this point in the history
  • Loading branch information
cuebit authored May 14, 2020
1 parent 1f6f149 commit 0fea8c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@ module.exports = {
},
testMatch: ['<rootDir>/test/unit/**/*.spec.js'],
testPathIgnorePatterns: ['/node_modules/'],
setupFilesAfterEnv: [
'./test/setup.js'
],
"transform": {
"^.+\\.js$": "<rootDir>/node_modules/babel-jest"
setupFilesAfterEnv: ['./test/setup.js'],
transform: {
'^.+\\.js$': '<rootDir>/node_modules/babel-jest'
},
coverageDirectory: 'coverage',
coverageReporters: ['json', 'lcov', 'text-summary', 'clover'],
Expand Down
2 changes: 1 addition & 1 deletion src/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function createStore (options) {

export class Store {
constructor (options = {}) {
if (process.env.NODE_ENV !== 'production') {
if (__DEV__) {
assert(typeof Promise !== 'undefined', `vuex requires a Promise polyfill in this browser.`)
assert(this instanceof Store, `store must be called with the new operator.`)
}
Expand Down

0 comments on commit 0fea8c4

Please sign in to comment.