We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 327dc46 commit 6e25562Copy full SHA for 6e25562
src/componentize.js
@@ -121,12 +121,12 @@ export async function componentize(
121
const engine = getEnginePath(opts);
122
123
// Determine the default features that should be included
124
- const features = DEFAULT_FEATURES.reduce((acc, f) => {
+ const features = new Set();
125
+ for (let f of DEFAULT_FEATURES) {
126
if (!disableFeatures.includes(f)) {
- acc.add(f);
127
+ features.add(f);
128
}
- return acc;
129
- }, new Set());
+ }
130
131
if (!jsSource && sourcePath) {
132
jsSource = await readFile(sourcePath, 'utf8');
0 commit comments