feat: `bigint` for the `DefinePlugin` plugin

This commit is contained in:
evilebottnawi 2020-03-02 18:25:17 +03:00 committed by Tobias Koppers
parent cf63c38280
commit 43713d49f6
3 changed files with 5 additions and 5 deletions

View File

@ -11,7 +11,7 @@ module.exports = {
es6: true
},
parserOptions: {
ecmaVersion: 2020
ecmaVersion: 2018
},
rules: {
"prettier/prettier": "error",

View File

@ -6,8 +6,8 @@ module.exports = {
},
plugins: [
new DefinePlugin({
BIGINT: 9007199254740991n,
ZERO_BIGINT: 0n
BIGINT: BigInt(9007199254740991),
ZERO_BIGINT: BigInt(0)
})
]
};

View File

@ -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,