Skip to content

Commit cf46c50

Browse files
committed
chore: cjsInterop
1 parent acbcd70 commit cf46c50

File tree

5 files changed

+86
-4
lines changed

5 files changed

+86
-4
lines changed

apps/webpack5-vue3/vue.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
const { defineConfig } = require('@vue/cli-service')
22
const utwm = require('unplugin-tailwindcss-mangle/webpack')
3+
34
module.exports = defineConfig({
45
transpileDependencies: true,
56
configureWebpack: (config) => {
67
config.plugins.push(utwm({
7-
classMapOutput: true
8+
classMapOutput: true,
89
}))
9-
}
10+
},
1011
})

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
"node": ">=18.0.0"
1313
},
1414
"scripts": {
15-
"build": "pnpm run -r build",
16-
"dev": "pnpm -r run dev",
15+
"build": "turbo build",
16+
"dev": "turbo dev",
1717
"test": "vitest run --coverage.enabled",
1818
"test:dev": "vitest --coverage.enabled",
1919
"lint": "eslint packages/**/*.ts --fix",
@@ -49,6 +49,7 @@
4949
"ts-node": "^10.9.2",
5050
"tslib": "^2.6.3",
5151
"tsup": "^8.1.0",
52+
"turbo": "^2.0.4",
5253
"typescript": "^5.5.2",
5354
"unbuild": "^2.0.0",
5455
"unplugin-tailwindcss-mangle": "workspace:*",

packages/unplugin-tailwindcss-mangle/tsup.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ export default defineConfig({
1414
format: ['cjs', 'esm'],
1515
clean: true,
1616
dts: true,
17+
// cjsInterop: true,
1718
})

pnpm-lock.yaml

Lines changed: 64 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

turbo.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"$schema": "https://turbo.build/schema.json",
3+
"tasks": {
4+
"build": {
5+
"outputs": ["dist/**"]
6+
},
7+
"check-types": {
8+
"dependsOn": ["^check-types"]
9+
},
10+
"dev": {
11+
"persistent": true,
12+
"cache": false
13+
}
14+
}
15+
}

0 commit comments

Comments
 (0)