-
-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug in merged source maps #86
Comments
@blackgate I'm having trouble reproducing this issue with the latest browserify/babelify/brfs versions. //script.js
const fs = require('fs')
fs.readFile(__filename, 'utf8', (err, res) => {
if (err) console.error(err)
alert(res)
}) // build.js
const fs = require("fs");
const browserify = require("browserify");
browserify("./script.js", { debug: true })
.transform("babelify", {presets: ["env"], sourceMaps: true})
.transform("brfs")
.bundle()
.pipe(fs.createWriteStream("bundle.js")); This gives me a bundle.js with the correct source contents: (left is bundle.js, right is source contents) Which versions are you using? Or could you make a smallish source file that does reproduce the issue? |
I did find and fix another issue here: browserify/static-module#44 |
@goto-bus-stop Sorry, I just had time to check this out today. The problem only seems to happen on files that don't have a require("fs"). the import a from './a'; |
Via @blackgate:
The text was updated successfully, but these errors were encountered: