Skip to content

Commit 7bc16c8

Browse files
committed
feat: loading files with existing source maps
1 parent 24bb489 commit 7bc16c8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import resolve from "@rollup/plugin-node-resolve"
33
import commonjs from "@rollup/plugin-commonjs"
44
import { terser } from "rollup-plugin-terser"
5+
import sourcemaps from 'rollup-plugin-sourcemaps';
56
// @ts-ignore
67
import autoExternal from "rollup-plugin-auto-external"
78

@@ -187,6 +188,9 @@ export function createPlugins(
187188
}
188189

189190
let pluginsCommon = [
191+
// loading files with existing source maps
192+
sourcemaps(),
193+
190194
autoExternal({
191195
builtins: true,
192196
dependencies: false,

0 commit comments

Comments
 (0)