Skip to content

Commit def97e9

Browse files
authored
Merge pull request #152 from VirgilSecurity/issue/151
fix e3kit-browser
2 parents c14ade5 + 7ab98d4 commit def97e9

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

packages/e3kit-browser/rollup.config.js

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,17 @@ const createEntry = (target, cryptoType, format) => {
8585
file: path.join(outputPath, getCryptoEntryPointName(target, cryptoType, format)),
8686
name: 'E3kit',
8787
},
88+
onwarn: function (warning) {
89+
// Skip certain warnings
90+
91+
// should intercept ... but doesn't in some rollup versions
92+
if (warning.code === 'THIS_IS_UNDEFINED') {
93+
return;
94+
}
95+
96+
// console.warn everything else
97+
console.warn(warning.message);
98+
},
8899
plugins: [
89100
replace({
90101
replaces: {
@@ -120,18 +131,9 @@ const createEntry = (target, cryptoType, format) => {
120131
],
121132
}),
122133
nodeResolve({ browser: true, preferBuiltins: true }),
123-
commonjs({
124-
ignoreDynamicRequires: true,
125-
ignore: ['readable-stream'],
126-
}),
134+
commonjs(),
127135
typescript({
128-
useTsconfigDeclarationDir: true,
129-
objectHashIgnoreUnknownHack: true,
130-
tsconfigOverride: {
131-
compilerOptions: {
132-
noImplicitAny: false,
133-
},
134-
},
136+
tsconfig: './tsconfig.json',
135137
}),
136138
json(),
137139
nodeGlobals(),

0 commit comments

Comments
 (0)