Skip to content

Commit

Permalink
fix(webpack): remove deprecated cjs option
Browse files Browse the repository at this point in the history
  • Loading branch information
tivac committed Feb 3, 2022
1 parent e0f0bc8 commit 3489907
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
6 changes: 0 additions & 6 deletions packages/webpack/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@ module.exports = async function(source) {
// Webpack 4
this._compiler.options.processor;

if(options.cjs) {
this.emitWarning(
new Error("cjs option is deprecated, used namedExports: false instead")
);
}

this.cacheable();

try {
Expand Down
4 changes: 0 additions & 4 deletions packages/webpack/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ function ModularCSS(args) {
...args,
};

if(options.cjs) {
options.namedExports = false;
}

this.prev = {};
this.processor = options.processor || new Processor(options);
this.options = options;
Expand Down

0 comments on commit 3489907

Please sign in to comment.