Skip to content

Commit

Permalink
Prevent non-JS files from winding up in @rollup/plugin-inject
Browse files Browse the repository at this point in the history
  • Loading branch information
drwpow committed Nov 30, 2020
1 parent f028895 commit 3c216cf
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const PROCESS_MODULE_NAME = 'process';
export function rollupPluginNodeProcessPolyfill(env = {}): Plugin {
const injectPlugin = inject({
process: PROCESS_MODULE_NAME,
include: ['*.js', '*.mjs', '*.cjs'],
});

return {
Expand Down

0 comments on commit 3c216cf

Please sign in to comment.