mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-15 04:10:40 -07:00
fix: remove node dependencies for esm bundle, see #173
This commit is contained in:
+21
-9
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user