Skip to content
This repository has been archived by the owner on Dec 22, 2020. It is now read-only.

Commit

Permalink
fix: handle not javascript modules (#24)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: loader don't generate comment by default
  • Loading branch information
evilebottnawi authored May 15, 2019
1 parent 779a2f5 commit 9dcd860
Show file tree
Hide file tree
Showing 7 changed files with 403 additions and 5 deletions.
145 changes: 145 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"babel-jest": "^24.8.0",
"commitlint-azure-pipelines-cli": "^1.0.1",
"cross-env": "^5.2.0",
"css-loader": "^2.1.1",
"del": "^4.1.1",
"del-cli": "^1.1.0",
"eslint": "^5.16.0",
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import validateOptions from 'schema-utils';
import schema from './options.json';

export default function() {
return '// empty (null-loader)';
return '';
}

export function pitch() {
const options = loaderUtils.getOptions(this) || {};

validateOptions(schema, options, 'Null Loader');

return '// empty (null-loader)';
return '';
}
Loading

0 comments on commit 9dcd860

Please sign in to comment.