feat: `bigint` for the `DefinePlugin` plugin
This commit is contained in:
parent
cf63c38280
commit
43713d49f6
|
@ -11,7 +11,7 @@ module.exports = {
|
|||
es6: true
|
||||
},
|
||||
parserOptions: {
|
||||
ecmaVersion: 2020
|
||||
ecmaVersion: 2018
|
||||
},
|
||||
rules: {
|
||||
"prettier/prettier": "error",
|
||||
|
|
|
@ -6,8 +6,8 @@ module.exports = {
|
|||
},
|
||||
plugins: [
|
||||
new DefinePlugin({
|
||||
BIGINT: 9007199254740991n,
|
||||
ZERO_BIGINT: 0n
|
||||
BIGINT: BigInt(9007199254740991),
|
||||
ZERO_BIGINT: BigInt(0)
|
||||
})
|
||||
]
|
||||
};
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue