Skip to content
This repository has been archived by the owner on Aug 4, 2021. It is now read-only.

Commit

Permalink
Move Rollup version check to buildStart hook to avoid issues because (#…
Browse files Browse the repository at this point in the history
…232)

this.error is undefined
  • Loading branch information
lukastaegert authored Jun 29, 2019
1 parent 84471e4 commit 02f0e6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export default function nodeResolve ( options = {} ) {
return {
name: 'node-resolve',

options ( options ) {
buildStart ( options ) {
preserveSymlinks = options.preserveSymlinks;
const [major, minor] = this.meta.rollupVersion.split('.').map(Number);
const minVersion = peerDependencies.rollup.slice(2);
Expand Down

0 comments on commit 02f0e6d

Please sign in to comment.