Skip to content

Commit 2445c6a

Browse files
authored
fix: Made it possible for windows to run yarn build (#1376)
1 parent 973d50b commit 2445c6a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

rollup.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ Object.keys(pkg.peerDependencies || {}).forEach(key => {
3131
}
3232
})
3333

34-
const external = id => !id.startsWith('.') && !id.startsWith('/')
34+
const external = id =>
35+
!id.startsWith('.') && !id.startsWith(process.platform === 'win32' ? process.cwd() : '/')
3536

3637
const getBabelOptions = ({useESModules}) => ({
3738
exclude: /node_modules/,

0 commit comments

Comments
 (0)