Skip to content

Commit

Permalink
rollup fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
stvno committed Mar 26, 2018
1 parent 334a0db commit 113e35c
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
12 changes: 6 additions & 6 deletions packages/nlmaps-geolocator/config/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ import uglify from 'rollup-plugin-uglify-es';

export default config => {
return {
input: config.format === 'iife' ? 'src/browser.js' : 'src/index.js',
input: config.output.format === 'iife' ? 'src/browser.js' : 'src/index.js',
output: {
format: config.format,
file: config.dest,
name: config.format === 'iife' ? 'window' : 'nlmapsGeolocator',
sourcemap: true
format: config.output.format,
file: config.output.file,
name: config.output.format === 'iife' ? 'window' : 'nlmapsGeolocator',
sourcemap: true,
extend: config.output.format === 'iife' ? true : false,
},
external: config.external,
extend: config.format === 'iife' ? true : false,
plugins: [
commonjs(),
resolve({
Expand Down
3 changes: 2 additions & 1 deletion packages/nlmaps-googlemaps/config/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ export default config => {
input: config.output.format === 'iife' ? 'src/browser.js' : 'src/index.js',
output: {
format: config.output.format,
file: config.dest,
file: config.output.file,
name: config.output.format === 'iife'? 'window' : 'nlmapsG',
extend: config.output.format === 'iife' ? true : false,
sourcemap:true
},
external: config.external,
plugins: [
Expand Down
1 change: 0 additions & 1 deletion packages/nlmaps-googlemaps/config/rollup.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ export default config({
output: {
format: 'es',
file: 'build/nlmaps-googlemaps.es.js',
sourceMap: true
},
browser: false
})
4 changes: 2 additions & 2 deletions packages/nlmaps-leaflet/config/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ export default config => {
input: config.output.format === 'iife' ? 'src/browser.js' : 'src/index.js',
output: {
format: config.output.format,
file: config.dest,
file: config.output.file,
name: config.output.format === 'iife' ? 'window' : 'nlmapsL',
extend: config.output.format === 'iife' ? true : false,

sourcemap:true
},
external: config.external,
plugins: [
Expand Down
3 changes: 2 additions & 1 deletion packages/nlmaps-openlayers/config/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ export default config => {
return {
input: config.output.format === 'iife' ? 'src/browser.js' : 'src/index.js',
output: {
file: config.dest,
file: config.output.file,
format: config.output.format,
name: config.output.format === 'iife' ? 'window' : 'nlmapsOL',
extend: config.output.format === 'iife' ? true : false,
sourcemap:true
},
external: config.external,
plugins: [
Expand Down

0 comments on commit 113e35c

Please sign in to comment.