From a1978df84a824aa73535bf1dbacc0bac514d7b09 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Fri, 21 Aug 2015 14:51:38 -0400 Subject: [PATCH] use jsnext:main field for magic-string --- gobblefile.js | 6 ++---- package.json | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/gobblefile.js b/gobblefile.js index 4664202..6036237 100644 --- a/gobblefile.js +++ b/gobblefile.js @@ -8,12 +8,10 @@ var node = src entry: 'rollup.js', dest: 'rollup.js', format: 'cjs', - external: [ 'sander', 'path', 'acorn', 'magic-string' ] + external: [ 'sander', 'acorn' ] }) .transform( 'babel' ); -var absolutePath = /^(?:\/|(?:[A-Za-z]:)?\\)/; - var browserPlaceholders = { sander: fs.readFileSync( 'browser/sander.js' ).toString() }; @@ -27,7 +25,7 @@ var browser = src if ( ~id.indexOf( 'sander.js' ) ) return browserPlaceholders.sander; return fs.readFileSync( id ).toString(); }, - external: [ 'acorn', 'magic-string' ] + external: [ 'acorn' ] }) .transform( 'browserify', { entries: [ './rollup.browser' ], diff --git a/package.json b/package.json index fbb1d14..b8c9890 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "gobble-browserify": "^0.6.1", "gobble-cli": "^0.4.2", "gobble-esperanto-bundle": "^0.2.0", - "gobble-rollup": "^0.6.0", + "gobble-rollup": "^0.7.0", "gobble-rollup-babel": "^0.1.0", "mocha": "^2.2.4", "source-map": "^0.1.40" @@ -48,7 +48,7 @@ "dependencies": { "acorn": "^1.1.0", "chalk": "^1.0.0", - "magic-string": "^0.6.4", + "magic-string": "^0.6.5", "minimist": "^1.1.1", "sander": "^0.3.3", "source-map-support": "^0.3.1"