How to use the @skpm/builder/lib/utils/babelLoader.default function in @skpm/builder

To help you get started, we’ve selected a few @skpm/builder examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github sketch-hq / SketchAPI / webpack.config.js View on Github external
const path = require('path')
const webpack = require('webpack')
const babelLoader = require('@skpm/builder/lib/utils/babelLoader').default({})

const PRODUCTION = process.env.NODE_ENV !== 'development'

const OUTPUT_PATH = path.resolve(__dirname, './build')

const ENTRIES = [
  { entry: './Source/index.ts', output: 'SketchAPI.js' },
  { entry: './Source/async/index.ts', output: 'SketchAPI_async.js' },
  {
    entry: './Source/data-supplier/index.ts',
    output: 'SketchAPI_data-supplier.js',
  },
  { entry: './Source/dom/index.js', output: 'SketchAPI_dom.js' },
  { entry: './Source/settings/index.ts', output: 'SketchAPI_settings.js' },
  { entry: './Source/ui/index.ts', output: 'SketchAPI_ui.js' },
]

@skpm/builder

A script to build and link sketch plugins

MIT
Latest version published 1 year ago

Package Health Score

49 / 100
Full package analysis