Skip to content

Commit

Permalink
Refactor(exporter-variables-scss): Setup exporter as ES module
Browse files Browse the repository at this point in the history
  • Loading branch information
literat committed Aug 21, 2024
1 parent 7ba942c commit d0addd7
Show file tree
Hide file tree
Showing 4 changed files with 1,638 additions and 7 deletions.
1,636 changes: 1,633 additions & 3 deletions exporters/variables-scss/generated/exporter.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions exporters/variables-scss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"author": "Spirit Team",
"license": "MIT",
"main": "gennerated/exporter.js",
"type": "module",
"scripts": {
"dev": "vite watch",
"build": "vite build",
Expand Down
6 changes: 3 additions & 3 deletions exporters/variables-scss/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"module": "es2015",
"target": "es2015",
"module": "esnext",
"target": "es2021",
"noEmit": true,
"strictNullChecks": true,
"strictPropertyInitialization": true,
Expand All @@ -25,7 +25,7 @@
"noImplicitAny": true,
"esModuleInterop": true,
"typeRoots": ["../../node_modules/@types"],
"lib": ["es2015", "dom", "dom.iterable"],
"lib": ["es2021", "dom", "dom.iterable"],
"types": ["node", "jest", "@testing-library/jest-dom"]
},
"include": ["./src/**/*"],
Expand Down
2 changes: 1 addition & 1 deletion exporters/variables-scss/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default defineConfig({
entry: resolve(__dirname, 'src/index.ts'),
name: 'Exporter',
fileName: 'exporter',
formats: ['cjs'],
formats: ['es'],
},
rollupOptions: {
output: {
Expand Down

0 comments on commit d0addd7

Please sign in to comment.