Skip to content

Instantly share code, notes, and snippets.

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 }
import sublime, sublime_plugin
import re
import threading
# This is an example plugin that simulates a completion interaction with an
# LSP server, while correctly apply any edits that are received from the
# server. This is trickier than you'd expect, due to the async nature the
# server communication, the async auto complete system in Sublime Text, and
# the use of row+col offsets within the LSP protocol.