pull/1746/head
Rich Harris 8 years ago
parent bb304d0a5c
commit 068ca71d44

@ -7,7 +7,7 @@ import { CompileOptions, Warning, Ast } from '../interfaces';
import Component from './Component';
function normalize_options(options: CompileOptions): CompileOptions {
let normalized = assign({ generate: 'dom' }, options);
let normalized = assign({ generate: 'dom', dev: false }, options);
const { onwarn, onerror } = normalized;
normalized.onwarn = onwarn

@ -175,6 +175,10 @@ export default class ElementWrapper extends Wrapper {
this.cannotUseInnerHTML();
}
if (renderer.options.dev) {
this.cannotUseInnerHTML(); // need to use addLoc
}
this.fragment = new FragmentWrapper(renderer, block, node.children, this, stripWhitespace, nextSibling);
}

@ -174,7 +174,15 @@ describe.only("runtime", () => {
config.error(assert, err);
} else {
failed.add(dir);
showOutput(cwd, { shared, format: 'cjs', hydratable: hydrate, store: !!compileOptions.store, skipIntroByDefault: compileOptions.skipIntroByDefault, nestedTransitions: compileOptions.nestedTransitions }, compile); // eslint-disable-line no-console
showOutput(cwd, {
shared,
format: 'cjs',
hydratable: hydrate,
store: !!compileOptions.store,
skipIntroByDefault: compileOptions.skipIntroByDefault,
nestedTransitions: compileOptions.nestedTransitions,
dev: compileOptions.dev
}, compile); // eslint-disable-line no-console
throw err;
}
})

Loading…
Cancel
Save