-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: change output from webpack to babel (#64)
* fix: use webpack to transpile js code and removed webpack * fix: update tests * fix: node version * fix: code review
- Loading branch information
1 parent
2c8ca28
commit 4232fc3
Showing
18 changed files
with
1,519 additions
and
2,278 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,6 @@ TODO | |
test.js | ||
/dist/ | ||
/react/ | ||
/lib/ | ||
/module/ | ||
/examples/react-example1/src/contract.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
module.exports = api => { | ||
api.cache(true); | ||
|
||
return { | ||
env: { | ||
development: { | ||
presets: [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
corejs: 3, | ||
shippedProposals: true, | ||
targets: { node: "current" }, | ||
useBuiltIns: "usage" | ||
} | ||
] | ||
], | ||
plugins: [ | ||
[ | ||
"@babel/plugin-transform-runtime", | ||
{ | ||
corejs: 3 | ||
} | ||
], | ||
"@babel/plugin-proposal-class-properties" | ||
] | ||
}, | ||
browser: { | ||
presets: [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
corejs: 3, | ||
modules: false, | ||
shippedProposals: true, | ||
targets: { browsers: "defaults" }, | ||
useBuiltIns: "usage" | ||
} | ||
] | ||
], | ||
plugins: [ | ||
[ | ||
"@babel/plugin-transform-runtime", | ||
{ | ||
corejs: 3, | ||
useESModules: true | ||
} | ||
], | ||
"@babel/plugin-proposal-class-properties" | ||
] | ||
}, | ||
module: { | ||
presets: [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
corejs: 3, | ||
modules: false, | ||
shippedProposals: true, | ||
targets: { node: "current" }, | ||
useBuiltIns: "usage" | ||
} | ||
] | ||
], | ||
plugins: [ | ||
[ | ||
"@babel/plugin-transform-runtime", | ||
{ | ||
corejs: 3, | ||
useESModules: true | ||
} | ||
], | ||
"@babel/plugin-proposal-class-properties" | ||
] | ||
} | ||
}, | ||
sourceMaps: true | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.