Skip to content

Add devtools integration #918

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Feb 14, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Prebuild production version
  • Loading branch information
Demivan committed Feb 14, 2025
commit 56104adb2f601879e1d83ff4cb3684fa0347553f
14 changes: 12 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,18 @@
"sideEffects": false,
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
"import": {
"types": "./dist/index.d.ts",
"production:": "./dist/prod/index.js",
"development:": "./dist/index.js",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/index.d.cts",
"production:": "./dist/prod/index.cjs",
"development:": "./dist/index.cjs",
"default": "./dist/index.cjs"
}
}
},
"main": "dist/index.js",
Expand Down
50 changes: 34 additions & 16 deletions tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,37 @@
import type { Options } from 'tsup'
import GlobalsPlugin from 'esbuild-plugin-globals'
import { defineConfig } from 'tsup'

export default defineConfig({
target: 'node12',
globalName: 'FluentVue',
splitting: true,
esbuildPlugins: [
GlobalsPlugin({
'vue-demi': 'VueDemi',
'@fluent/bundle': 'FluentBundle',
}),
],
external: ['vue-demi', '@fluent/bundle', '@vue/devtools-api'],
entry: ['src/index.ts', 'src/composition.ts'],
format: ['esm', 'cjs', 'iife'],
dts: true,
clean: true,
})
function getConfig(overrides: Partial<Options> = {}): Options {
return {
target: 'node16',
globalName: 'FluentVue',
splitting: true,
esbuildPlugins: [
GlobalsPlugin({
'vue-demi': 'VueDemi',
'@fluent/bundle': 'FluentBundle',
}),
],
external: ['vue-demi', '@fluent/bundle', '@vue/devtools-api'],
entry: ['src/index.ts', 'src/composition.ts'],
format: ['esm', 'cjs', 'iife'],
...overrides,
}
}

export default defineConfig([
getConfig({
clean: true,
dts: true,
outDir: 'dist',
}),
getConfig({
clean: false,
dts: false,
env: {
NODE_ENV: 'production',
},
outDir: 'dist/prod',
}),
])
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy