We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0a3b9c commit 94ff6dbCopy full SHA for 94ff6db
cli/rollup.config.mjs
@@ -8,8 +8,10 @@ import path from 'path'
8
const pkg = JSON.parse(readFileSync('./package.json', 'utf8').toString())
9
10
function external (id, parent, resolved) {
11
- // Bundle tslib so that we include ts helpers
12
- if (id === 'tslib' || id.startsWith('tslib/') || id.includes('tslib/tslib.es6.js')) {
+ // Bundle tslib so that we include ts helpers (Windows resolves to absolute path with backslashes)
+ const idNorm = id.replace(/\\/g, '/')
13
+
14
+ if (id === 'tslib' || idNorm.startsWith('tslib') || idNorm.includes('tslib/tslib.es6.js')) {
15
return false
16
}
17
0 commit comments