Skip to content

Commit

Permalink
feat: bigint for the DefinePlugin plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait authored and sokra committed Mar 9, 2020
1 parent cf63c38 commit 43713d4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Expand Up @@ -11,7 +11,7 @@ module.exports = {
es6: true
},
parserOptions: {
ecmaVersion: 2020
ecmaVersion: 2018
},
rules: {
"prettier/prettier": "error",
Expand Down
Expand Up @@ -6,8 +6,8 @@ module.exports = {
},
plugins: [
new DefinePlugin({
BIGINT: 9007199254740991n,
ZERO_BIGINT: 0n
BIGINT: BigInt(9007199254740991),
ZERO_BIGINT: BigInt(0)
})
]
};
4 changes: 2 additions & 2 deletions test/configCases/plugins/define-plugin/webpack.config.js
Expand Up @@ -12,8 +12,8 @@ module.exports = {
ONE: 1,
STRING: '"string"',
EMPTY_STRING: '""',
BIGINT: 9007199254740991n,
ZERO_BIGINT: 0n,
BIGINT: BigInt(9007199254740991),
ZERO_BIGINT: BigInt(0),
POSITIVE_ZERO: +0,
NEGATIVE_ZER0: -0,
NEGATIVE_NUMBER: -100.25,
Expand Down

0 comments on commit 43713d4

Please sign in to comment.