Skip to content

Commit fbb9cad

Browse files
feat(index): flag module for rebuilding ( module.extracted)
1 parent 25bff9b commit fbb9cad

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

src/index.js

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@ export default function loader(css, map, meta) {
2828
// Loader Mode (Async)
2929
const cb = this.async();
3030
const file = this.resourcePath;
31-
<<<<<<< HEAD
32-
33-
=======
34-
35-
>>>>>>> feat(plugins/import): add `@import` filter support (`options.import`) (#656)
3631
// Loader Options
3732
const options = Object.assign({}, DEFAULTS, getOptions(this));
3833

@@ -82,7 +77,7 @@ export default function loader(css, map, meta) {
8277
map,
8378
to: file,
8479
})
85-
.then(({ root, css, map, messages }) => {
80+
.then(({ css, map, messages }) => {
8681
if (meta && meta.messages) {
8782
messages = messages.concat(meta.messages);
8883
}
@@ -120,30 +115,15 @@ export default function loader(css, map, meta) {
120115

121116
return exports;
122117
}, '');
123-
124-
imports = imports ? `// CSS Imports\n${imports}\n` : false
125-
exports = exports ? `// CSS Exports\n${exports}\n` : false
126-
css = `// CSS\nexport default \`${css}\``
127118

128119
imports = imports ? `// CSS Imports\n${imports}\n` : false;
129120
exports = exports ? `// CSS Exports\n${exports}\n` : false;
130121
css = `// CSS\nexport default \`${css}\``;
131122

132123
// TODO(michael-ciniawsky)
133124
// triage if and add CSS runtime back
134-
<<<<<<< HEAD
135125
const result = [imports, exports, css].filter(Boolean).join('\n');
136126

137-
=======
138-
const result = [
139-
imports,
140-
exports,
141-
css
142-
]
143-
.filter(Boolean)
144-
.join('\n');
145-
146-
>>>>>>> feat(plugins/import): add `@import` filter support (`options.import`) (#656)
147127
cb(null, result, map ? map.toJSON() : null);
148128

149129
return null;

0 commit comments

Comments
 (0)