mirror of https://github.com/webpack/webpack.git
18 lines
210 B
JavaScript
18 lines
210 B
JavaScript
|
const toml = require("toml");
|
||
|
|
||
|
module.exports = {
|
||
|
module: {
|
||
|
rules: [
|
||
|
{
|
||
|
test: /\.toml$/,
|
||
|
type: "json",
|
||
|
parser: {
|
||
|
parse(input) {
|
||
|
return toml.parse(input);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
};
|