Skip to content

Commit e17a71f

Browse files
committed
Compile to es5 to support regular VS
1 parent 8f12882 commit e17a71f

File tree

4 files changed

+29
-2
lines changed

4 files changed

+29
-2
lines changed

package-lock.json

+25
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"url": "https://github.com/Microsoft/typescript-styled-plugin/issues"
2121
},
2222
"dependencies": {
23+
"object.assign": "^4.0.4",
2324
"typescript-template-language-service-decorator": "0.0.2",
2425
"vscode-css-languageservice": "^2.1.10",
2526
"vscode-languageserver-types": "^3.4.0"

src/configuration.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
3+
const assign = require('object.assign').getPolyfill();
34

45
export interface TsStyledPluginConfiguration {
56
tags: string[];
@@ -16,7 +17,7 @@ export const defaultConfiguration: TsStyledPluginConfiguration = {
1617
};
1718

1819
export const loadConfiguration = (config: any): TsStyledPluginConfiguration => {
19-
const lint = Object.assign({}, defaultConfiguration.lint, config.lint || {});
20+
const lint = assign({}, defaultConfiguration.lint, config.lint || {});
2021
return {
2122
tags: config.tags || defaultConfiguration.tags,
2223
validate: typeof config.validate !== 'undefined' ? config.validate : defaultConfiguration.validate,

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
33
"module": "commonjs",
4-
"target": "es6",
4+
"target": "es5",
55
"sourceMap": true,
66
"outDir": "lib",
77
"rootDir": "src",

0 commit comments

Comments
 (0)