Skip to content

Commit

Permalink
Merge pull request #152 from VirgilSecurity/issue/151
Browse files Browse the repository at this point in the history
fix e3kit-browser
  • Loading branch information
rstp-god authored Jan 12, 2023
2 parents c14ade5 + 7ab98d4 commit def97e9
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions packages/e3kit-browser/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,17 @@ const createEntry = (target, cryptoType, format) => {
file: path.join(outputPath, getCryptoEntryPointName(target, cryptoType, format)),
name: 'E3kit',
},
onwarn: function (warning) {
// Skip certain warnings

// should intercept ... but doesn't in some rollup versions
if (warning.code === 'THIS_IS_UNDEFINED') {
return;
}

// console.warn everything else
console.warn(warning.message);
},
plugins: [
replace({
replaces: {
Expand Down Expand Up @@ -120,18 +131,9 @@ const createEntry = (target, cryptoType, format) => {
],
}),
nodeResolve({ browser: true, preferBuiltins: true }),
commonjs({
ignoreDynamicRequires: true,
ignore: ['readable-stream'],
}),
commonjs(),
typescript({
useTsconfigDeclarationDir: true,
objectHashIgnoreUnknownHack: true,
tsconfigOverride: {
compilerOptions: {
noImplicitAny: false,
},
},
tsconfig: './tsconfig.json',
}),
json(),
nodeGlobals(),
Expand Down

0 comments on commit def97e9

Please sign in to comment.