Skip to content

Commit 37b0f70

Browse files
refactor: add babel transforms for ie 11 support
1 parent 61e8862 commit 37b0f70

14 files changed

+1023
-145
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = function(api) {
2+
api.cache.never();
3+
return {
4+
plugins: ['babel-plugin-transform-custom-element-classes'],
5+
presets: ['@vue/app'],
6+
};
7+
};

@uportal/content-carousel/package-lock.json

Lines changed: 478 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

@uportal/content-carousel/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"scripts": {
1010
"prepublishOnly": "npm run build",
1111
"start": "vue-cli-service serve",
12+
"prebuild": "babel node_modules/@vue/web-component-wrapper/dist/vue-wc-wrapper.js -o node_modules/@vue/web-component-wrapper/dist/vue-wc-wrapper.js",
1213
"build": "vue-cli-service build --name content-carousel --target wc 'src/components/*.vue'",
1314
"lint": "vue-cli-service lint"
1415
},
@@ -26,9 +27,12 @@
2627
"xml2js": "^0.4.19"
2728
},
2829
"devDependencies": {
30+
"@babel/cli": "^7.1.0",
31+
"@babel/core": "^7.1.0",
2932
"@vue/cli-plugin-babel": "^3.0.3",
3033
"@vue/cli-plugin-typescript": "^3.0.3",
3134
"@vue/cli-service": "^3.0.3",
35+
"babel-plugin-transform-custom-element-classes": "^0.1.0",
3236
"node-sass": "^4.9.3",
3337
"sass-loader": "^7.0.3",
3438
"vue-template-compiler": "^2.5.16"
@@ -46,7 +50,7 @@
4650
"browserslist": [
4751
"> 1%",
4852
"last 2 versions",
49-
"not ie <= 8"
53+
"not dead"
5054
],
5155
"description": "Display portlet content in a browsable carousel",
5256
"bugs": {

@uportal/content-carousel/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"compilerOptions": {
3-
"target": "esnext",
3+
"target": "ES5",
44
"module": "esnext",
55
"strict": true,
66
"jsx": "preserve",
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
module.exports = {
2-
presets: ["@vue/app"],
3-
plugins: ["@babel/plugin-proposal-optional-chaining"]
2+
presets: ['@vue/app'],
3+
plugins: [
4+
'@babel/plugin-proposal-optional-chaining',
5+
'babel-plugin-transform-custom-element-classes',
6+
],
47
};

@uportal/esco-content-menu/package-lock.json

Lines changed: 22 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

@uportal/esco-content-menu/package.json

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,6 @@
2727
"publishConfig": {
2828
"access": "public"
2929
},
30-
"eslintConfig": {
31-
"root": true,
32-
"env": {
33-
"node": true
34-
},
35-
"extends": [
36-
"plugin:vue/essential",
37-
"eslint:recommended"
38-
],
39-
"rules": {},
40-
"parserOptions": {
41-
"parser": "babel-eslint"
42-
}
43-
},
4430
"postcss": {
4531
"plugins": {
4632
"autoprefixer": {}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
22
pluginOptions: {
3-
enableInSFC: true
3+
enableInSFC: true,
44
// },
55
// css: {
66
// loaderOptions: {
@@ -10,5 +10,5 @@ module.exports = {
1010
// camelCase: 'only'
1111
// }
1212
// }
13-
}
13+
},
1414
};
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1-
module.exports = {
2-
presets: ["@vue/app"]
1+
module.exports = function(api) {
2+
api.cache.never();
3+
return {
4+
plugins: ['babel-plugin-transform-custom-element-classes'],
5+
presets: ['@vue/app'],
6+
};
37
};

0 commit comments

Comments
 (0)