Skip to content

Commit 1dab4ac

Browse files
committed
Make sure esm module supports fallback localStorage
1 parent b841e22 commit 1dab4ac

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ export default {
2222
}),
2323
replace({
2424
BUILD_COMPAT_SNIPPET: 'true',
25-
BUILD_COMPAT_2_0: 'true',
2625
BUILD_COMPAT_LOCAL_STORAGE: 'true',
26+
BUILD_COMPAT_2_0: 'true',
2727
BUILD_COMPAT_REACT_NATIVE: 'false',
2828
}),
2929
commonjs(),

rollup.esm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ export default {
2222
}),
2323
replace({
2424
BUILD_COMPAT_SNIPPET: 'false',
25-
BUILD_COMPAT_2_0: 'false',
25+
BUILD_COMPAT_LOCAL_STORAGE: 'true',
26+
BUILD_COMPAT_2_0: 'true',
2627
BUILD_COMPAT_REACT_NATIVE: 'false',
27-
BUILD_COMPAT_LOCAL_STORAGE: 'false',
2828
}),
2929
commonjs({
3030
include: "node_modules/**"

0 commit comments

Comments
 (0)