Skip to content

Commit

Permalink
feat: Add Babel config programmaticaly
Browse files Browse the repository at this point in the history
  • Loading branch information
petarvujovic98 committed Oct 10, 2022
1 parent 24628dc commit 20a65f6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 16 deletions.
6 changes: 6 additions & 0 deletions cli/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,12 @@ async function createJsFileWithRullup(sourceFileWithPath, rollupTarget) {
babel({
babelHelpers: "bundled",
extensions: [".ts", ".js", ".jsx", ".es6", ".es", ".mjs"],
presets: ["@babel/preset-typescript"],
plugins: [
"near-sdk-js/lib/build-tools/include-bytes.js",
"near-sdk-js/lib/build-tools/near-bindgen-exporter.js",
["@babel/plugin-proposal-decorators", { version: "legacy" }],
],
}),
],
});
Expand Down
8 changes: 0 additions & 8 deletions examples/babel.config.json

This file was deleted.

8 changes: 0 additions & 8 deletions tests/babel.config.json

This file was deleted.

0 comments on commit 20a65f6

Please sign in to comment.