Skip to content

Commit

Permalink
feat: add support for esbuild's pure option (#255)
Browse files Browse the repository at this point in the history
Co-authored-by: mikob <mikojunky@fastmail.com>
Co-authored-by: NONAME <0x142857@gmail.com>
  • Loading branch information
3 people committed Jun 3, 2021
1 parent 920eee9 commit 86c61cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export type Options = {
loaders?: {
[ext: string]: Loader | false
}
pure?: string[]
}

const warn = async (pluginContext: PluginContext, messages: Message[]) => {
Expand Down Expand Up @@ -167,6 +168,7 @@ export default (options: Options = {}): Plugin => {
define: options.define,
sourcemap: options.sourceMap !== false,
sourcefile: id,
pure: options.pure,
legalComments: options.legalComments,
})

Expand Down

0 comments on commit 86c61cb

Please sign in to comment.