Skip to content

Commit

Permalink
fix: do not generate store at export phase
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Jul 14, 2020
1 parent 8eab9b1 commit f776987
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integrations/nextjs-plugin/src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ export default ({
presets,
webpack,
...rest
}: LoaderOptions) => () => {
if (!store) {
}: LoaderOptions) => (phase: string) => {
if (phase !== 'phase-export' && !store) {
const config: CompileProps = {
webPack: webpack,
presets: presets || defaultPresets,
Expand Down

0 comments on commit f776987

Please sign in to comment.