Skip to content

Commit 03301c1

Browse files
committed
update keepMeta logic
... post plotly/plotly.js#1584
1 parent 0a79490 commit 03301c1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/server.js

+2-5
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,6 @@ function startServer (opts) {
9696

9797
var transforms = [brfs, es2040, require(plotlyPath + '/tasks/util/strict_d3')]
9898

99-
if (!opts.keepMeta) {
100-
transforms.push(require(plotlyPath + '/tasks/util/compress_attributes'))
101-
}
102-
10399
return budo(path.join(__dirname, 'dummy.js'), {
104100
live: true,
105101
open: true,
@@ -113,7 +109,8 @@ function startServer (opts) {
113109
],
114110
browserify: {
115111
transform: transforms,
116-
plugin: plugins
112+
plugin: plugins,
113+
ignoreTransform: opts.keepMeta ? './tasks/compress_attributes.js' : ''
117114
},
118115
middleware: [
119116
function (req, res, next) {

0 commit comments

Comments
 (0)