Skip to content

Commit bdf627d

Browse files
committed
chore: up deps
1 parent 7a7bb0e commit bdf627d

File tree

3 files changed

+904
-958
lines changed

3 files changed

+904
-958
lines changed

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,26 +33,26 @@
3333
"keywords": [],
3434
"license": "MIT",
3535
"devDependencies": {
36-
"@microsoft/api-extractor": "7.13.2",
36+
"@microsoft/api-extractor": "7.13.2-pr1916.0",
3737
"@rollup/plugin-alias": "^3.1.2",
3838
"@rollup/plugin-commonjs": "^18.0.0",
39-
"@rollup/plugin-node-resolve": "^11.2.0",
40-
"@rollup/plugin-replace": "^2.4.1",
41-
"@size-limit/preset-small-lib": "^4.9.2",
42-
"@types/jest": "^26.0.20",
43-
"@types/jsdom": "^16.2.6",
39+
"@rollup/plugin-node-resolve": "^11.2.1",
40+
"@rollup/plugin-replace": "^2.4.2",
41+
"@size-limit/preset-small-lib": "^4.10.2",
42+
"@types/jest": "^26.0.22",
43+
"@types/jsdom": "^16.2.10",
4444
"@vue/test-utils": "^2.0.0-rc.3",
4545
"codecov": "^3.8.1",
4646
"conventional-changelog-cli": "^2.1.1",
4747
"jest": "^26.5.3",
4848
"lint-staged": "^10.5.4",
4949
"pascalcase": "^1.0.0",
5050
"prettier": "^2.2.1",
51-
"rollup": "^2.40.0",
51+
"rollup": "^2.44.0",
5252
"rollup-plugin-terser": "^7.0.2",
5353
"rollup-plugin-typescript2": "^0.30.0",
54-
"size-limit": "^4.9.2",
55-
"ts-jest": "^26.5.3",
54+
"size-limit": "^4.10.2",
55+
"ts-jest": "^26.5.4",
5656
"typescript": "^4.2.3",
5757
"vue": "^3.0.7",
5858
"yorkie": "^2.0.0"

rollup.config.js

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -152,16 +152,16 @@ function createReplacePlugin(
152152
? // preserve to be handled by bundlers
153153
`(process.env.NODE_ENV !== 'production')`
154154
: // hard coded dev/prod builds
155-
!isProduction,
155+
JSON.stringify(!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)