-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(bundle-utils): support esm/cjs dual package (#255)
* feat(bundle-utils): support esm/cjs dual package * chore: add no hoist config * update
- Loading branch information
Showing
17 changed files
with
842 additions
and
375 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { defineBuildConfig } from 'unbuild' | ||
|
||
export default defineBuildConfig({ | ||
declaration: true, | ||
outDir: 'lib', | ||
entries: [ | ||
{ | ||
name: 'index', | ||
input: 'src/index' | ||
} | ||
], | ||
rollup: { | ||
emitCJS: true | ||
}, | ||
externals: ['estree'] | ||
}) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
export { CodeGenOptions, CodeGenResult, DevEnv } from './codegen' | ||
export { generate as generateJSON } from './json' | ||
export { generate as generateYAML } from './yaml' | ||
export { generate as generateJavaScript } from './js' | ||
export { | ||
getVueI18nVersion, | ||
checkInstallPackage, | ||
checkVueI18nBridgeInstallPackage, | ||
InstalledPackage | ||
checkVueI18nBridgeInstallPackage | ||
} from './deps' | ||
export type { CodeGenOptions, CodeGenResult, DevEnv } from './codegen' | ||
export type { InstalledPackage } from './deps' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.