Fix ES6 minification issues
This commit is contained in:
parent
46f18b2e84
commit
947039658b
@ -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",
|
||||
|
@ -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';
|
||||
|
@ -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';
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user