Skip to content

Conversation

@shellscape
Copy link
Collaborator

Rollup Plugin Name: commonjs

This PR contains:

  • bugfix
  • feature
  • refactor
  • documentation
  • other

Are tests included?

  • yes (bugfixes and features will not be merged without tests)
  • no

Breaking Changes?

  • yes (breaking changes will not be merged unless absolutely necessary)
  • no

List any relevant issue numbers: Fixes #139

Description

This PR fixes a situation in which files with hyphens in the filename were breaking a build, as illegal variable names were being produced by the plugin. Tests added cover this case.

@shellscape shellscape merged commit 4207609 into master Feb 7, 2020
LarsDenBakker pushed a commit to LarsDenBakker/plugins that referenced this pull request Sep 12, 2020
… hyphens. (rollup#201)

* fix(commonjs): dashes in filename, legal identifier

* test: add test for files with hyphens
@shellscape shellscape deleted the fix/commonjs/dash-name branch June 7, 2021 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

plugin-commonjs: dashes in filename result in invalid javascript code

4 participants