Skip to content

Commit a039298

Browse files
committed
chore: up deps
1 parent 33eee5e commit a039298

File tree

3 files changed

+1339
-1832
lines changed

3 files changed

+1339
-1832
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
"@docsearch/js": "^1.0.0-alpha.22",
4848
"@microsoft/api-extractor": "7.8.1",
4949
"@rollup/plugin-alias": "^3.1.1",
50-
"@rollup/plugin-commonjs": "^15.0.0",
51-
"@rollup/plugin-node-resolve": "^9.0.0",
50+
"@rollup/plugin-commonjs": "^19.0.0",
51+
"@rollup/plugin-node-resolve": "^13.0.0",
5252
"@rollup/plugin-replace": "^2.3.3",
5353
"@size-limit/preset-small-lib": "^4.5.5",
5454
"@types/jest": "^26.0.17",
@@ -61,12 +61,12 @@
6161
"firebase-mock": "^2.3.2",
6262
"focus-visible": "^5.2.0",
6363
"jest": "^26.2.2",
64-
"lint-staged": "^10.2.11",
64+
"lint-staged": "^11.0.0",
6565
"pascalcase": "^1.0.0",
6666
"prettier": "^2.0.5",
6767
"rollup": "^2.23.0",
6868
"rollup-plugin-terser": "^7.0.2",
69-
"rollup-plugin-typescript2": "^0.29.0",
69+
"rollup-plugin-typescript2": "^0.30.0",
7070
"size-limit": "^4.5.5",
7171
"ts-jest": "^26.1.4",
7272
"typescript": "^4.0.2",
@@ -115,6 +115,6 @@
115115
},
116116
"homepage": "https://github.com/posva/vuefire#readme",
117117
"dependencies": {
118-
"vue-demi": "^0.4.5"
118+
"vue-demi": "^0.9.1"
119119
}
120120
}

rollup.config.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -154,14 +154,14 @@ function createReplacePlugin(
154154
: // hard coded dev/prod builds
155155
!isProduction,
156156
// this is only used during tests
157-
__TEST__: isBundlerESMBuild ? `(process.env.NODE_ENV === 'test')` : false,
157+
__TEST__: isBundlerESMBuild ? `(process.env.NODE_ENV === 'test')` : 'false',
158158
// If the build is expected to run directly in the browser (global / esm builds)
159-
__BROWSER__: isBrowserBuild,
159+
__BROWSER__: JSON.stringify(isBrowserBuild),
160160
// is targeting bundlers?
161-
__BUNDLER__: isBundlerESMBuild,
162-
__GLOBAL__: isGlobalBuild,
161+
__BUNDLER__: JSON.stringify(isBundlerESMBuild),
162+
__GLOBAL__: JSON.stringify(isGlobalBuild),
163163
// is targeting Node (SSR)?
164-
__NODE_JS__: isNodeBuild,
164+
__NODE_JS__: JSON.stringify(isNodeBuild),
165165
}
166166
// allow inline overrides like
167167
//__RUNTIME_COMPILE__=true yarn build
@@ -170,7 +170,10 @@ function createReplacePlugin(
170170
replacements[key] = process.env[key]
171171
}
172172
})
173-
return replace(replacements)
173+
return replace({
174+
preventAssignment: true,
175+
values: replacements,
176+
})
174177
}
175178

176179
function createProductionConfig(format) {

0 commit comments

Comments
 (0)