Skip to content

Commit

Permalink
feat(transpile): remove deprecated "script" option
Browse files Browse the repository at this point in the history
Use "target" instead.
  • Loading branch information
adamdbradley committed Aug 5, 2020
1 parent 64f9d12 commit 75dfebb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/config/transpile-options.ts
Expand Up @@ -54,7 +54,7 @@ export const getTranspileConfig = (input: TranspileOptions) => {
sourceMap: input.sourceMap === 'inline' ? 'inline' : input.sourceMap !== false,
style: getTranspileConfigOpt(input.style, VALID_STYLE, 'static'),
styleImportData: getTranspileConfigOpt(input.styleImportData, VALID_STYLE_IMPORT_DATA, 'queryparams'),
target: getTranspileConfigOpt(input.target || (input as any).script /* deprecated */, VALID_TARGET, 'latest'),
target: getTranspileConfigOpt(input.target, VALID_TARGET, 'latest'),
};

const tsCompilerOptions: CompilerOptions = {
Expand Down

0 comments on commit 75dfebb

Please sign in to comment.