File tree Expand file tree Collapse file tree
test/fixtures/classic-named-exports Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,7 +30,10 @@ var MainFileInfo = ClassicFileInfo.extend({
3030 if ( ! this . name ) {
3131 this . name = path . basename ( this . sourceRelativePath , this . ext ) ;
3232 }
33- }
33+ } ,
34+
35+ // do not rewrite exports for main files
36+ updateDefaultExportToNamed : function ( ) { }
3437} ) ;
3538
3639Object . defineProperty ( MainFileInfo . prototype , 'destRelativePath' , {
Original file line number Diff line number Diff line change 11module . exports = {
22 app : {
3+ // ensure we do not rewrite main files
4+ 'app.js' : 'export default App' ,
5+ 'router.js' : 'export default Router' ,
36 helpers : {
47 'titleize.js' : 'export default helper(function() { });' ,
58 'capitalize.js' : 'export default helper(function() { });'
Original file line number Diff line number Diff line change 11module . exports = {
22 src : {
3+ 'main.js' : 'export default App' ,
4+ 'router.js' : 'export default Router' ,
35 ui : {
46 components : {
57 'titleize.js' : 'export const helper = helper(function() { });' ,
You can’t perform that action at this time.
0 commit comments