We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0fb87c commit e0af547Copy full SHA for e0af547
.travis.yml
@@ -29,5 +29,7 @@ script:
29
npm run test
30
else
31
npm run test-browser
32
+ # our browser build should also work fine as a Node.js CommonJS module
33
+ node test/builds/browser_build_as_commonjs.js
34
fi
35
sudo: false # Use container-based architecture
test/builds/browser_build_as_commonjs.js
@@ -0,0 +1,6 @@
1
+const hljs = require("../../build/highlight");
2
+
3
+let major = parseInt(majorVersion=hljs.versionString.split("."))
4
+if (major != 10) {
5
+ process.exit(1)
6
+}
0 commit comments