Skip to content

Commit

Permalink
Merge pull request #586 from ruudschuurmans/fix-broken-ie11-support
Browse files Browse the repository at this point in the history
[JS] Fix broken IE11 support by transpiling spread syntax using babel
  • Loading branch information
calebporzio committed Mar 2, 2020
2 parents 2cd8cf0 + 42eb411 commit 6f1733b
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 16 deletions.
20 changes: 19 additions & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,27 @@ module.exports = {
{
targets: {
node: 'current',
edge: '18'
edge: '18',
ie: "11",
},
},
],
],
plugins: [
"@babel/plugin-proposal-object-rest-spread",
],
env: {
test: {
presets: [
[
'@babel/preset-env',
{
targets: {
node: 'current',
},
}
]
]
}
}
};
14 changes: 1 addition & 13 deletions dist/livewire.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/livewire.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/manifest.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"/livewire.js":"/livewire.js?id=55fa5591457d6940941b"}
{"/livewire.js":"/livewire.js?id=85041eb7d2493ecca7a3"}
12 changes: 12 additions & 0 deletions package-lock.json

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

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
"jest-dom": "^3.5.0",
"babel-jest": "^24.9.0",
"@babel/core": "^7.7.5",
"@babel/plugin-proposal-object-rest-spread": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.8.3",
"@babel/preset-env": "^7.7.6",
"jsdom-simulant": "^1.1.2",
"dom-testing-library": "^3.19.4",
Expand Down

0 comments on commit 6f1733b

Please sign in to comment.