mirror of
https://github.com/foliojs/pdfkit.git
synced 2025-12-08 20:15:54 +00:00
Merge pull request #1054 from blikblum/nointerop
Do not emit interopDefault helper
This commit is contained in:
commit
b284473bcc
@ -4,6 +4,7 @@
|
||||
- Fix infinite loop when an individual character is bigger than the width of the text.
|
||||
- Fix infinite loop when text is positioned after page right margin
|
||||
- Allow links in continued text to be stopped by setting link to null
|
||||
- Do not emit _interopDefault helper in commonjs build
|
||||
|
||||
### [v0.10.0] - 2019-06-06
|
||||
|
||||
|
||||
@ -14,22 +14,6 @@ const external = [
|
||||
'saslprep'
|
||||
];
|
||||
|
||||
// supports using brfs transform
|
||||
const stripFSInterop = function() {
|
||||
return {
|
||||
renderChunk(code) {
|
||||
code = code.replace(
|
||||
"var fs = _interopDefault(require('fs'));",
|
||||
"var fs = require('fs');"
|
||||
);
|
||||
return {
|
||||
code,
|
||||
map: null
|
||||
};
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
export default [
|
||||
// CommonJS build for Node
|
||||
{
|
||||
@ -39,7 +23,8 @@ export default [
|
||||
name: 'pdfkit',
|
||||
file: pkg.main,
|
||||
format: 'cjs',
|
||||
sourcemap: true
|
||||
sourcemap: true,
|
||||
interop: false
|
||||
},
|
||||
plugins: [
|
||||
babel({
|
||||
@ -59,8 +44,7 @@ export default [
|
||||
copy({
|
||||
files: ['lib/font/data/*.afm'],
|
||||
dest: 'js/data'
|
||||
}),
|
||||
stripFSInterop()
|
||||
})
|
||||
]
|
||||
},
|
||||
// ES for legacy (IE11) browsers
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user