Skip to content
This repository has been archived by the owner on Aug 10, 2023. It is now read-only.

Commit

Permalink
fix bundle (es5), add check (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
omrilotan authored and sahariko committed Oct 6, 2019
1 parent bb8e765 commit d595548
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "page-timing",
"version": "1.2.1",
"version": "1.2.2",
"description": "⏱ Measure browser timing and do something with it",
"keywords": [
"browser",
Expand Down Expand Up @@ -43,6 +43,7 @@
"@lets/wait": "^1.0.0",
"babel-loader": "^8.0.6",
"chai": "^4.2.0",
"ecma-webpack-plugin": "0.0.0",
"eslint": "^6.5.1",
"eslint-plugin-log": "^1.2.3",
"karma": "^4.3.0",
Expand Down
10 changes: 7 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const {resolve} = require('path');
const { resolve } = require('path');
const EcmaPlugin = require('ecma-webpack-plugin');

const {NODE_ENV = 'production'} = process.env;
const { NODE_ENV = 'production' } = process.env;

module.exports = {
mode: NODE_ENV,
Expand All @@ -16,11 +17,14 @@ module.exports = {
{
test: /\.js$/,
loader: 'babel-loader',
include: resolve('../src'),
include: resolve('./src'),
sideEffects: false,
options: require('./.babelrc.js')
}
]
},
plugins: [
new EcmaPlugin({parser: {ecmaVersion: '5'}})
],
target: 'web'
};

0 comments on commit d595548

Please sign in to comment.