Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Issue where The Q would not load in IE: re-configuring Babel 7 #262

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 26 additions & 20 deletions frontend/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,35 +1,41 @@
module.exports = function(api) {
api.cache.using( () => process.env.NODE_ENV !== 'test')
const isTest = api.env('test')
if (isTest) {
if (api.env('test')) {
return {
presets: [
[
'@babel/preset-env',
{
useBuiltIns: "usage",
corejs: "3",
targets: {
ie: "11"
}
},
node: 'current',
browsers: [
'last 5 Chrome versions'
]
},
useBuiltIns: 'usage',
corejs: '3.0'
}
]
],
]
}
}
return {
presets: [
'@vue/app',
[
'@babel/preset-env',
{
useBuiltIns: "usage",
corejs: "3",
targets: {
ie: "11"
}
},
'@babel/preset-env',
{
modules: false,
targets: {
browsers: [
'> 1%',
'last 2 versions',
'not ie <= 10'
]
},
useBuiltIns: 'usage',
corejs: '3.0'
}
]
]
],
plugins: []
}
}
}
41 changes: 30 additions & 11 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion frontend/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ See the License for the specific language governing permissions and
limitations under the License.*/

import Vue from 'vue'
import 'es6-promise/auto'
import { store } from './store/'
import BootstrapVue from 'bootstrap-vue'
import Router from './router'
Expand Down
1 change: 0 additions & 1 deletion frontend/src/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import Vue from 'vue'
import Vuex from 'vuex'
import moment from 'moment'
import tZone from 'moment-timezone'
import 'es6-promise/auto'
import { addExamModule } from './add-exam-module'
import appointmentsModule from './appointments-module'
import { Axios, searchNestedObject } from './helpers'
Expand Down