Skip to content

Commit

Permalink
Preserve comments with calmjs.parse-1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
metatoaster committed Aug 15, 2019
1 parent e700f77 commit 8f79158
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
include_package_data=True,
zip_safe=False,
install_requires=[
'calmjs.parse>=1.2.0',
'calmjs>=3.3.1',
],
extras_require={
Expand Down
2 changes: 1 addition & 1 deletion src/calmjs/webpack/toolchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def __init__(self, *a, **kw):
self.binary = self.webpack_bin

def setup_transpiler(self):
self.parser = parse
self.parser = partial(parse, with_comments=True)
self.transpiler = convert_dynamic_require_unparser()

def build_compile_entries(self):
Expand Down

0 comments on commit 8f79158

Please sign in to comment.