module.exports = [
{
input: "components/Button",
output: {
file: "dist/components/Button.js",
format: "es"
},
plugins: [
peerDepsExternal(),
postcss({
extract: false,
modules: true,
autoModules: true,
use: ["sass"],
parser: "postcss-scss",
}),
babel({ babelHelpers: "runtime", exclude: "node_modules/**" }),
resolve({ extensions: [".js", ".jsx", ".scss"] }),
commonjs(),
],
external: [/@babel\/runtime/]
}
];
This throws an error
CssSyntaxError: <my-file>.module.scss:3:1: Unexpected '/'. Escaping special characters with \ may help.
caused by postcss-modules-local-by-default
.
The error suggests the problem is inline comment which I have in line 3, and indeed - if I remove it starts working, however I don't see it as a fix. Inline comment is valid scss syntax.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too