Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: code-farmer-i/vite-plugin-prismjs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 81ed9ec3d0e3f72b693f642741afb87ef6158ac2
Choose a base ref
...
head repository: code-farmer-i/vite-plugin-prismjs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 5a78b11863afb5806d34096c72ba43209eccf405
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Jan 19, 2024

  1. 0.0.10

    code-farmer-i committed Jan 19, 2024

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    marsam Mario Rodas
    Copy the full SHA
    5a78b11 View commit details
Showing with 7 additions and 6 deletions.
  1. +1 −1 package.json
  2. +6 −5 src/index.ts
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vite-plugin-prismjs",
"version": "0.0.8",
"version": "0.0.10",
"license": "MIT",
"author": "Kang Chen",
"files": [
11 changes: 6 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { transformSync } from '@babel/core';
import babelPluginPrismjs from 'babel-plugin-prismjs';
import { Plugin } from 'vite'
import { Plugin } from 'vite';
interface BabelPluginPrismjsOptions {
languages?: string[] | 'all';
plugins?: string[];
@@ -42,8 +42,9 @@ function prismjsPlugin(options: BabelPluginPrismjsOptions = {}): Plugin {
};
}

export {
prismjsPlugin
}
module.exports = prismjsPlugin;
module.exports['prismjsPlugin'] = prismjsPlugin;
module.exports['default'] = prismjsPlugin;

export default prismjsPlugin
export { prismjsPlugin };
export default prismjsPlugin;