2015-02-21 20:19:08 +08:00
|
|
|
var DefinePlugin = require("../../../../lib/DefinePlugin");
|
|
|
|
module.exports = {
|
|
|
|
plugins: [
|
|
|
|
new DefinePlugin({
|
2015-03-06 05:58:03 +08:00
|
|
|
TRUE: true,
|
|
|
|
FALSE: false,
|
2015-02-21 20:19:08 +08:00
|
|
|
UNDEFINED: undefined,
|
2018-04-12 04:23:02 +08:00
|
|
|
FUNCTION: /* istanbul ignore next */ function(a) {
|
2017-01-11 17:51:58 +08:00
|
|
|
return a + 1;
|
|
|
|
},
|
2015-02-21 20:19:08 +08:00
|
|
|
CODE: "(1+2)",
|
|
|
|
REGEXP: /abc/i,
|
|
|
|
OBJECT: {
|
|
|
|
SUB: {
|
|
|
|
UNDEFINED: undefined,
|
2018-04-12 04:23:02 +08:00
|
|
|
FUNCTION: /* istanbul ignore next */ function(a) {
|
2017-01-11 17:51:58 +08:00
|
|
|
return a + 1;
|
|
|
|
},
|
2015-03-06 04:49:22 +08:00
|
|
|
CODE: "(1+2)",
|
2016-11-10 15:52:00 +08:00
|
|
|
REGEXP: /abc/i,
|
|
|
|
STRING: JSON.stringify("string")
|
2015-02-21 20:19:08 +08:00
|
|
|
}
|
|
|
|
},
|
2016-11-10 15:52:00 +08:00
|
|
|
"process.env.DEFINED_NESTED_KEY": 5,
|
2018-02-25 18:46:17 +08:00
|
|
|
"process.env.DEFINED_NESTED_KEY_STRING": '"string"',
|
2017-02-06 19:44:39 +08:00
|
|
|
"typeof wurst": "typeof suppe",
|
|
|
|
"typeof suppe": "typeof wurst",
|
2018-02-25 18:46:17 +08:00
|
|
|
wurst: "suppe",
|
|
|
|
suppe: "wurst"
|
2015-02-21 20:19:08 +08:00
|
|
|
})
|
|
|
|
]
|
2017-01-11 17:51:58 +08:00
|
|
|
};
|