You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
349 B
22 lines
349 B
import preprocess from "../src/main.js"
|
|
|
|
export default {
|
|
input: "./test.js",
|
|
output: {
|
|
file: "out.js"
|
|
},
|
|
plugins: [
|
|
preprocess({
|
|
values: {
|
|
"COMPTIME_STR": "'Hello, world!'",
|
|
"COMPTIME_NUM": 2,
|
|
"IS_TRUE": 1,
|
|
"IS_FALSE": 0
|
|
},
|
|
transforms: {
|
|
"NONPROD": (node, parent, idx) => {parent.comments = []}
|
|
}
|
|
})
|
|
]
|
|
}
|