This repository has been archived by the owner on Aug 4, 2021. It is now read-only.
Make transform stateless #71
Merged
Merged
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
af5f7dd
switch from babel to buble
Rich-Harris b5d5a3e
update deps
Rich-Harris 115d39d
stateless plugin
Rich-Harris 103d3ce
make helper module ID invisible to node-resolve etc
Rich-Harris 98a996a
update test now that __esModule is generated in Rollup itself
Rich-Harris a18bbc7
guarantee name is deconflicted
Rich-Harris File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import babel from 'rollup-plugin-babel'; | ||
import buble from 'rollup-plugin-buble'; | ||
|
||
var external = Object.keys( require( './package.json' ).dependencies ).concat([ 'fs', 'path' ]); | ||
|
||
export default { | ||
entry: 'src/index.js', | ||
plugins: [ babel() ], | ||
plugins: [ buble() ], | ||
external: external | ||
}; |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,2 +1,5 @@ | ||
exports.__esModule = true; | ||
exports.answer = 42; | ||
import * as x from './answer'; | ||
|
||
assert.ok( 'answer' in x ); | ||
assert.ok( 'default' in x ); // TODO is this right? | ||
assert.ok( !( '__esModule' in x ) ); |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I realize this is no worse than it was, but this should be generated so as not to conflict with anything in the file. Could do a simple
indexOf
with an incrementing suffix rather than trying to be clever with scopes.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good point – fixed