Skip to content

Commit

Permalink
Fix conflicts between cards when not used as a module (#64)
Browse files Browse the repository at this point in the history
* Add spread babel plugins (#64)

* Adjust babel process (#64)
  • Loading branch information
kalkih committed Mar 2, 2019
1 parent 2f5c57c commit 287d145
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
36 changes: 16 additions & 20 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,26 +1,22 @@
{
"presets": [
[
"@babel/preset-env",
{
"modules": false,
"targets": {
"esmodules": true
}
}
],
"minify"
["@babel/preset-env", {
"modules": "commonjs",
"targets": "> 2.5%, not dead",
}],
["minify"],
],
"comments": false,
"plugins": [
[
"@babel/plugin-proposal-decorators",
{ "legacy": true }
],
[
"@babel/plugin-proposal-class-properties",
{ "loose": true }
],
["@babel/plugin-transform-template-literals"]
]
["@babel/plugin-transform-template-literals"],
["@babel/plugin-proposal-decorators", {
"legacy": true
}],
["@babel/plugin-proposal-class-properties", {
"loose": true
}],
["@babel/plugin-proposal-object-rest-spread"],
["@babel/plugin-transform-spread"],
["iife-wrap"],
],
}
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@
"@babel/core": "^7.3.3",
"@babel/plugin-proposal-class-properties": "^7.3.3",
"@babel/plugin-proposal-decorators": "^7.3.0",
"@babel/plugin-proposal-object-rest-spread": "^7.3.4",
"@babel/plugin-transform-spread": "^7.2.2",
"@babel/plugin-transform-template-literals": "^7.2.0",
"@babel/preset-env": "^7.3.1",
"babel-plugin-iife-wrap": "^1.1.0",
"babel-preset-minify": "^0.5.0",
"eslint": "^5.14.0",
"eslint-config-airbnb-base": "^13.1.0",
Expand Down
1 change: 1 addition & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export default {
output: {
file: 'mini-graph-card-bundle.js',
format: 'umd',
name: 'MiniGraphCard',
},
plugins: [
resolve(),
Expand Down

0 comments on commit 287d145

Please sign in to comment.