Skip to content

Commit

Permalink
feat(rollup): support development and production export conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jul 13, 2022
1 parent 7d251f5 commit f60e6eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rollup/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ export const plugins = [
},
exportConditions: [
'default',
nitro.options.dev ? 'development' : 'production',
'module',
'node',
'import'
Expand Down Expand Up @@ -282,6 +283,7 @@ export const plugins = [
mainFields: ['main'],
exportConditions: [
'default',
nitro.options.dev ? 'development' : 'production',
'module',
'node',
'import'
Expand Down

0 comments on commit f60e6eb

Please sign in to comment.