Skip to content

Commit

Permalink
fix: remove node dependencies for esm bundle, see #173
Browse files Browse the repository at this point in the history
  • Loading branch information
harttle committed Nov 15, 2019
1 parent 79892f6 commit 04df929
Showing 1 changed file with 21 additions and 9 deletions.
30 changes: 21 additions & 9 deletions rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,28 @@ const esm = {
banner
}],
external: ['path', 'fs'],
plugins: [typescript({
tsconfigOverride: {
include: [ 'src' ],
exclude: [ 'test', 'benchmark' ],
compilerOptions: {
target: 'ES2017',
module: 'ES2015'
plugins: [
replace({
include: './src/liquid.ts',
delimiters: ['', ''],
'./fs/node': './fs/browser'
}),
replace({
include: './src/parser/tokenizer.ts',
delimiters: ['', ''],
'./flatten/node': './flatten/browser'
}),
typescript({
tsconfigOverride: {
include: [ 'src' ],
exclude: [ 'test', 'benchmark' ],
compilerOptions: {
target: 'ES2017',
module: 'ES2015'
}
}
}
})],
})
],
treeshake,
input
}
Expand Down

0 comments on commit 04df929

Please sign in to comment.