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
|
banner
|
||||||
}],
|
}],
|
||||||
external: ['path', 'fs'],
|
external: ['path', 'fs'],
|
||||||
plugins: [typescript({
|
plugins: [
|
||||||
tsconfigOverride: {
|
replace({
|
||||||
include: [ 'src' ],
|
include: './src/liquid.ts',
|
||||||
exclude: [ 'test', 'benchmark' ],
|
delimiters: ['', ''],
|
||||||
compilerOptions: {
|
'./fs/node': './fs/browser'
|
||||||
target: 'ES2017',
|
}),
|
||||||
module: 'ES2015'
|
replace({
|
||||||
|
include: './src/parser/tokenizer.ts',
|
||||||
|
delimiters: ['', ''],
|
||||||
|
'./flatten/node': './flatten/browser'
|
||||||
|
}),
|
||||||
|
typescript({
|
||||||
|
tsconfigOverride: {
|
||||||
|
include: [ 'src' ],
|
||||||
|
exclude: [ 'test', 'benchmark' ],
|
||||||
|
compilerOptions: {
|
||||||
|
target: 'ES2017',
|
||||||
|
module: 'ES2015'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
})
|
||||||
})],
|
],
|
||||||
treeshake,
|
treeshake,
|
||||||
input
|
input
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user