Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Avoid variable from empty module name be empty (#3026)
* Create main.js * Create _config.js * Update _config.js * Update _config.js * Delete main.js * Update identifierHelpers.ts
- Loading branch information
1 parent
17eaa43
commit 456f4d2c3603976f69f1e753377f9b1649a99b5a
Showing
2 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
module.exports = { | ||
description: 'avoid variable from empty module name be empty', | ||
options: { | ||
input: '', | ||
plugins: [ | ||
{ | ||
resolveId (importee) { | ||
return ''; | ||
}, | ||
load (path) { | ||
return 'export default 0;'; | ||
}, | ||
} | ||
], | ||
output: { | ||
format: 'cjs' | ||
} | ||
} | ||
}; |