feat: generate sourcemaps inn build
This commit is contained in:
parent
d2dd27dfab
commit
63e0a0bdf4
@ -13,6 +13,7 @@ export default [
|
|||||||
{
|
{
|
||||||
input: 'src/js/index.js',
|
input: 'src/js/index.js',
|
||||||
output: {
|
output: {
|
||||||
|
sourcemap: true,
|
||||||
name: 'frappe-charts',
|
name: 'frappe-charts',
|
||||||
file: pkg.browser,
|
file: pkg.browser,
|
||||||
format: 'umd'
|
format: 'umd'
|
||||||
@ -32,8 +33,8 @@ export default [
|
|||||||
{
|
{
|
||||||
input: 'src/js/chart.js',
|
input: 'src/js/chart.js',
|
||||||
output: [
|
output: [
|
||||||
{ file: pkg.common, format: 'cjs' },
|
{ file: pkg.common, format: 'cjs', sourcemap: true },
|
||||||
{ file: pkg.module, format: 'es' }
|
{ file: pkg.module, format: 'es', sourcemap: true }
|
||||||
],
|
],
|
||||||
plugins: [
|
plugins: [
|
||||||
babel({
|
babel({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user