Skip to content

Commit

Permalink
Add Vue #1255
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjbradshaw committed May 24, 2024
1 parent 8abc8f5 commit 553afb6
Show file tree
Hide file tree
Showing 10 changed files with 2,537 additions and 3,657 deletions.
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"cSpell.words": [
"compat",
"consts",
"delog",
"filesize",
"Loggable",
"sarif",
"sonarjs"
Expand Down
12 changes: 6 additions & 6 deletions build/output.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ export const output = (file) => (format) => ({
file: `dist/${file}/index.${format}.js`,
generatedCode: 'es2015',
format,
plugins: terser({
output: {
comments: false,
preamble: createBanner(file, format),
},
}),
// plugins: terser({
// output: {
// comments: false,
// preamble: createBanner(file, format),
// },
// }),
sourcemap: false,
})

Expand Down
16 changes: 10 additions & 6 deletions build/pkgJson.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,25 @@ const customConfig = (file) => {
switch (file) {
case 'react':
return {
main: 'index.cjs.js',
module: 'index.esm.js',
types: `iframe-resizer.${file}.d.ts`,
peerDependencies: {
react: '^16.8.0 || ^17.0.0 || ^18.0.0',
'react-dom': '^16.8.0 || ^17.0.0 || ^18.0.0',
},
main: 'index.cjs.js',
module: 'index.esm.js',
types: `iframe-resizer.${file}.d.ts`,
}

case 'parent':
case 'vue':
return {
...entryPoints,
types: `iframe-resizer.${file}.d.ts`,
main: 'index.cjs.js',
module: 'index.esm.js',
peerDependencies: {
vue: '^2.6.0 || ^3.0.0',
},
}

case 'parent':
case 'child':
return {
...entryPoints,
Expand Down
4 changes: 2 additions & 2 deletions build/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ export const pluginsProd = (file) => {
verbose: true,
}),
stripCode({
start_comment: '// TEST CODE START //',
end_comment: '// TEST CODE END //',
start_comment: 'TEST CODE START',
end_comment: 'TEST CODE END',
}),
...pluginsBase(true)(file),
]
Expand Down
Loading

0 comments on commit 553afb6

Please sign in to comment.