|
@ -8,12 +8,10 @@ var node = src |
|
|
entry: 'rollup.js', |
|
|
entry: 'rollup.js', |
|
|
dest: 'rollup.js', |
|
|
dest: 'rollup.js', |
|
|
format: 'cjs', |
|
|
format: 'cjs', |
|
|
external: [ 'sander', 'path', 'acorn', 'magic-string' ] |
|
|
external: [ 'sander', 'acorn' ] |
|
|
}) |
|
|
}) |
|
|
.transform( 'babel' ); |
|
|
.transform( 'babel' ); |
|
|
|
|
|
|
|
|
var absolutePath = /^(?:\/|(?:[A-Za-z]:)?\\)/; |
|
|
|
|
|
|
|
|
|
|
|
var browserPlaceholders = { |
|
|
var browserPlaceholders = { |
|
|
sander: fs.readFileSync( 'browser/sander.js' ).toString() |
|
|
sander: fs.readFileSync( 'browser/sander.js' ).toString() |
|
|
}; |
|
|
}; |
|
@ -27,7 +25,7 @@ var browser = src |
|
|
if ( ~id.indexOf( 'sander.js' ) ) return browserPlaceholders.sander; |
|
|
if ( ~id.indexOf( 'sander.js' ) ) return browserPlaceholders.sander; |
|
|
return fs.readFileSync( id ).toString(); |
|
|
return fs.readFileSync( id ).toString(); |
|
|
}, |
|
|
}, |
|
|
external: [ 'acorn', 'magic-string' ] |
|
|
external: [ 'acorn' ] |
|
|
}) |
|
|
}) |
|
|
.transform( 'browserify', { |
|
|
.transform( 'browserify', { |
|
|
entries: [ './rollup.browser' ], |
|
|
entries: [ './rollup.browser' ], |
|
|