mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Build: adding support to rollup *.json files to include moment-timezone data. (#23951)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import resolve from '@rollup/plugin-node-resolve';
|
||||
import commonjs from '@rollup/plugin-commonjs';
|
||||
import sourceMaps from 'rollup-plugin-sourcemaps';
|
||||
import json from '@rollup/plugin-json';
|
||||
import { terser } from 'rollup-plugin-terser';
|
||||
|
||||
const pkg = require('./package.json');
|
||||
@@ -22,6 +23,9 @@ const buildCjsPackage = ({ env }) => {
|
||||
],
|
||||
external: ['lodash', 'apache-arrow'], // Use Lodash & arrow from grafana
|
||||
plugins: [
|
||||
json({
|
||||
include: ['../../node_modules/moment-timezone/data/packed/latest.json'],
|
||||
}),
|
||||
commonjs({
|
||||
include: /node_modules/,
|
||||
namedExports: {
|
||||
|
||||
Reference in New Issue
Block a user