Skip to content

Instantly share code, notes, and snippets.

@rchl
Created January 26, 2021 22:36
Show Gist options
  • Save rchl/8498ebc6b1cbe836dff51ac1400e2b30 to your computer and use it in GitHub Desktop.
Save rchl/8498ebc6b1cbe836dff51ac1400e2b30 to your computer and use it in GitHub Desktop.

Nuxt notes

Disable generator runtime for webpack-processed files by setting this in nuxt.config.js:

  build: {
    terser: false,
    babel: {
      presets({ isServer }, [preset, options]) {
        options.targets = isServer ? { node: 'current' } : { chrome: 90 }
      },
    },
  },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment