Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
taichunmin committed Apr 1, 2023
1 parent 874e6ef commit ee3e724
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,26 +58,6 @@ const configs = [
})),
},

// src/Packet.js
{
input: 'src/Packet.js',
plugins: [json(), resolve({ browser: true }), commonjs()],
external: externalDependencies,
output: _.times(2, isMin => ({
file: 'dist/Packet.js',
format: 'umd',
name: 'Crypto1',
globals: {
lodash: '_',
[fileURLToPath(new URL('src/Packet.js', import.meta.url))]: 'Pn532.Packet',
},
...(!isMin ? {} : { // for minify
file: 'dist/Crypto1.min.js',
plugins: [terser()],
}),
})),
},

// plugins
..._.map(['Hf14a', 'LoggerRxTx', 'WebbleAdapter', 'WebserialAdapter'], plugin => ({
input: `src/plugin/${plugin}.js`,
Expand Down

0 comments on commit ee3e724

Please sign in to comment.