Skip to content

Commit e6e82a4

Browse files
committed
fix: babel extensions vue #32
1 parent 937a1b9 commit e6e82a4

File tree

9 files changed

+14
-16
lines changed

9 files changed

+14
-16
lines changed

dist/VueFinalModal.esm.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/VueFinalModal.esm.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/VueFinalModal.umd.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/VueFinalModal.umd.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/yarn.lock

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4883,11 +4883,6 @@ is-glob@^4.0.0, is-glob@^4.0.1, is-glob@~4.0.1:
48834883
dependencies:
48844884
is-extglob "^2.1.1"
48854885

4886-
is-mobile@^2.2.2:
4887-
version "2.2.2"
4888-
resolved "https://registry.yarnpkg.com/is-mobile/-/is-mobile-2.2.2.tgz#f6c9c5d50ee01254ce05e739bdd835f1ed4e9954"
4889-
integrity sha512-wW/SXnYJkTjs++tVK5b6kVITZpAZPtUrt9SF80vvxGiF/Oywal+COk1jlRkiVq15RFNEQKQY31TkV24/1T5cVg==
4890-
48914886
is-negative-zero@^2.0.0:
48924887
version "2.0.1"
48934888
resolved "https://registry.yarnpkg.com/is-negative-zero/-/is-negative-zero-2.0.1.tgz#3de746c18dda2319241a53675908d8f766f11c24"

lib/VueFinalModal.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ export default {
179179
beforeDestroy() {
180180
this.close()
181181
this.lockScroll && enableBodyScroll(this.$refs.vfmContent)
182-
this.$el.remove()
182+
this?.$el?.remove()
183183
184184
let index = this.api.modals.findIndex(vm => vm === this)
185185
this.api.modals.splice(index, 1)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"@atomico/rollup-plugin-sizes": "^1.1.4",
2525
"@babel/core": "^7.11.6",
2626
"@babel/preset-env": "^7.11.5",
27-
"@rollup/plugin-babel": "^5.2.1",
27+
"@rollup/plugin-babel": "^5.2.2",
2828
"@vue/cli-plugin-eslint": "^4.5.4",
2929
"@vue/cli-service": "^4.5.4",
3030
"@vue/eslint-config-prettier": "^6.0.0",

rollup.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ const plugins = [
1515
normalizer: '~vue-runtime-helpers/dist/normalize-component.js',
1616
styleInjector: '~vue-runtime-helpers/dist/inject-style/browser.js'
1717
}),
18-
babel({ babelHelpers: 'bundled' }),
18+
babel({
19+
babelHelpers: 'bundled',
20+
extensions: ['.js', '.jsx', '.es6', '.es', '.mjs', '.vue']
21+
}),
1922
cleanup(),
2023
terser(),
2124
sizes()

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@
878878
resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-1.1.3.tgz#2b5a3ab3f918cca48a8c754c08168e3f03eba61b"
879879
integrity sha512-shAmDyaQC4H92APFoIaVDHCx5bStIocgvbwQyxPRrbUY20V1EYTbSDchWbuwlMG3V17cprZhA6+78JfB+3DTPw==
880880

881-
"@rollup/plugin-babel@^5.2.1":
881+
"@rollup/plugin-babel@^5.2.2":
882882
version "5.2.2"
883883
resolved "https://registry.yarnpkg.com/@rollup/plugin-babel/-/plugin-babel-5.2.2.tgz#e5623a01dd8e37e004ba87f2de218c611727d9b2"
884884
integrity sha512-MjmH7GvFT4TW8xFdIeFS3wqIX646y5tACdxkTO+khbHvS3ZcVJL6vkAHLw2wqPmkhwCfWHoNsp15VYNwW6JEJA==
@@ -5416,9 +5416,9 @@ lazy-cache@^1.0.3:
54165416
integrity sha1-odePw6UEdMuAhF07O24dpJpEbo4=
54175417

54185418
less@^3.9.0:
5419-
version "3.12.2"
5420-
resolved "https://registry.yarnpkg.com/less/-/less-3.12.2.tgz#157e6dd32a68869df8859314ad38e70211af3ab4"
5421-
integrity sha512-+1V2PCMFkL+OIj2/HrtrvZw0BC0sYLMICJfbQjuj/K8CEnlrFX6R5cKKgzzttsZDHyxQNL1jqMREjKN3ja/E3Q==
5419+
version "3.13.0"
5420+
resolved "https://registry.yarnpkg.com/less/-/less-3.13.0.tgz#6a47bb19d97edcf7a53d444b099275dd6b17c85a"
5421+
integrity sha512-uPhr9uoSGVKKYVGz0rXcYBK1zjwcIWRGcbnSgNt66XuIZYrYPaQiS+LeUOvqedBwrwdBYYaLqSff5ytGYuT7rA==
54225422
dependencies:
54235423
tslib "^1.10.0"
54245424
optionalDependencies:

0 commit comments

Comments
 (0)