Skip to content

Commit

Permalink
Fix library package nesting (neutrinojs#474)
Browse files Browse the repository at this point in the history
  • Loading branch information
eliperelman authored Nov 21, 2017
1 parent 5a7d8c7 commit 5c288bb
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 2 deletions.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ module.exports = (neutrino, opts = {}) => {
neutrino.config.resolveLoader.modules.add(MODULES);

try {
const pkg = require(join(neutrino.options.root, 'package.json'));
const pkg = require(join(neutrino.options.root, 'package.json')); // eslint-disable-line global-require
const hasSourceMap = (pkg.dependencies && 'source-map-support' in pkg.dependencies) ||
(pkg.devDependencies && 'source-map-support' in pkg.devDependencies);

if (hasSourceMap) {
neutrino.use(banner);
}
} catch (ex) {}
} catch (ex) {} // eslint-disable-line

neutrino.use(compileLoader, {
include: [
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 5c288bb

Please sign in to comment.