Skip to content

Commit

Permalink
rollup-plugin-sourcemaps
Browse files Browse the repository at this point in the history
  • Loading branch information
BipanKishore committed May 19, 2024
1 parent a5a68e4 commit caa18ee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"scripts": {
"lint": "lerna run lint",
"demo": "lerna run demo",
"demo:prod": "lerna run demo:prod" ,
"demo:prod": "lerna run demo:prod",
"core": "lerna run core",
"core:prod": "lerna run core:prod",
"start": "lerna run start",
Expand Down Expand Up @@ -47,6 +47,7 @@
"rollup-plugin-dts": "^5.3.0",
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-postcss": "^4.0.2",
"rollup-plugin-sourcemaps": "^0.6.3",
"rollup-plugin-typescript2": "^0.36.0",
"sass-loader": "^14.2.0",
"ts-loader": "^9.4.4",
Expand Down
8 changes: 5 additions & 3 deletions packages/resizable-core/build.script.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import typescript from 'rollup-plugin-typescript2'
import postcss from 'rollup-plugin-postcss'
import terser from '@rollup/plugin-terser'
import {dts} from 'rollup-plugin-dts'
import sourcemaps from 'rollup-plugin-sourcemaps'
// import copy from 'rollup-plugin-copy'
import path from 'path'
import {fileURLToPath} from 'url'
Expand All @@ -21,7 +22,6 @@ const ESM_EXTENTION = 'esm.js'

const CJS_BUILD_PATH = './lib/cjs/'
const ESM_BUILD_PATH = './lib/esm/'
const IFFE_BUILD_PATH = './lib/iffe/'
const UMD_BUILD_PATH = './lib/umd/'

export const LIB_FILE_NAME_DEVELOPMENT_CJS = `${LIB_NAME}.${DEVELOPMENT}.${CJS_EXTENTION}`
Expand Down Expand Up @@ -88,7 +88,8 @@ export const developmentPlugins = [
resolve(),
commonjs(),
typescript(),
postcss()
postcss(),
sourcemaps()
// copy({
// targets: [{
// src: 'scripts/include-scripts.cjs.js',
Expand All @@ -109,7 +110,8 @@ export const productionPlugins = [
commonjs(),
typescript(),
postcss(),
terser()
terser(),
sourcemaps()
]

export const EXTERNALS = ['react']
Expand Down

0 comments on commit caa18ee

Please sign in to comment.