UNPKG

kepler.gl

Version:

kepler.gl is a webgl based application to visualize large scale location data in the browser

52 lines (47 loc) 1.13 kB
// SPDX-License-Identifier: MIT // Copyright contributors to the kepler.gl project const KeplerPackage = require('./package'); const PRESETS = ['@babel/preset-env', '@babel/preset-react', '@babel/preset-typescript']; const PLUGINS = [ ['@babel/plugin-transform-typescript', {isTSX: true, allowDeclareFields: true}], '@babel/plugin-transform-modules-commonjs', '@babel/plugin-transform-class-properties', '@babel/plugin-transform-optional-chaining', '@babel/plugin-transform-logical-assignment-operators', '@babel/plugin-transform-nullish-coalescing-operator', '@babel/plugin-transform-export-namespace-from', [ '@babel/transform-runtime', { regenerator: true } ], [ 'search-and-replace', { rules: [ { search: '__PACKAGE_VERSION__', replace: KeplerPackage.version } ] } ] ]; const ENV = { test: { plugins: ['istanbul'] }, debug: { sourceMaps: 'inline', retainLines: true } }; module.exports = function babel(api) { api.cache(true); return { presets: PRESETS, plugins: PLUGINS, env: ENV }; };