Created
April 27, 2016 12:12
-
-
Save tvolodimir/99662933070978cfe8dcda48b2ec5338 to your computer and use it in GitHub Desktop.
Revisions
-
tvolodimir created this gist
Apr 27, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ let app = {}; import * as arrowFunction from './test_arrowFunction.js'; app.arrowFunction = arrowFunction; import * as exportDefaultClass from './test_exportDefaultClass.js'; app.exportDefaultClass = exportDefaultClass; window.app = app; console.log(app); This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <script src="bundle.js"></script> </body> </html> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ λ npm start > rollup-babel-sourcemap@1.0.0 start C:\d\projects\rollup-babel-sourcemap > rollup -c rollup.config.js Bad sourcemap Error: Bad sourcemap at Object.Link.traceSegment (C:\d\projects\rollup-babel-sourcemap\node_modules\rollup\www\ROLLUP\rollup\src\utils\collapseSourcemaps.js:75:26) at C:\d\projects\rollup-babel-sourcemap\node_modules\rollup\www\ROLLUP\rollup\src\utils\collapseSourcemaps.js:31:27 at Array.forEach (native) at C:\d\projects\rollup-babel-sourcemap\node_modules\rollup\www\ROLLUP\rollup\src\utils\collapseSourcemaps.js:29:9 at Array.map (native) at Object.Link.traceMappings (C:\d\projects\rollup-babel-sourcemap\node_modules\rollup\www\ROLLUP\rollup\src\utils\collapseSourcemaps.js:26:34) at collapseSourcemaps (C:\d\projects\rollup-babel-sourcemap\node_modules\rollup\www\ROLLUP\rollup\src\utils\collapseSourcemaps.js:102:37) at Bundle.render (C:\d\projects\rollup-babel-sourcemap\node_modules\rollup\www\ROLLUP\rollup\src\Bundle.js:280:11) at Object.write (C:\d\projects\rollup-babel-sourcemap\node_modules\rollup\www\ROLLUP\rollup\src\rollup.js:62:32) at C:\d\projects\rollup-babel-sourcemap\node_modules\rollup\bin\runRollup.js:138:18 Type rollup --help for help, or visit https://github.com/rollup/rollup/wiki npm ERR! Windows_NT 10.0.10586 npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Vova\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "start" npm ERR! node v5.3.0 npm ERR! npm v3.8.7 npm ERR! code ELIFECYCLE npm ERR! rollup-babel-sourcemap@1.0.0 start: `rollup -c rollup.config.js` npm ERR! Exit status 1 This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ { "name": "rollup-babel-sourcemap", "version": "1.0.0", "description": "", "keywords": [], "scripts": { "start": "rollup -c rollup.config.js" }, "author": "", "license": "MIT", "devDependencies": { "babel-core": "^6.7.7", "babel-preset-es2015-rollup": "^1.1.1", "rollup": "^0.25.8", "rollup-plugin-babel": "^2.4.0" } } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ looks like exists some problems with specific moments in babel-core or in rollup This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ import babel from 'rollup-plugin-babel'; export default { entry: './entry.js', dest: './bundle.js', format: 'iife', sourceMap: true, plugins: [ babel({ babelrc: false, exclude: 'node_modules/**', presets: ["es2015-rollup"] }) ] }; This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ const defaultMapStateToProps = state => ({}); // eslint-disable-line no-unused-vars export default function connect() { return defaultMapStateToProps; } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,2 @@ export default class Provider { }