Merge pull request #82 from phated/phated/rollup-browser-field
fix: ensure browser field in package.json are used by rollup
This commit is contained in:
commit
e636769dc6
@ -25,9 +25,13 @@ export default {
|
||||
readline: empty,
|
||||
worker_threads: empty,
|
||||
}),
|
||||
nodeResolve(),
|
||||
nodeResolve({
|
||||
browser: true
|
||||
}),
|
||||
commonJS(),
|
||||
replace({ "process.browser": !!process.env.BROWSER }),
|
||||
replace({
|
||||
"process.browser": !!process.env.BROWSER
|
||||
}),
|
||||
visualizer(),
|
||||
]
|
||||
};
|
||||
|
@ -24,9 +24,13 @@ export default {
|
||||
readline: empty,
|
||||
worker_threads: empty,
|
||||
}),
|
||||
nodeResolve(),
|
||||
nodeResolve({
|
||||
browser: true
|
||||
}),
|
||||
commonJS(),
|
||||
replace({ "process.browser": !!process.env.BROWSER }),
|
||||
replace({
|
||||
"process.browser": !!process.env.BROWSER
|
||||
}),
|
||||
terser()
|
||||
]
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user