Fix ES6 minification issues

This commit is contained in:
Lucas Verney 2018-11-29 10:04:56 +01:00
parent 46f18b2e84
commit 947039658b
4 changed files with 7 additions and 5 deletions

View File

@ -16,7 +16,7 @@
"dependencies": {
"@babel/polyfill": "^7.0.0",
"file-saver": "^1.3.8",
"gps-to-gpx": "git://github.com/phyks/gps-to-gpx.git#2c9da24ca98ecd520ee75276714d4df337696475",
"gps-to-gpx": "git://github.com/phyks/gps-to-gpx.git#1cb5adf4dd382266d076d7df3cb5aa3a4d7dd27b",
"material-icons": "^0.2.3",
"nosleep.js": "^0.7.0",
"ol": "^5.3.0",

View File

@ -1,5 +1,5 @@
import FileSaver from 'file-saver';
import createGPX from 'gps-to-gpx';
import createGPX from 'gps-to-gpx/es/createGpx';
import { VERSION } from '@/constants';
import { formatDate } from '@/tools/date';

View File

@ -53,7 +53,9 @@
</template>
<script>
import NoSleep from 'nosleep.js';
// Import directly from dist to avoid ES6 issues
// See https://github.com/richtr/NoSleep.js/issues/46.
import NoSleep from 'nosleep.js/dist/NoSleep';
import Alert from '@/components/Alert.vue';
import Map from '@/components/Map.vue';

View File

@ -4177,9 +4177,9 @@ got@^8.3.1:
url-parse-lax "^3.0.0"
url-to-options "^1.0.1"
"gps-to-gpx@git://github.com/phyks/gps-to-gpx.git#2c9da24ca98ecd520ee75276714d4df337696475":
"gps-to-gpx@git://github.com/phyks/gps-to-gpx.git#1cb5adf4dd382266d076d7df3cb5aa3a4d7dd27b":
version "1.4.0"
resolved "git://github.com/phyks/gps-to-gpx.git#2c9da24ca98ecd520ee75276714d4df337696475"
resolved "git://github.com/phyks/gps-to-gpx.git#1cb5adf4dd382266d076d7df3cb5aa3a4d7dd27b"
dependencies:
babel-runtime "6.18.0"
loose-envify "1.3.0"