Skip to content

Commit f0e813a

Browse files
🔨 Fix some issues running tests
Also some TS config compiler changes
1 parent 932b3d4 commit f0e813a

File tree

4 files changed

+26
-5
lines changed

4 files changed

+26
-5
lines changed

.babelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@
22
"presets": [
33
"@babel/preset-env",
44
"@babel/preset-typescript"
5+
],
6+
"plugins": [
7+
"@babel/plugin-proposal-optional-chaining"
58
]
69
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
},
4040
"devDependencies": {
4141
"@babel/core": "^7.7.7",
42+
"@babel/plugin-proposal-optional-chaining": "^7.7.5",
4243
"@babel/preset-env": "^7.7.7",
4344
"@babel/preset-typescript": "^7.7.7",
4445
"@types/jest": "^24.0.25",

rollup.config.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ const pkg = require('./package.json');
1010
const plugins = [
1111
json(),
1212
typescript({
13-
useTsconfigDeclarationDir: true
13+
useTsconfigDeclarationDir: true,
14+
objectHashIgnoreUnknownHack: true,
15+
clean: true,
1416
}),
1517
commonjs(),
1618
resolve(),
@@ -25,7 +27,7 @@ export default [
2527
file: pkg.browser,
2628
name: 'browserEventUtils',
2729
format: 'umd',
28-
sourcemap: true
30+
sourcemap: true,
2931
},
3032
],
3133
plugins: [
@@ -39,12 +41,12 @@ export default [
3941
{
4042
file: pkg.module,
4143
format: 'es',
42-
sourcemap: true
44+
sourcemap: true,
4345
},
4446
{
4547
file: pkg.main,
4648
format: 'commonjs',
47-
sourcemap: true
49+
sourcemap: true,
4850
}
4951
],
5052
plugins,
@@ -59,4 +61,4 @@ export default [
5961
// watch: {
6062
// include: 'src/**',
6163
// },
62-
// };
64+
// };

yarn.lock

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,14 @@
352352
"@babel/helper-plugin-utils" "^7.0.0"
353353
"@babel/plugin-syntax-optional-catch-binding" "^7.7.4"
354354

355+
"@babel/plugin-proposal-optional-chaining@^7.7.5":
356+
version "7.7.5"
357+
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.7.5.tgz#f0835f044cef85b31071a924010a2a390add11d4"
358+
integrity sha512-sOwFqT8JSchtJeDD+CjmWCaiFoLxY4Ps7NjvwHC/U7l4e9i5pTRNt8nDMIFSOUL+ncFbYSwruHM8WknYItWdXw==
359+
dependencies:
360+
"@babel/helper-plugin-utils" "^7.0.0"
361+
"@babel/plugin-syntax-optional-chaining" "^7.7.4"
362+
355363
"@babel/plugin-proposal-unicode-property-regex@^7.7.7":
356364
version "7.7.7"
357365
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.7.7.tgz#433fa9dac64f953c12578b29633f456b68831c4e"
@@ -402,6 +410,13 @@
402410
dependencies:
403411
"@babel/helper-plugin-utils" "^7.0.0"
404412

413+
"@babel/plugin-syntax-optional-chaining@^7.7.4":
414+
version "7.7.4"
415+
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.7.4.tgz#c91fdde6de85d2eb8906daea7b21944c3610c901"
416+
integrity sha512-2MqYD5WjZSbJdUagnJvIdSfkb/ucOC9/1fRJxm7GAxY6YQLWlUvkfxoNbUPcPLHJyetKUDQ4+yyuUyAoc0HriA==
417+
dependencies:
418+
"@babel/helper-plugin-utils" "^7.0.0"
419+
405420
"@babel/plugin-syntax-top-level-await@^7.7.4":
406421
version "7.7.4"
407422
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.7.4.tgz#bd7d8fa7b9fee793a36e4027fd6dd1aa32f946da"

0 commit comments

Comments
 (0)