mirror of https://github.com/lukechilds/rollup.git
Rich Harris
10 years ago
2 changed files with 15 additions and 0 deletions
@ -0,0 +1,10 @@ |
|||
module.exports = { |
|||
description: 'allows global names to be specified for IIFE/UMD exports', |
|||
options: { |
|||
external: [ 'jquery' ], |
|||
globals: { |
|||
jquery: 'jQuery' |
|||
} |
|||
}, |
|||
solo: true |
|||
}; |
@ -0,0 +1,5 @@ |
|||
import $ from 'jquery'; |
|||
|
|||
$( function () { |
|||
$( 'body' ).html( '<h1>hello world!</h1>' ); |
|||
}); |
Loading…
Reference in new issue