Skip to content

Instantly share code, notes, and snippets.

@mjstahl
Created December 10, 2018 21:07
Show Gist options
  • Save mjstahl/723e091ffb9a04cc969a5ce0f4f1c1bb to your computer and use it in GitHub Desktop.
Save mjstahl/723e091ffb9a04cc969a5ce0f4f1c1bb to your computer and use it in GitHub Desktop.
Differences in import between developer and built version when using steal-tools to build an app or dev bundle
<!DOCTYPE html>
<html>
<body>
<script src="./dist/steal.production.js" main></script>
</body>
</html>
<!DOCTYPE html>
<html>
<body>
<script src="./node_modules/steal/steal.js" main></script>
</body>
</html>
var stream = require('stream')
console.log(stream)
{
"name": "test-steal",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"build": "steal-tools",
"bundle": "steal-tools bundle --dev --no-minify"
},
"author": "",
"license": "ISC",
"dependencies": {
"steal": "^2.1.10"
},
"devDependencies": {
"steal-tools": "^2.0.11"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment