Skip to content

Commit

Permalink
init changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sayan-mitra committed Sep 8, 2020
1 parent 1390856 commit 88345ef
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{
"loose": true
}
]
],
"ignore": ["node_modules/**",]
],
["@babel/plugin-transform-arrow-functions"]
]
}
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{
"path": "dist/rudder-analytics.min.js",
"import": "{ createComponent }",
"brotli": true
"gzip": true
}
],
"scripts": {
Expand Down Expand Up @@ -68,10 +68,12 @@
},
"devDependencies": {
"@babel/core": "^7.6.2",
"@babel/preset-env": "^7.6.2",
"@babel/plugin-proposal-class-properties": "^7.0.0",
"@babel/plugin-transform-arrow-functions": "^7.10.4",
"@babel/preset-env": "^7.6.2",
"@mediaeventservices/jest-environment-jsdom-external-scripts": "^21.2.2",
"@size-limit/preset-big-lib": "^4.4.1",
"babel-plugin-external-helpers": "^6.22.0",
"eslint": "6.8.0",
"eslint-config-airbnb": "^18.0.1",
"eslint-config-airbnb-base": "^14.2.0",
Expand Down
13 changes: 11 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import * as webPackage from "./package.json";
import * as npmPackage from "./dist/rudder-sdk-js/package.json";

let distFileName = "";
let {version} = webPackage;
let { version } = webPackage;
let moduleType = "web";
switch (process.env.ENV) {
case "prod":
Expand Down Expand Up @@ -100,7 +100,16 @@ export default {
builtins(),

babel({
exclude: "node_modules/**",
presets: [["@babel/env"]],
plugins: [
[
"@babel/plugin-proposal-class-properties",
{
loose: true,
},
],
["@babel/plugin-transform-arrow-functions"],
],
}),
process.env.uglify === "true" && terser(),
process.env.ENC === "gzip" && gzipPlugin(),
Expand Down

0 comments on commit 88345ef

Please sign in to comment.